Skip to content

Commit 6a19e4e

Browse files
kripodsandersn
authored andcommitted
Allow requesting permission for device orientation (#746)
* Allow requesting permission for device orientation iOS Safari 13 Beta 6 has shipped with permission API for DeviceMotionEvent and DeviceOrientationEvent, see: https://developer.apple.com/documentation/safari_release_notes/safari_13_beta_6_release_notes#3314664 * Update generated d.ts file
1 parent 7bf1c09 commit 6a19e4e

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4416,6 +4416,7 @@ interface DeviceMotionEvent extends Event {
44164416
declare var DeviceMotionEvent: {
44174417
prototype: DeviceMotionEvent;
44184418
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
4419+
requestPermission(): Promise<PermissionState>;
44194420
};
44204421

44214422
interface DeviceMotionEventAcceleration {
@@ -4441,6 +4442,7 @@ interface DeviceOrientationEvent extends Event {
44414442
declare var DeviceOrientationEvent: {
44424443
prototype: DeviceOrientationEvent;
44434444
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
4445+
requestPermission(): Promise<PermissionState>;
44444446
};
44454447

44464448
/** Provides information about the rate at which the device is rotating around all three axes. */

inputfiles/removedTypes.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -145,20 +145,6 @@
145145
}
146146
}
147147
},
148-
"DeviceMotionEvent": {
149-
"methods": {
150-
"method": {
151-
"requestPermission": null
152-
}
153-
}
154-
},
155-
"DeviceOrientationEvent": {
156-
"methods": {
157-
"method": {
158-
"requestPermission": null
159-
}
160-
}
161-
},
162148
"FederatedCredential": null,
163149
"HTMLAreasCollection": null,
164150
"HTMLBodyElement": {

0 commit comments

Comments
 (0)