Index: Source/core/dom/Document.idl |
diff --git a/Source/core/dom/Document.idl b/Source/core/dom/Document.idl |
index cfadaff92306ebfeb4ea36a1e1b749937d70e667..818cc90bc4a473f46794c325368f13532473cd98 100644 |
--- a/Source/core/dom/Document.idl |
+++ b/Source/core/dom/Document.idl |
@@ -254,16 +254,17 @@ |
[NotEnumerable] attribute EventListener onsearch; |
[NotEnumerable] attribute EventListener onselectstart; |
[NotEnumerable] attribute EventListener onselectionchange; |
- [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchstart; |
- [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchmove; |
- [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchend; |
- [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchcancel; |
+ [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime=touch] attribute EventListener ontouchstart; |
+ [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime=touch] attribute EventListener ontouchmove; |
+ [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime=touch] attribute EventListener ontouchend; |
+ [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime=touch] attribute EventListener ontouchcancel; |
[NotEnumerable] attribute EventListener onwebkitfullscreenchange; |
[NotEnumerable] attribute EventListener onwebkitfullscreenerror; |
[NotEnumerable] attribute EventListener onwebkitpointerlockchange; |
[NotEnumerable] attribute EventListener onwebkitpointerlockerror; |
[NotEnumerable, EnabledAtRuntime=experimentalContentSecurityPolicyFeatures] attribute EventListener onsecuritypolicyviolation; |
+#if defined(ENABLE_TOUCH_EVENTS) && ENABLE_TOUCH_EVENTS |
[ReturnNewObject, EnabledAtRuntime=touch, RaisesException] Touch createTouch([Default=Undefined] optional DOMWindow window, |
[Default=Undefined] optional EventTarget target, |
[Default=Undefined] optional long identifier, |
@@ -276,6 +277,7 @@ |
[Default=Undefined] optional float webkitRotationAngle, |
[Default=Undefined] optional float webkitForce); |
[ReturnNewObject, EnabledAtRuntime=touch, Custom, RaisesException] TouchList createTouchList(); |
+#endif |
#if defined(ENABLE_CUSTOM_ELEMENTS) && ENABLE_CUSTOM_ELEMENTS |
[EnabledAtRuntime=customDOMElements, Conditional=CUSTOM_ELEMENTS, ImplementedAs=registerElement, CallWith=ScriptState, DeliverCustomElementCallbacks, RaisesException] CustomElementConstructor webkitRegister(DOMString name, optional Dictionary options); |