dom/webidl/DeviceOrientationEvent.webidl

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:6530e0e778a1
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 */
6
7 [Constructor(DOMString type, optional DeviceOrientationEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"]
8 interface DeviceOrientationEvent : Event
9 {
10 readonly attribute double alpha;
11 readonly attribute double beta;
12 readonly attribute double gamma;
13 readonly attribute boolean absolute;
14
15 // initDeviceOrientationEvent is a Gecko specific deprecated method.
16 [Throws]
17 void initDeviceOrientationEvent(DOMString type,
18 boolean canBubble,
19 boolean cancelable,
20 double alpha,
21 double beta,
22 double gamma,
23 boolean absolute);
24 };
25
26 dictionary DeviceOrientationEventInit : EventInit
27 {
28 double alpha = 0;
29 double beta = 0;
30 double gamma = 0;
31 boolean absolute = false;
32 };

mercurial