Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
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 };