OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SERVICES_UI_WS_PLATFORM_DISPLAY_INIT_PARAMS_H_ | 5 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_INIT_PARAMS_H_ |
6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_INIT_PARAMS_H_ | 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_INIT_PARAMS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "ui/gfx/geometry/rect.h" | 11 #include "services/ui/ws/viewport_metrics.h" |
12 | |
13 namespace shell { | |
14 class Connector; | |
15 } | |
16 | 12 |
17 namespace ui { | 13 namespace ui { |
18 | 14 |
19 class GpuState; | |
20 class SurfacesState; | 15 class SurfacesState; |
21 | 16 |
22 namespace ws { | 17 namespace ws { |
23 | 18 |
24 struct PlatformDisplayInitParams { | 19 struct PlatformDisplayInitParams { |
25 PlatformDisplayInitParams(); | 20 PlatformDisplayInitParams(); |
26 PlatformDisplayInitParams(const PlatformDisplayInitParams& other); | |
27 ~PlatformDisplayInitParams(); | 21 ~PlatformDisplayInitParams(); |
28 | 22 |
29 scoped_refptr<SurfacesState> surfaces_state; | 23 scoped_refptr<SurfacesState> surfaces_state; |
30 | |
31 gfx::Rect display_bounds; | |
32 int64_t display_id; | 24 int64_t display_id; |
| 25 ViewportMetrics metrics; |
33 }; | 26 }; |
34 | 27 |
35 } // namespace ws | 28 } // namespace ws |
36 } // namespace ui | 29 } // namespace ui |
37 | 30 |
38 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_INIT_PARAMS_H_ | 31 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_INIT_PARAMS_H_ |
OLD | NEW |