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/base/ui_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 // Note: The screen and display currently uses pixel coordinate | 15 // Note: The screen and display currently uses pixel coordinate |
16 // system. For platforms that support DIP (density independent pixel), | 16 // system. For platforms that support DIP (density independent pixel), |
17 // |bounds()| and |work_area| will return values in DIP coordinate | 17 // |bounds()| and |work_area| will return values in DIP coordinate |
18 // system, not in backing pixels. | 18 // system, not in backing pixels. |
19 class UI_EXPORT Display { | 19 class UI_EXPORT Display { |
20 public: | 20 public: |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 int64 id_; | 107 int64 id_; |
108 Rect bounds_; | 108 Rect bounds_; |
109 Rect work_area_; | 109 Rect work_area_; |
110 float device_scale_factor_; | 110 float device_scale_factor_; |
111 Rotation rotation_; | 111 Rotation rotation_; |
112 }; | 112 }; |
113 | 113 |
114 } // namespace gfx | 114 } // namespace gfx |
115 | 115 |
116 #endif // UI_GFX_DISPLAY_H_ | 116 #endif // UI_GFX_DISPLAY_H_ |
OLD | NEW |