2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2009-08-21 07:42:37 -07:00
|
|
|
|
2011-06-19 22:36:17 -07:00
|
|
|
#include "nsIDOMEvent.idl"
|
2009-08-21 07:42:37 -07:00
|
|
|
|
2011-06-19 22:36:17 -07:00
|
|
|
[scriptable, uuid(2AD6EBC0-35AB-41D0-A755-0CA6A0E21565)]
|
|
|
|
interface nsIDOMDeviceAcceleration : nsISupports
|
|
|
|
{
|
|
|
|
readonly attribute double x;
|
|
|
|
readonly attribute double y;
|
|
|
|
readonly attribute double z;
|
|
|
|
};
|
2009-08-21 07:42:37 -07:00
|
|
|
|
2011-06-19 22:36:17 -07:00
|
|
|
[scriptable, uuid(E76AC929-61FE-4519-9EAC-D496A53CBC9B)]
|
|
|
|
interface nsIDOMDeviceRotationRate : nsISupports
|
2009-08-21 07:42:37 -07:00
|
|
|
{
|
2011-04-29 16:49:20 -07:00
|
|
|
readonly attribute double alpha;
|
|
|
|
readonly attribute double beta;
|
|
|
|
readonly attribute double gamma;
|
2009-08-21 07:42:37 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2012-06-10 16:44:50 -07:00
|
|
|
[scriptable, builtinclass, uuid(cdf9bfef-dd71-4780-889b-edb4780d00da)]
|
2011-06-19 22:36:17 -07:00
|
|
|
interface nsIDOMDeviceMotionEvent : nsIDOMEvent
|
2009-08-21 07:42:37 -07:00
|
|
|
{
|
2011-06-19 22:36:17 -07:00
|
|
|
void initDeviceMotionEvent(in DOMString eventTypeArg,
|
|
|
|
in boolean canBubbleArg,
|
|
|
|
in boolean cancelableArg,
|
|
|
|
in nsIDOMDeviceAcceleration acceleration,
|
|
|
|
in nsIDOMDeviceAcceleration accelerationIncludingGravity,
|
|
|
|
in nsIDOMDeviceRotationRate rotationRate,
|
|
|
|
in double interval);
|
2009-08-21 07:42:37 -07:00
|
|
|
|
2011-06-19 22:36:17 -07:00
|
|
|
readonly attribute nsIDOMDeviceAcceleration acceleration;
|
|
|
|
readonly attribute nsIDOMDeviceAcceleration accelerationIncludingGravity;
|
|
|
|
readonly attribute nsIDOMDeviceRotationRate rotationRate;
|
|
|
|
readonly attribute double interval;
|
2009-08-21 07:42:37 -07:00
|
|
|
};
|
2010-11-05 10:43:13 -07:00
|
|
|
|