1 module webkit2.DeviceInfoPermissionRequest; 2 3 private import gobject.ObjectG; 4 private import webkit2.PermissionRequestIF; 5 private import webkit2.PermissionRequestT; 6 private import webkit2.c.functions; 7 public import webkit2.c.types; 8 9 10 /** 11 * WebKitUserMediaPermissionRequest represents a request for 12 * permission to whether WebKit should be allowed to access the user's 13 * devices information when requested through the enumeraceDevices API. 14 * 15 * When a WebKitDeviceInfoPermissionRequest is not handled by the user, 16 * it is denied by default. 17 * 18 * Since: 2.24 19 */ 20 public class DeviceInfoPermissionRequest : ObjectG, PermissionRequestIF 21 { 22 /** the main Gtk struct */ 23 protected WebKitDeviceInfoPermissionRequest* webKitDeviceInfoPermissionRequest; 24 25 /** Get the main Gtk struct */ 26 public WebKitDeviceInfoPermissionRequest* getDeviceInfoPermissionRequestStruct(bool transferOwnership = false) 27 { 28 if (transferOwnership) 29 ownedRef = false; 30 return webKitDeviceInfoPermissionRequest; 31 } 32 33 /** the main Gtk struct as a void* */ 34 protected override void* getStruct() 35 { 36 return cast(void*)webKitDeviceInfoPermissionRequest; 37 } 38 39 /** 40 * Sets our main struct and passes it to the parent class. 41 */ 42 public this (WebKitDeviceInfoPermissionRequest* webKitDeviceInfoPermissionRequest, bool ownedRef = false) 43 { 44 this.webKitDeviceInfoPermissionRequest = webKitDeviceInfoPermissionRequest; 45 super(cast(GObject*)webKitDeviceInfoPermissionRequest, ownedRef); 46 } 47 48 // add the PermissionRequest capabilities 49 mixin PermissionRequestT!(WebKitDeviceInfoPermissionRequest); 50 51 52 /** */ 53 public static GType getType() 54 { 55 return webkit_device_info_permission_request_get_type(); 56 } 57 }