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 /chrome/renderer | |
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
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_thread.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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)); |