Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Unified Diff: ui/gfx/display.h

Issue 1071353003: Prevent DisplayPreferences from saving incorrect rotations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gfx/display.h
diff --git a/ui/gfx/display.h b/ui/gfx/display.h
index fe2a40cf632b6fa81c5fa7119b2f87b1574cef0e..7cee64ca5390fef85857e44680472cbd60644854 100644
--- a/ui/gfx/display.h
+++ b/ui/gfx/display.h
@@ -30,6 +30,13 @@ class GFX_EXPORT Display {
ROTATE_270,
};
+ // The cause of a change in display rotation.
tdanderson 2015/04/13 22:44:46 Nit: For the ease of someone reading this for the
jonross 2015/04/15 17:43:12 Done.
+ enum RotationSource {
+ ROTATION_SOURCE_ACCELEROMETER = 0,
+ ROTATION_SOURCE_ACTIVE,
+ ROTATION_SOURCE_USER,
+ };
+
// Touch support for the display.
enum TouchSupport {
TOUCH_SUPPORT_UNKNOWN,

Powered by Google App Engine
This is Rietveld 408576698