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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_DISPLAY_TYPES_DISPLAY_CONSTANTS_H_ 5 #ifndef UI_DISPLAY_TYPES_DISPLAY_CONSTANTS_H_
6 #define UI_DISPLAY_TYPES_DISPLAY_CONSTANTS_H_ 6 #define UI_DISPLAY_TYPES_DISPLAY_CONSTANTS_H_
7 7
8 namespace ui { 8 namespace ui {
9 9
10 // Used to describe the state of a multi-display configuration. 10 // Used to describe the state of a multi-display configuration.
(...skipping 29 matching lines...) Expand all
40 // Color calibration profiles. Don't change the order, and edit 40 // Color calibration profiles. Don't change the order, and edit
41 // tools/metrics/histograms/histograms.xml when a new item is added. 41 // tools/metrics/histograms/histograms.xml when a new item is added.
42 enum ColorCalibrationProfile { 42 enum ColorCalibrationProfile {
43 COLOR_PROFILE_STANDARD, 43 COLOR_PROFILE_STANDARD,
44 COLOR_PROFILE_DYNAMIC, 44 COLOR_PROFILE_DYNAMIC,
45 COLOR_PROFILE_MOVIE, 45 COLOR_PROFILE_MOVIE,
46 COLOR_PROFILE_READING, 46 COLOR_PROFILE_READING,
47 NUM_COLOR_PROFILES, 47 NUM_COLOR_PROFILES,
48 }; 48 };
49 49
50 // Define the cause of a rotation being applied to a display. Users can specify
51 // rotations via "ctrl+shift+F3" or via the display settings. While Maximize
52 // Mode is enabled the accelerometer will apply changes to the display
53 // rotation.
54 enum RotationSource {
55 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.
56 ACCELEROMETER,
57 };
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
58
50 } // namespace ui 59 } // namespace ui
51 60
52 #endif // UI_DISPLAY_TYPES_DISPLAY_CONSTANTS_H_ 61 #endif // UI_DISPLAY_TYPES_DISPLAY_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698