diff options
author | mlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-17 20:35:28 +0000 |
---|---|---|
committer | mlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-17 20:35:28 +0000 |
commit | 95c0a1f6fca054ae901f1d1cfe164758786d5bbd (patch) | |
tree | e932ad0f0e2218f6ce2e6f38c2c861887a094aae /ui/gfx/display.h | |
parent | ab9ce6ea5f581e4bad374179b37ea265f7e4908c (diff) | |
download | chromium_src-95c0a1f6fca054ae901f1d1cfe164758786d5bbd.zip chromium_src-95c0a1f6fca054ae901f1d1cfe164758786d5bbd.tar.gz chromium_src-95c0a1f6fca054ae901f1d1cfe164758786d5bbd.tar.bz2 |
Get and set Display's rotation as an int.
Ideally, Display's rotation would be saved as an int but in order to
move fast, we can start by adding this and this where the other cl goes.
See: https://codereview.chromium.org/237933002/
BUG=None
Review URL: https://codereview.chromium.org/240453007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264627 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/display.h')
-rw-r--r-- | ui/gfx/display.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/gfx/display.h b/ui/gfx/display.h index eb35a5f..90fc42f 100644 --- a/ui/gfx/display.h +++ b/ui/gfx/display.h @@ -73,6 +73,8 @@ class GFX_EXPORT Display { Rotation rotation() const { return rotation_; } void set_rotation(Rotation rotation) { rotation_ = rotation; } + int RotationAsDegree() const; + void SetRotationAsDegree(int rotation); TouchSupport touch_support() const { return touch_support_; } void set_touch_support(TouchSupport support) { touch_support_ = support; } |