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/ash_window_tree_host_init_params.h" |
8 #include "ash/host/root_window_transformer.h" | 8 #include "ash/host/root_window_transformer.h" |
9 #include "ash/host/transformer_helper.h" | 9 #include "ash/host/transformer_helper.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 gfx::Insets AshWindowTreeHostOzone::GetHostInsets() const { | 66 gfx::Insets AshWindowTreeHostOzone::GetHostInsets() const { |
67 return transformer_helper_.GetHostInsets(); | 67 return transformer_helper_.GetHostInsets(); |
68 } | 68 } |
69 | 69 |
70 aura::WindowTreeHost* AshWindowTreeHostOzone::AsWindowTreeHost() { | 70 aura::WindowTreeHost* AshWindowTreeHostOzone::AsWindowTreeHost() { |
71 return this; | 71 return this; |
72 } | 72 } |
73 | 73 |
74 void AshWindowTreeHostOzone::SetRootTransform(const gfx::Transform& transform) { | 74 void AshWindowTreeHostOzone::SetRootTransform(const gfx::Transform& transform) { |
75 transformer_helper_.GetTransform(); | 75 transformer_helper_.SetTransform(transform); |
76 } | 76 } |
77 | 77 |
78 gfx::Transform AshWindowTreeHostOzone::GetRootTransform() const { | 78 gfx::Transform AshWindowTreeHostOzone::GetRootTransform() const { |
79 return transformer_helper_.GetTransform(); | 79 return transformer_helper_.GetTransform(); |
80 } | 80 } |
81 | 81 |
82 gfx::Transform AshWindowTreeHostOzone::GetInverseRootTransform() const { | 82 gfx::Transform AshWindowTreeHostOzone::GetInverseRootTransform() const { |
83 return transformer_helper_.GetInverseTransform(); | 83 return transformer_helper_.GetInverseTransform(); |
84 } | 84 } |
85 | 85 |
86 void AshWindowTreeHostOzone::UpdateRootWindowSize(const gfx::Size& host_size) { | 86 void AshWindowTreeHostOzone::UpdateRootWindowSize(const gfx::Size& host_size) { |
87 transformer_helper_.UpdateWindowSize(host_size); | 87 transformer_helper_.UpdateWindowSize(host_size); |
88 } | 88 } |
89 | 89 |
90 } // namespace | 90 } // namespace |
91 | 91 |
92 AshWindowTreeHost* AshWindowTreeHost::Create( | 92 AshWindowTreeHost* AshWindowTreeHost::Create( |
93 const AshWindowTreeHostInitParams& init_params) { | 93 const AshWindowTreeHostInitParams& init_params) { |
94 return new AshWindowTreeHostOzone(init_params.initial_bounds); | 94 return new AshWindowTreeHostOzone(init_params.initial_bounds); |
95 } | 95 } |
96 | 96 |
97 } // namespace ash | 97 } // namespace ash |
OLD | NEW |