OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ASH_HOST_WINDOW_TREE_HOST_INIT_PARAMS_H_ | 5 #ifndef ASH_HOST_WINDOW_TREE_HOST_INIT_PARAMS_H_ |
6 #define ASH_HOST_WINDOW_TREE_HOST_INIT_PARAMS_H_ | 6 #define ASH_HOST_WINDOW_TREE_HOST_INIT_PARAMS_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
9 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
10 | 12 |
11 namespace ash { | 13 namespace ash { |
12 | 14 |
13 struct ASH_EXPORT AshWindowTreeHostInitParams { | 15 struct ASH_EXPORT AshWindowTreeHostInitParams { |
| 16 // This corresponds to display::ManagedDisplayInfo::bounds_in_native. |
14 gfx::Rect initial_bounds; | 17 gfx::Rect initial_bounds; |
15 bool offscreen = false; | 18 bool offscreen = false; |
| 19 int64_t display_id = 0; |
| 20 float device_scale_factor = 0.0f; |
| 21 float ui_scale_factor = 0.0f; |
16 }; | 22 }; |
17 | 23 |
18 } // namespace ash | 24 } // namespace ash |
19 | 25 |
20 #endif // ASH_HOST_WINDOW_TREE_HOST_INIT_PARAMS_H_ | 26 #endif // ASH_HOST_WINDOW_TREE_HOST_INIT_PARAMS_H_ |
OLD | NEW |