OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DISPLAY_H_ | 5 #ifndef UI_DISPLAY_DISPLAY_H_ |
6 #define UI_DISPLAY_DISPLAY_H_ | 6 #define UI_DISPLAY_DISPLAY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // Gets/Sets an id of display corresponding to internal panel. | 154 // Gets/Sets an id of display corresponding to internal panel. |
155 static int64_t InternalDisplayId(); | 155 static int64_t InternalDisplayId(); |
156 static void SetInternalDisplayId(int64_t internal_display_id); | 156 static void SetInternalDisplayId(int64_t internal_display_id); |
157 | 157 |
158 // Test if the |id| is for the internal display if any. | 158 // Test if the |id| is for the internal display if any. |
159 static bool IsInternalDisplayId(int64_t id); | 159 static bool IsInternalDisplayId(int64_t id); |
160 | 160 |
161 // True if there is an internal display. | 161 // True if there is an internal display. |
162 static bool HasInternalDisplay(); | 162 static bool HasInternalDisplay(); |
163 | 163 |
| 164 static int RotateToDegree(Rotation rotation); |
| 165 |
164 // Maximum cursor size in native pixels. | 166 // Maximum cursor size in native pixels. |
165 const gfx::Size& maximum_cursor_size() const { return maximum_cursor_size_; } | 167 const gfx::Size& maximum_cursor_size() const { return maximum_cursor_size_; } |
166 void set_maximum_cursor_size(const gfx::Size& size) { | 168 void set_maximum_cursor_size(const gfx::Size& size) { |
167 maximum_cursor_size_ = size; | 169 maximum_cursor_size_ = size; |
168 } | 170 } |
169 | 171 |
170 // The full ICC profile of the display. | 172 // The full ICC profile of the display. |
171 gfx::ICCProfile icc_profile() const { return icc_profile_; } | 173 gfx::ICCProfile icc_profile() const { return icc_profile_; } |
172 void set_icc_profile(const gfx::ICCProfile& icc_profile) { | 174 void set_icc_profile(const gfx::ICCProfile& icc_profile) { |
173 icc_profile_ = icc_profile; | 175 icc_profile_ = icc_profile; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 gfx::Size maximum_cursor_size_; | 210 gfx::Size maximum_cursor_size_; |
209 gfx::ICCProfile icc_profile_; | 211 gfx::ICCProfile icc_profile_; |
210 int color_depth_; | 212 int color_depth_; |
211 int depth_per_component_; | 213 int depth_per_component_; |
212 bool is_monochrome_ = false; | 214 bool is_monochrome_ = false; |
213 }; | 215 }; |
214 | 216 |
215 } // namespace display | 217 } // namespace display |
216 | 218 |
217 #endif // UI_DISPLAY_DISPLAY_H_ | 219 #endif // UI_DISPLAY_DISPLAY_H_ |
OLD | NEW |