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

Unified Diff: ui/display/types/display_constants.h

Issue 289583002: Lock rotation when screen is manually rotated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Define sources for rotation Created 6 years, 7 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/display/types/display_constants.h
diff --git a/ui/display/types/display_constants.h b/ui/display/types/display_constants.h
index cf4ee6030d18902047824980843831111836b856..3f682958a0b442b7b190daeb9d658b249141892f 100644
--- a/ui/display/types/display_constants.h
+++ b/ui/display/types/display_constants.h
@@ -47,6 +47,15 @@ enum ColorCalibrationProfile {
NUM_COLOR_PROFILES,
};
+// Define the cause of a rotation being applied to a display. Users can specify
+// rotations via "ctrl+shift+F3" or via the display settings. While Maximize
+// Mode is enabled the accelerometer will apply changes to the display
+// rotation.
+enum RotationSource {
+ USER,
flackr 2014/05/16 16:00:22 We tend to have enum values which make it obvious
jonross 2014/05/20 15:24:30 Done.
+ ACCELEROMETER,
+};
oshima 2014/05/17 03:23:30 I'd like to avoid having this info in ui/display.
jonross 2014/05/20 15:24:30 Will update the location once this has been decide
+
} // namespace ui
#endif // UI_DISPLAY_TYPES_DISPLAY_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698