Index: Source/core/page/DOMWindow.idl |
diff --git a/Source/core/page/DOMWindow.idl b/Source/core/page/DOMWindow.idl |
index d888bf5adeb2048d28ab3d401f8234c3a8ef4927..097e50a52d3675eb60f3c1e8e088db1bde3c94d0 100644 |
--- a/Source/core/page/DOMWindow.idl |
+++ b/Source/core/page/DOMWindow.idl |
@@ -268,10 +268,10 @@ |
#if defined(ENABLE_ORIENTATION_EVENTS) && ENABLE_ORIENTATION_EVENTS |
attribute EventListener onorientationchange; |
#endif |
- [EnabledAtRuntime=touch] attribute EventListener ontouchstart; |
- [EnabledAtRuntime=touch] attribute EventListener ontouchmove; |
- [EnabledAtRuntime=touch] attribute EventListener ontouchend; |
- [EnabledAtRuntime=touch] attribute EventListener ontouchcancel; |
+ [Conditional=TOUCH_EVENTS,EnabledAtRuntime=touch] attribute EventListener ontouchstart; |
+ [Conditional=TOUCH_EVENTS,EnabledAtRuntime=touch] attribute EventListener ontouchmove; |
+ [Conditional=TOUCH_EVENTS,EnabledAtRuntime=touch] attribute EventListener ontouchend; |
+ [Conditional=TOUCH_EVENTS,EnabledAtRuntime=touch] attribute EventListener ontouchcancel; |
[EnabledAtRuntime] attribute EventListener ondevicemotion; |
[EnabledAtRuntime] attribute EventListener ondeviceorientation; |
@@ -516,9 +516,9 @@ |
attribute XMLHttpRequestProgressEventConstructor XMLHttpRequestProgressEvent; |
[EnabledAtRuntime] attribute DeviceMotionEventConstructor DeviceMotionEvent; |
[EnabledAtRuntime] attribute DeviceOrientationEventConstructor DeviceOrientationEvent; |
- [EnabledAtRuntime=touch] attribute TouchConstructor Touch; |
- [EnabledAtRuntime=touch] attribute TouchEventConstructor TouchEvent; |
- [EnabledAtRuntime=touch] attribute TouchListConstructor TouchList; |
+ [Conditional=TOUCH_EVENTS, EnabledAtRuntime=touch] attribute TouchConstructor Touch; |
+ [Conditional=TOUCH_EVENTS, EnabledAtRuntime=touch] attribute TouchEventConstructor TouchEvent; |
+ [Conditional=TOUCH_EVENTS, EnabledAtRuntime=touch] attribute TouchListConstructor TouchList; |
attribute StorageEventConstructor StorageEvent; |
[Conditional=INPUT_SPEECH] attribute SpeechInputEventConstructor SpeechInputEvent; |
[Conditional=WEBGL] attribute WebGLContextEventConstructor WebGLContextEvent; |