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_GFX_DISPLAY_H_ | 5 #ifndef UI_GFX_DISPLAY_H_ |
6 #define UI_GFX_DISPLAY_H_ | 6 #define UI_GFX_DISPLAY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ui/gfx/gfx_export.h" | 10 #include "ui/gfx/gfx_export.h" |
11 #include "ui/gfx/rect.h" | 11 #include "ui/gfx/rect.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 | 14 |
15 // This class typically, but does not always, correspond to a physical display | 15 // This class typically, but does not always, correspond to a physical display |
16 // connected to the system. A fake Display may exist on a headless system, or a | 16 // connected to the system. A fake Display may exist on a headless system, or a |
17 // Display may correspond to a remote, virtual display. | 17 // Display may correspond to a remote, virtual display. |
18 // | 18 // |
19 // Note: The screen and display currently uses pixel coordinate | 19 // Note: The screen and display currently uses pixel coordinate |
20 // system. For platforms that support DIP (density independent pixel), | 20 // system. For platforms that support DIP (density independent pixel), |
21 // |bounds()| and |work_area| will return values in DIP coordinate | 21 // |bounds()| and |work_area| will return values in DIP coordinate |
22 // system, not in backing pixels. | 22 // system, not in backing pixels. |
23 class UI_EXPORT Display { | 23 class GFX_EXPORT Display { |
24 public: | 24 public: |
25 // Screen Rotation in clock-wise degrees. | 25 // Screen Rotation in clock-wise degrees. |
26 enum Rotation { | 26 enum Rotation { |
27 ROTATE_0 = 0, | 27 ROTATE_0 = 0, |
28 ROTATE_90, | 28 ROTATE_90, |
29 ROTATE_180, | 29 ROTATE_180, |
30 ROTATE_270, | 30 ROTATE_270, |
31 }; | 31 }; |
32 | 32 |
33 // Creates a display with kInvalidDisplayID as default. | 33 // Creates a display with kInvalidDisplayID as default. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 int64 id_; | 111 int64 id_; |
112 Rect bounds_; | 112 Rect bounds_; |
113 Rect work_area_; | 113 Rect work_area_; |
114 float device_scale_factor_; | 114 float device_scale_factor_; |
115 Rotation rotation_; | 115 Rotation rotation_; |
116 }; | 116 }; |
117 | 117 |
118 } // namespace gfx | 118 } // namespace gfx |
119 | 119 |
120 #endif // UI_GFX_DISPLAY_H_ | 120 #endif // UI_GFX_DISPLAY_H_ |
OLD | NEW |