Skip to content

Commit

Permalink
Remove DeviceLightEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Oct 24, 2020
1 parent 951d1df commit d30ce19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
17 changes: 0 additions & 17 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,6 @@ interface DelayOptions extends AudioNodeOptions {
maxDelayTime?: number;
}

interface DeviceLightEventInit extends EventInit {
value?: number;
}

interface DeviceMotionEventAccelerationInit {
x?: number | null;
y?: number | null;
Expand Down Expand Up @@ -4291,16 +4287,6 @@ declare var DeviceAcceleration: {
new(): DeviceAcceleration;
};

/** The DeviceLightEvent provides web developers with information from photo sensors or similiar detectors about ambient light levels near the device. For example this may be useful to adjust the screen's brightness based on the current ambient light level in order to save energy or provide better readability. */
interface DeviceLightEvent extends Event {
readonly value: number;
}

declare var DeviceLightEvent: {
prototype: DeviceLightEvent;
new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
};

/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. */
interface DeviceMotionEvent extends Event {
readonly acceleration: DeviceMotionEventAcceleration | null;
Expand Down Expand Up @@ -18380,7 +18366,6 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
"compassneedscalibration": Event;
"contextmenu": MouseEvent;
"dblclick": MouseEvent;
"devicelight": DeviceLightEvent;
"devicemotion": DeviceMotionEvent;
"deviceorientation": DeviceOrientationEvent;
"deviceorientationabsolute": DeviceOrientationEvent;
Expand Down Expand Up @@ -18495,7 +18480,6 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
readonly navigator: Navigator;
offscreenBuffering: string | boolean;
oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
Expand Down Expand Up @@ -19535,7 +19519,6 @@ declare const name: void;
declare var navigator: Navigator;
declare var offscreenBuffering: string | boolean;
declare var oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
declare var ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
Expand Down
2 changes: 2 additions & 0 deletions inputfiles/removedTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
}
}
},
"DeviceLightEvent": null,
"ElementInternals": null,
"FederatedCredential": null,
"FormDataEvent": null,
Expand Down Expand Up @@ -359,6 +360,7 @@
"crypto": null,
"isSecureContext": null,
"msCredentials": null,
"ondevicelight": null,
"ontouchcancel": null,
"ontouchend": null,
"ontouchmove": null,
Expand Down

0 comments on commit d30ce19

Please sign in to comment.