Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 [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;
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 };
26 dictionary DeviceOrientationEventInit : EventInit
27 {
28 double alpha = 0;
29 double beta = 0;
30 double gamma = 0;
31 boolean absolute = false;
32 };