geolocation-element.tentative.idl (1453B)
1 // https://wicg.github.io/PEPC/permission-elements.html#mixin-activation 2 enum InPagePermissionMixinBlockerReason { 3 // No blocker reason. 4 "", 5 6 // Blocker reasons supported by all InPagePermissionMixin users. 7 "illegal_subframe", "unsuccesful_registration", 8 "recently_attached", "intersection_changed", 9 "intersection_out_of_viewport_or_clipped", 10 "intersection_occluded_or_distorted", "style_invalid", 11 12 // Blocker reason specific to HTMLPermissionElement. 13 "type_invalid", 14 }; 15 16 // https://wicg.github.io/PEPC/permission-elements.html#permission-mixin 17 interface mixin InPagePermissionMixin { 18 readonly attribute boolean isValid; 19 readonly attribute InPagePermissionMixinBlockerReason invalidReason; 20 readonly attribute PermissionState initialPermissionStatus; 21 readonly attribute PermissionState permissionStatus; 22 23 attribute EventHandler onpromptaction; 24 attribute EventHandler onpromptdismiss; 25 attribute EventHandler onvalidationstatuschange; 26 }; 27 28 // https://wicg.github.io/PEPC/permission-elements.html#geolocation-element 29 [Exposed=Window] 30 interface HTMLGeolocationElement : HTMLElement { 31 [HTMLConstructor] constructor(); 32 33 readonly attribute GeolocationPosition? position; 34 readonly attribute GeolocationPositionError? error; 35 [CEReactions, Reflect] attribute boolean autolocate; 36 [CEReactions, Reflect] attribute boolean watch; 37 38 attribute EventHandler onlocation; 39 }; 40 HTMLGeolocationElement includes InPagePermissionMixin;