| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 157 |
| 158 // True if there is an internal display. | 158 // True if there is an internal display. |
| 159 static bool HasInternalDisplay(); | 159 static bool HasInternalDisplay(); |
| 160 | 160 |
| 161 // Maximum cursor size in native pixels. | 161 // Maximum cursor size in native pixels. |
| 162 const gfx::Size& maximum_cursor_size() const { return maximum_cursor_size_; } | 162 const gfx::Size& maximum_cursor_size() const { return maximum_cursor_size_; } |
| 163 void set_maximum_cursor_size(const gfx::Size& size) { | 163 void set_maximum_cursor_size(const gfx::Size& size) { |
| 164 maximum_cursor_size_ = size; | 164 maximum_cursor_size_ = size; |
| 165 } | 165 } |
| 166 | 166 |
| 167 int color_depth() const { return color_depth_; } |
| 168 void set_color_depth(int color_depth) { |
| 169 color_depth_ = color_depth; |
| 170 } |
| 171 |
| 172 int depth_per_component() const { return depth_per_component_; } |
| 173 void set_depth_per_component(int depth_per_component) { |
| 174 depth_per_component_ = depth_per_component; |
| 175 } |
| 176 |
| 167 private: | 177 private: |
| 168 int64_t id_; | 178 int64_t id_; |
| 169 gfx::Rect bounds_; | 179 gfx::Rect bounds_; |
| 170 gfx::Rect work_area_; | 180 gfx::Rect work_area_; |
| 171 float device_scale_factor_; | 181 float device_scale_factor_; |
| 172 Rotation rotation_; | 182 Rotation rotation_; |
| 173 TouchSupport touch_support_; | 183 TouchSupport touch_support_; |
| 174 gfx::Size maximum_cursor_size_; | 184 gfx::Size maximum_cursor_size_; |
| 185 int color_depth_; |
| 186 int depth_per_component_; |
| 175 | 187 |
| 176 #if !defined(OS_IOS) | 188 #if !defined(OS_IOS) |
| 177 friend struct mojo::StructTraits<display::mojom::Display, display::Display>; | 189 friend struct mojo::StructTraits<display::mojom::Display, display::Display>; |
| 178 #endif | 190 #endif |
| 179 }; | 191 }; |
| 180 | 192 |
| 181 } // namespace display | 193 } // namespace display |
| 182 | 194 |
| 183 #endif // UI_DISPLAY_DISPLAY_H_ | 195 #endif // UI_DISPLAY_DISPLAY_H_ |
| OLD | NEW |