Skip to content

Remove DeviceLightEvent #932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 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 @@ -4635,7 +4621,6 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
createEvent(eventInterface: "CustomEvent"): CustomEvent;
createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
Expand Down Expand Up @@ -4885,7 +4870,6 @@ interface DocumentEvent {
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
createEvent(eventInterface: "CustomEvent"): CustomEvent;
createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
Expand Down Expand Up @@ -18380,7 +18364,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 +18478,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 +19517,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
7 changes: 7 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 All @@ -372,6 +374,11 @@
"requestAnimationFrame": null
}
},
"events": {
"event": [
"devicelight"
]
},
"implements": [
"GlobalFetch",
"IDBEnvironment",
Expand Down