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 #include "ash/host/ash_window_tree_host.h" | 5 #include "ash/host/ash_window_tree_host.h" |
6 | 6 |
| 7 #include "ash/host/ash_window_tree_host_init_params.h" |
7 #include "ash/host/root_window_transformer.h" | 8 #include "ash/host/root_window_transformer.h" |
8 #include "ash/host/transformer_helper.h" | 9 #include "ash/host/transformer_helper.h" |
9 #include "base/command_line.h" | 10 #include "base/command_line.h" |
10 #include "ui/aura/window_tree_host_ozone.h" | 11 #include "ui/aura/window_tree_host_ozone.h" |
11 #include "ui/gfx/geometry/insets.h" | 12 #include "ui/gfx/geometry/insets.h" |
12 #include "ui/gfx/transform.h" | 13 #include "ui/gfx/transform.h" |
13 | 14 |
14 namespace ash { | 15 namespace ash { |
15 namespace { | 16 namespace { |
16 | 17 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 gfx::Transform AshWindowTreeHostOzone::GetInverseRootTransform() const { | 82 gfx::Transform AshWindowTreeHostOzone::GetInverseRootTransform() const { |
82 return transformer_helper_.GetInverseTransform(); | 83 return transformer_helper_.GetInverseTransform(); |
83 } | 84 } |
84 | 85 |
85 void AshWindowTreeHostOzone::UpdateRootWindowSize(const gfx::Size& host_size) { | 86 void AshWindowTreeHostOzone::UpdateRootWindowSize(const gfx::Size& host_size) { |
86 transformer_helper_.UpdateWindowSize(host_size); | 87 transformer_helper_.UpdateWindowSize(host_size); |
87 } | 88 } |
88 | 89 |
89 } // namespace | 90 } // namespace |
90 | 91 |
91 AshWindowTreeHost* AshWindowTreeHost::Create(const gfx::Rect& initial_bounds) { | 92 AshWindowTreeHost* AshWindowTreeHost::Create( |
92 return new AshWindowTreeHostOzone(initial_bounds); | 93 const AshWindowTreeHostInitParams& init_params) { |
| 94 return new AshWindowTreeHostOzone(intial_params.initial_bounds); |
93 } | 95 } |
94 | 96 |
95 } // namespace ash | 97 } // namespace ash |
OLD | NEW |