Bug 1853821 fixing behaviour for BACKGROUND_TASK_SHARING_VIOLATION errorcode r=bytesi...
[gecko.git] / dom / webidl / UserProximityEvent.webidl
blob67ae1ceef2b65ad139663227619a31d0c3719376
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  */
7 [Pref="device.sensors.proximity.enabled", Func="nsGlobalWindowInner::DeviceSensorsEnabled",
8  Exposed=Window]
9 interface UserProximityEvent : Event
11     constructor(DOMString type,
12                 optional UserProximityEventInit eventInitDict = {});
14     readonly attribute boolean near;
17 dictionary UserProximityEventInit : EventInit
19   boolean near = false;