summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/DeviceOrientationEvent.idl
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/dom/DeviceOrientationEvent.idl
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/dom/DeviceOrientationEvent.idl')
-rw-r--r--Source/WebCore/dom/DeviceOrientationEvent.idl42
1 files changed, 21 insertions, 21 deletions
diff --git a/Source/WebCore/dom/DeviceOrientationEvent.idl b/Source/WebCore/dom/DeviceOrientationEvent.idl
index 2ab8ffafb..f349490d9 100644
--- a/Source/WebCore/dom/DeviceOrientationEvent.idl
+++ b/Source/WebCore/dom/DeviceOrientationEvent.idl
@@ -26,32 +26,32 @@
[
Conditional=DEVICE_ORIENTATION,
] interface DeviceOrientationEvent : Event {
- [Custom] readonly attribute double alpha;
- [Custom] readonly attribute double beta;
- [Custom] readonly attribute double gamma;
+ readonly attribute unrestricted double? alpha;
+ readonly attribute unrestricted double? beta;
+ readonly attribute unrestricted double? gamma;
// FIXME: Consider defining an ENABLE macro for iOS device orientation code and/or modifying
// the bindings scripts to support generating more complicated conditional code.
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS
- [Custom] readonly attribute double webkitCompassHeading;
- [Custom] readonly attribute double webkitCompassAccuracy;
- [Custom] void initDeviceOrientationEvent([Default=Undefined] optional DOMString type,
- [Default=Undefined] optional boolean bubbles,
- [Default=Undefined] optional boolean cancelable,
- [Default=Undefined] optional double alpha,
- [Default=Undefined] optional double beta,
- [Default=Undefined] optional double gamma,
- [Default=Undefined] optional double compassHeading,
- [Default=Undefined] optional double compassAccuracy);
+ [ImplementedAs=compassHeading] readonly attribute unrestricted double? webkitCompassHeading;
+ [ImplementedAs=compassAccuracy] readonly attribute unrestricted double? webkitCompassAccuracy;
+ void initDeviceOrientationEvent(optional DOMString type = "",
+ optional boolean bubbles = false,
+ optional boolean cancelable = false,
+ optional unrestricted double? alpha = null,
+ optional unrestricted double? beta = null,
+ optional unrestricted double? gamma = null,
+ optional unrestricted double? compassHeading = null,
+ optional unrestricted double? compassAccuracy = null);
#else
- [Custom] readonly attribute boolean absolute;
- [Custom] void initDeviceOrientationEvent([Default=Undefined] optional DOMString type,
- [Default=Undefined] optional boolean bubbles,
- [Default=Undefined] optional boolean cancelable,
- [Default=Undefined] optional double alpha,
- [Default=Undefined] optional double beta,
- [Default=Undefined] optional double gamma,
- [Default=Undefined] optional boolean absolute);
+ readonly attribute boolean? absolute;
+ void initDeviceOrientationEvent(optional DOMString type = "",
+ optional boolean bubbles = false,
+ optional boolean cancelable = false,
+ optional unrestricted double? alpha = null,
+ optional unrestricted double? beta = null,
+ optional unrestricted double? gamma = null,
+ optional boolean? absolute = null);
#endif
};