diff options
-rw-r--r-- | chrome/common/chrome_switches.cc | 5 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 1 | ||||
-rw-r--r-- | chrome/renderer/render_thread.cc | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 454fffd..c5090d6 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -314,7 +314,10 @@ const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy"; const char kEnableCloudPrint[] = "enable-cloud-print"; // Enables the cookie prompt. -const char kEnableCookiePrompt[ ] = "enable-cookie-prompt"; +const char kEnableCookiePrompt[] = "enable-cookie-prompt"; + +// Enables device motion events. +const char kEnableDeviceMotion[] = "enable-device-motion"; // Enables device orientation events. const char kEnableDeviceOrientation[] = "enable-device-orientation"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index cc69770..e323139 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -104,6 +104,7 @@ extern const char kEnableClickToPlay[]; extern const char kEnableCloudPrintProxy[]; extern const char kEnableCloudPrint[]; extern const char kEnableCookiePrompt[]; +extern const char kEnableDeviceMotion[]; extern const char kEnableDeviceOrientation[]; extern const char kEnableExperimentalExtensionApis[]; extern const char kEnableExperimentalWebGL[]; diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc index bdab4f7..8ea6c08 100644 --- a/chrome/renderer/render_thread.cc +++ b/chrome/renderer/render_thread.cc @@ -911,6 +911,9 @@ void RenderThread::EnsureWebKitInitialized() { WebRuntimeFeatures::enableTouch( command_line.HasSwitch(switches::kEnableTouch)); + WebRuntimeFeatures::enableDeviceMotion( + command_line.HasSwitch(switches::kEnableDeviceMotion)); + WebRuntimeFeatures::enableDeviceOrientation( command_line.HasSwitch(switches::kEnableDeviceOrientation)); |