diff options
author | cwolfe@chromium.org <cwolfe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-15 21:54:13 +0000 |
---|---|---|
committer | cwolfe@chromium.org <cwolfe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-15 21:54:13 +0000 |
commit | 5a8b12dc6eba4c0697a557eeec61eae805f8ee7d (patch) | |
tree | ca4dad402909fef457b06589809e419412be8ac5 /chrome/common | |
parent | c579e424e985efb95eb719848fd1498045ac04d1 (diff) | |
download | chromium_src-5a8b12dc6eba4c0697a557eeec61eae805f8ee7d.zip chromium_src-5a8b12dc6eba4c0697a557eeec61eae805f8ee7d.tar.gz chromium_src-5a8b12dc6eba4c0697a557eeec61eae805f8ee7d.tar.bz2 |
chromeos: Add operations to monitor the screen orientation.
This is intended to help test <http://codereview.chromium.org/7273073/>.
These orientation-only functions will later be replaced with a
generalized sensors API (after appropriate design review). Getting
this pipeline working helps root out bugs and issues in the interim.
BUG=None
TEST=Inject orientation changes via dbus API.
With <http://codereview.chromium.org/7845029/>, inject changes using dbus-send:
dbus-send --system / org.chromium.Sensors.ScreenOrientationChanged int32:1
Review URL: http://codereview.chromium.org/7862020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 4 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index a9fa984..c14dbb5 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -1045,6 +1045,10 @@ const char kEnableGView[] = "enable-gview"; // Should we show the image based login? const char kEnableLoginImages[] = "enable-login-images"; +// Rotate the screen in response to orientation changed events from dbus. +// Will be reused for more generic sensors. +const char kEnableSensors[] = "enable-sensors"; + // Enables static ip configuration. // This flag should be removed when it's on by default. const char kEnableStaticIPConfig[] = "enable-static-ip-config"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 85521283..27cabc8 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -283,6 +283,7 @@ extern const char kSkipOAuthLogin[]; extern const char kEnableDevicePolicy[]; extern const char kEnableGView[]; extern const char kEnableLoginImages[]; +extern const char kEnableSensors[]; extern const char kEnableStaticIPConfig[]; extern const char kLoginManager[]; // TODO(avayvod): Remove this flag when it's unnecessary for testing |