Skip to content

Commit 736d268

Browse files
committed
Remove DeviceLightEvent
1 parent 951d1df commit 736d268

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

baselines/dom.generated.d.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,6 @@ interface DelayOptions extends AudioNodeOptions {
345345
maxDelayTime?: number;
346346
}
347347

348-
interface DeviceLightEventInit extends EventInit {
349-
value?: number;
350-
}
351-
352348
interface DeviceMotionEventAccelerationInit {
353349
x?: number | null;
354350
y?: number | null;
@@ -4291,16 +4287,6 @@ declare var DeviceAcceleration: {
42914287
new(): DeviceAcceleration;
42924288
};
42934289

4294-
/** 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. */
4295-
interface DeviceLightEvent extends Event {
4296-
readonly value: number;
4297-
}
4298-
4299-
declare var DeviceLightEvent: {
4300-
prototype: DeviceLightEvent;
4301-
new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
4302-
};
4303-
43044290
/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. */
43054291
interface DeviceMotionEvent extends Event {
43064292
readonly acceleration: DeviceMotionEventAcceleration | null;
@@ -4635,7 +4621,6 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
46354621
createEvent(eventInterface: "CloseEvent"): CloseEvent;
46364622
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
46374623
createEvent(eventInterface: "CustomEvent"): CustomEvent;
4638-
createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
46394624
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
46404625
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
46414626
createEvent(eventInterface: "DragEvent"): DragEvent;
@@ -4885,7 +4870,6 @@ interface DocumentEvent {
48854870
createEvent(eventInterface: "CloseEvent"): CloseEvent;
48864871
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
48874872
createEvent(eventInterface: "CustomEvent"): CustomEvent;
4888-
createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
48894873
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
48904874
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
48914875
createEvent(eventInterface: "DragEvent"): DragEvent;
@@ -18380,7 +18364,6 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
1838018364
"compassneedscalibration": Event;
1838118365
"contextmenu": MouseEvent;
1838218366
"dblclick": MouseEvent;
18383-
"devicelight": DeviceLightEvent;
1838418367
"devicemotion": DeviceMotionEvent;
1838518368
"deviceorientation": DeviceOrientationEvent;
1838618369
"deviceorientationabsolute": DeviceOrientationEvent;
@@ -18495,7 +18478,6 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
1849518478
readonly navigator: Navigator;
1849618479
offscreenBuffering: string | boolean;
1849718480
oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
18498-
ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
1849918481
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
1850018482
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
1850118483
ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
@@ -19535,7 +19517,6 @@ declare const name: void;
1953519517
declare var navigator: Navigator;
1953619518
declare var offscreenBuffering: string | boolean;
1953719519
declare var oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
19538-
declare var ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
1953919520
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
1954019521
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
1954119522
declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;

inputfiles/removedTypes.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@
195195
}
196196
}
197197
},
198+
"DeviceLightEvent": null,
198199
"ElementInternals": null,
199200
"FederatedCredential": null,
200201
"FormDataEvent": null,
@@ -359,6 +360,7 @@
359360
"crypto": null,
360361
"isSecureContext": null,
361362
"msCredentials": null,
363+
"ondevicelight": null,
362364
"ontouchcancel": null,
363365
"ontouchend": null,
364366
"ontouchmove": null,
@@ -372,6 +374,11 @@
372374
"requestAnimationFrame": null
373375
}
374376
},
377+
"events": {
378+
"event": [
379+
"devicelight"
380+
]
381+
},
375382
"implements": [
376383
"GlobalFetch",
377384
"IDBEnvironment",

0 commit comments

Comments
 (0)