diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-09 05:40:02 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-09 05:40:02 +0000 |
commit | 1f50197c5bc1a869ec2ee49a90a723e1ef6f9023 (patch) | |
tree | 9fe485ae596376de36e4764f550be9ed0b436f29 | |
parent | 9754649b5f77ee7d4515329699cd9f3429daa7d4 (diff) | |
download | chromium_src-1f50197c5bc1a869ec2ee49a90a723e1ef6f9023.zip chromium_src-1f50197c5bc1a869ec2ee49a90a723e1ef6f9023.tar.gz chromium_src-1f50197c5bc1a869ec2ee49a90a723e1ef6f9023.tar.bz2 |
Add device motion runtime feature entry and the command line switch.
Review URL: http://codereview.chromium.org/3029066
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55378 0039d316-1c4b-4281-b951-d872f2087c98
-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)); |