Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #include <stdint.h> | |
| 9 | |
| 10 namespace display { | |
| 11 | |
| 12 // Display id that represents an invalid display. Often used as a default value | |
| 13 // before display ids are known. | |
|
Daniel Erat
2016/11/21 17:33:57
nit: s/id/ID/g in this comment
kylechar
2016/11/21 17:51:18
Done.
| |
| 14 constexpr int64_t kInvalidDisplayID = -1; | |
|
Daniel Erat
2016/11/21 17:33:57
it's a pretty big nit, but i think that "Id" is mo
kylechar
2016/11/21 17:51:18
I actually like kInvalidDisplayId better too. Chan
| |
| 15 | |
| 16 } // namespace display | |
| 17 | |
| 8 namespace ui { | 18 namespace ui { |
| 9 | 19 |
| 10 // Used to describe the state of a multi-display configuration. | 20 // Used to describe the state of a multi-display configuration. |
| 11 enum MultipleDisplayState { | 21 enum MultipleDisplayState { |
|
sadrul
2016/11/21 17:31:17
We probably want to move these to display namespac
kylechar
2016/11/21 17:51:18
Totally agreed. There is a big chunk of ui/display
| |
| 12 MULTIPLE_DISPLAY_STATE_INVALID, | 22 MULTIPLE_DISPLAY_STATE_INVALID, |
| 13 MULTIPLE_DISPLAY_STATE_HEADLESS, | 23 MULTIPLE_DISPLAY_STATE_HEADLESS, |
| 14 MULTIPLE_DISPLAY_STATE_SINGLE, | 24 MULTIPLE_DISPLAY_STATE_SINGLE, |
| 15 MULTIPLE_DISPLAY_STATE_DUAL_MIRROR, | 25 MULTIPLE_DISPLAY_STATE_DUAL_MIRROR, |
| 16 MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED, | 26 MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED, |
| 17 // TODO(oshima): consolidate DUAL_EXTENDED and MULTI_EXTENDED. | 27 // TODO(oshima): consolidate DUAL_EXTENDED and MULTI_EXTENDED. |
| 18 MULTIPLE_DISPLAY_STATE_MULTI_EXTENDED, | 28 MULTIPLE_DISPLAY_STATE_MULTI_EXTENDED, |
| 19 }; | 29 }; |
| 20 | 30 |
| 21 // Video output types. | 31 // Video output types. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 56 COLOR_PROFILE_STANDARD, | 66 COLOR_PROFILE_STANDARD, |
| 57 COLOR_PROFILE_DYNAMIC, | 67 COLOR_PROFILE_DYNAMIC, |
| 58 COLOR_PROFILE_MOVIE, | 68 COLOR_PROFILE_MOVIE, |
| 59 COLOR_PROFILE_READING, | 69 COLOR_PROFILE_READING, |
| 60 NUM_COLOR_PROFILES, | 70 NUM_COLOR_PROFILES, |
| 61 }; | 71 }; |
| 62 | 72 |
| 63 } // namespace ui | 73 } // namespace ui |
| 64 | 74 |
| 65 #endif // UI_DISPLAY_TYPES_DISPLAY_CONSTANTS_H_ | 75 #endif // UI_DISPLAY_TYPES_DISPLAY_CONSTANTS_H_ |
| OLD | NEW |