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" |
11 #include "ui/display/display_export.h" | 11 #include "ui/display/display_export.h" |
12 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
13 | 13 |
14 #if !defined(OS_IOS) | 14 #if !defined(OS_IOS) |
15 #include "mojo/public/cpp/bindings/struct_traits.h" // nogncheck | 15 #include "mojo/public/cpp/bindings/struct_traits.h" // nogncheck |
16 #endif | 16 #endif |
17 | 17 |
18 namespace display { | 18 namespace display { |
19 | 19 |
20 #if !defined(OS_IOS) | 20 #if !defined(OS_IOS) |
21 namespace mojom { | 21 namespace mojom { |
22 class Display; | 22 class DisplayDataView; |
23 } | 23 } |
24 #endif | 24 #endif |
25 | 25 |
26 // This class typically, but does not always, correspond to a physical display | 26 // This class typically, but does not always, correspond to a physical display |
27 // connected to the system. A fake Display may exist on a headless system, or a | 27 // connected to the system. A fake Display may exist on a headless system, or a |
28 // Display may correspond to a remote, virtual display. | 28 // Display may correspond to a remote, virtual display. |
29 // | 29 // |
30 // Note: The screen and display currently uses pixel coordinate | 30 // Note: The screen and display currently uses pixel coordinate |
31 // system. For platforms that support DIP (density independent pixel), | 31 // system. For platforms that support DIP (density independent pixel), |
32 // |bounds()| and |work_area| will return values in DIP coordinate | 32 // |bounds()| and |work_area| will return values in DIP coordinate |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 gfx::Rect bounds_; | 179 gfx::Rect bounds_; |
180 gfx::Rect work_area_; | 180 gfx::Rect work_area_; |
181 float device_scale_factor_; | 181 float device_scale_factor_; |
182 Rotation rotation_; | 182 Rotation rotation_; |
183 TouchSupport touch_support_; | 183 TouchSupport touch_support_; |
184 gfx::Size maximum_cursor_size_; | 184 gfx::Size maximum_cursor_size_; |
185 int color_depth_; | 185 int color_depth_; |
186 int depth_per_component_; | 186 int depth_per_component_; |
187 | 187 |
188 #if !defined(OS_IOS) | 188 #if !defined(OS_IOS) |
189 friend struct mojo::StructTraits<display::mojom::Display, display::Display>; | 189 friend struct mojo::StructTraits<display::mojom::DisplayDataView, |
| 190 display::Display>; |
190 #endif | 191 #endif |
191 }; | 192 }; |
192 | 193 |
193 } // namespace display | 194 } // namespace display |
194 | 195 |
195 #endif // UI_DISPLAY_DISPLAY_H_ | 196 #endif // UI_DISPLAY_DISPLAY_H_ |
OLD | NEW |