Chromium Code Reviews| 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/display/types/display_constants.h" | |
| 12 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
| 13 #include "ui/gfx/icc_profile.h" | 14 #include "ui/gfx/icc_profile.h" |
| 14 | 15 |
| 15 #if !defined(OS_IOS) | 16 #if !defined(OS_IOS) |
| 16 #include "mojo/public/cpp/bindings/struct_traits.h" // nogncheck | 17 #include "mojo/public/cpp/bindings/struct_traits.h" // nogncheck |
| 17 #endif | 18 #endif |
| 18 | 19 |
| 19 namespace display { | 20 namespace display { |
| 20 | 21 |
| 21 #if !defined(OS_IOS) | 22 #if !defined(OS_IOS) |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 ROTATION_SOURCE_UNKNOWN, | 59 ROTATION_SOURCE_UNKNOWN, |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 // Touch support for the display. | 62 // Touch support for the display. |
| 62 enum TouchSupport { | 63 enum TouchSupport { |
| 63 TOUCH_SUPPORT_UNKNOWN, | 64 TOUCH_SUPPORT_UNKNOWN, |
| 64 TOUCH_SUPPORT_AVAILABLE, | 65 TOUCH_SUPPORT_AVAILABLE, |
| 65 TOUCH_SUPPORT_UNAVAILABLE, | 66 TOUCH_SUPPORT_UNAVAILABLE, |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 enum : int64_t { kInvalidDisplayID = -1 }; | 69 // Use display::kInvalidDisplayID from display_constants.h in new code. |
| 70 enum : int64_t { kInvalidDisplayID = display::kInvalidDisplayID }; | |
|
sadrul
2016/11/21 17:31:17
Get rid of it?
kylechar
2016/11/21 17:51:18
It's still used everywhere that isn't src/ui/* but
| |
| 69 | 71 |
| 70 // Creates a display with kInvalidDisplayID as default. | 72 // Creates a display with kInvalidDisplayID as default. |
| 71 Display(); | 73 Display(); |
| 72 explicit Display(int64_t id); | 74 explicit Display(int64_t id); |
| 73 Display(int64_t id, const gfx::Rect& bounds); | 75 Display(int64_t id, const gfx::Rect& bounds); |
| 74 Display(const Display& other); | 76 Display(const Display& other); |
| 75 ~Display(); | 77 ~Display(); |
| 76 | 78 |
| 77 // Returns the forced device scale factor, which is given by | 79 // Returns the forced device scale factor, which is given by |
| 78 // "--force-device-scale-factor". | 80 // "--force-device-scale-factor". |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 206 | 208 |
| 207 #if !defined(OS_IOS) | 209 #if !defined(OS_IOS) |
| 208 friend struct mojo::StructTraits<display::mojom::DisplayDataView, | 210 friend struct mojo::StructTraits<display::mojom::DisplayDataView, |
| 209 display::Display>; | 211 display::Display>; |
| 210 #endif | 212 #endif |
| 211 }; | 213 }; |
| 212 | 214 |
| 213 } // namespace display | 215 } // namespace display |
| 214 | 216 |
| 215 #endif // UI_DISPLAY_DISPLAY_H_ | 217 #endif // UI_DISPLAY_DISPLAY_H_ |
| OLD | NEW |