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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
51 TOUCH_SUPPORT_AVAILABLE, | 51 TOUCH_SUPPORT_AVAILABLE, |
52 TOUCH_SUPPORT_UNAVAILABLE, | 52 TOUCH_SUPPORT_UNAVAILABLE, |
53 }; | 53 }; |
54 | 54 |
55 enum : int64_t { kInvalidDisplayID = -1 }; | 55 enum : int64_t { kInvalidDisplayID = -1 }; |
56 | 56 |
57 // Creates a display with kInvalidDisplayID as default. | 57 // Creates a display with kInvalidDisplayID as default. |
58 Display(); | 58 Display(); |
59 explicit Display(int64_t id); | 59 explicit Display(int64_t id); |
60 Display(int64_t id, const Rect& bounds); | 60 Display(int64_t id, const Rect& bounds); |
61 ~Display(); | 61 virtual ~Display(); |
oshima
2016/01/15 18:26:03
Did you add subclass? I haven't look at other chan
robliao
2016/01/15 19:28:16
Yes, but it doesn't preclude copying. ScreenWin::D
oshima
2016/01/15 19:55:53
Style guide recommends to avoid it, and even if it
| |
62 | 62 |
63 // Returns the forced device scale factor, which is given by | 63 // Returns the forced device scale factor, which is given by |
64 // "--force-device-scale-factor". | 64 // "--force-device-scale-factor". |
65 static float GetForcedDeviceScaleFactor(); | 65 static float GetForcedDeviceScaleFactor(); |
66 | 66 |
67 // Indicates if a device scale factor is being explicitly enforced from the | 67 // Indicates if a device scale factor is being explicitly enforced from the |
68 // command line via "--force-device-scale-factor". | 68 // command line via "--force-device-scale-factor". |
69 static bool HasForceDeviceScaleFactor(); | 69 static bool HasForceDeviceScaleFactor(); |
70 | 70 |
71 // Resets the caches used to determine if a device scale factor is being | 71 // Resets the caches used to determine if a device scale factor is being |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
150 Rect bounds_; | 150 Rect bounds_; |
151 Rect work_area_; | 151 Rect work_area_; |
152 float device_scale_factor_; | 152 float device_scale_factor_; |
153 Rotation rotation_; | 153 Rotation rotation_; |
154 TouchSupport touch_support_; | 154 TouchSupport touch_support_; |
155 }; | 155 }; |
156 | 156 |
157 } // namespace gfx | 157 } // namespace gfx |
158 | 158 |
159 #endif // UI_GFX_DISPLAY_H_ | 159 #endif // UI_GFX_DISPLAY_H_ |
OLD | NEW |