OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "ui/aura/window_tree_host.h" | 5 #include "ui/aura/window_tree_host.h" |
6 | 6 |
7 #include "ui/aura/env.h" | 7 #include "ui/aura/env.h" |
8 #include "ui/aura/root_window.h" | 8 #include "ui/aura/root_window.h" |
9 #include "ui/aura/root_window_transformer.h" | 9 #include "ui/aura/root_window_transformer.h" |
10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // Get the latest scale from display because it might have been changed. | 183 // Get the latest scale from display because it might have been changed. |
184 compositor_->SetScaleAndSize(GetDeviceScaleFactorFromDisplay(window()), | 184 compositor_->SetScaleAndSize(GetDeviceScaleFactorFromDisplay(window()), |
185 new_size); | 185 new_size); |
186 | 186 |
187 // The layer, and the observers should be notified of the | 187 // The layer, and the observers should be notified of the |
188 // transformed size of the root window. | 188 // transformed size of the root window. |
189 UpdateRootWindowSize(new_size); | 189 UpdateRootWindowSize(new_size); |
190 delegate_->OnHostResized(new_size); | 190 delegate_->OnHostResized(new_size); |
191 } | 191 } |
192 | 192 |
| 193 #if defined(OS_ANDROID) |
| 194 // static |
| 195 WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds) { |
| 196 // This is only hit for tests and ash, right now these aren't an issue so |
| 197 // adding the CHECK. |
| 198 // TODO(sky): decide if we want a factory. |
| 199 CHECK(false); |
| 200 return NULL; |
| 201 } |
| 202 #endif |
| 203 |
193 } // namespace aura | 204 } // namespace aura |
OLD | NEW |