Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

Issue 14280004: Revert removal of events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebKit/chromium/src/WebPopupMenuImpl.cpp ('k') | Source/bindings/v8/RuntimeEnabledFeatures.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
diff --git a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
index 08b9a04dd0eb66b081d98c007ee0152f135bd1f7..300423be4ba4714aea87cdde1bd368cfaeedbe72 100644
--- a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
+++ b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
@@ -156,12 +156,18 @@ bool WebRuntimeFeatures::isWebAudioEnabled()
void WebRuntimeFeatures::enableTouch(bool enable)
{
+#if ENABLE(TOUCH_EVENTS)
RuntimeEnabledFeatures::setTouchEnabled(enable);
+#endif
}
bool WebRuntimeFeatures::isTouchEnabled()
{
+#if ENABLE(TOUCH_EVENTS)
return RuntimeEnabledFeatures::touchEnabled();
+#else
+ return false;
+#endif
}
void WebRuntimeFeatures::enableDeviceMotion(bool enable)
« no previous file with comments | « Source/WebKit/chromium/src/WebPopupMenuImpl.cpp ('k') | Source/bindings/v8/RuntimeEnabledFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698