Chromium Code Reviews| Index: ui/gfx/display.h |
| diff --git a/ui/gfx/display.h b/ui/gfx/display.h |
| index fe2a40cf632b6fa81c5fa7119b2f87b1574cef0e..8b05e707e9c3bb400983540b4fd305c5210bfeea 100644 |
| --- a/ui/gfx/display.h |
| +++ b/ui/gfx/display.h |
| @@ -30,6 +30,16 @@ class GFX_EXPORT Display { |
| ROTATE_270, |
| }; |
| + // The display rotation can have multiple causes for change. A user can set a |
| + // preference. On devices with accelerometers, they can change the rotation. |
| + // RotationSource allows for the tracking of a Rotation per source of the |
| + // change. |
| + enum RotationSource { |
| + ROTATION_SOURCE_ACCELEROMETER = 0, |
| + ROTATION_SOURCE_ACTIVE, |
|
oshima
2015/04/17 17:52:44
document what ACTIVE means.
jonross
2015/04/17 19:40:04
Done.
|
| + ROTATION_SOURCE_USER, |
| + }; |
| + |
| // Touch support for the display. |
| enum TouchSupport { |
| TOUCH_SUPPORT_UNKNOWN, |