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/geometry/rect.h" |
10 #include "ui/gfx/gfx_export.h" | 11 #include "ui/gfx/gfx_export.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 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 Rect bounds_; | 124 Rect bounds_; |
125 Rect work_area_; | 125 Rect work_area_; |
126 float device_scale_factor_; | 126 float device_scale_factor_; |
127 Rotation rotation_; | 127 Rotation rotation_; |
128 TouchSupport touch_support_; | 128 TouchSupport touch_support_; |
129 }; | 129 }; |
130 | 130 |
131 } // namespace gfx | 131 } // namespace gfx |
132 | 132 |
133 #endif // UI_GFX_DISPLAY_H_ | 133 #endif // UI_GFX_DISPLAY_H_ |
OLD | NEW |