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

Unified Diff: chrome/renderer/render_thread.cc

Issue 1575033: Create a command-line switch for enabling touch events. (Closed)
Patch Set: Enabling touch support by default in test_shell Created 10 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 | « chrome/common/chrome_switches.cc ('k') | webkit/tools/test_shell/test_shell_webkit_init.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_thread.cc
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index ce746e4fa76c8f1e0d064c1ea8d0e1f1bdaf1e81..bccacf61a6c2178996a586d4b0e29cb2c71749f7 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -889,6 +889,9 @@ void RenderThread::EnsureWebKitInitialized() {
command_line.HasSwitch(switches::kEnableExperimentalWebGL));
WebRuntimeFeatures::enablePushState(true);
+
+ WebRuntimeFeatures::enableTouch(
+ command_line.HasSwitch(switches::kEnableTouch));
}
void RenderThread::IdleHandler() {
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | webkit/tools/test_shell/test_shell_webkit_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698