Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: ui/aura/window_tree_host.cc

Issue 128743002: Adds RootWindowHost::Create() for android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: RootWindowHost->WindowTreeHost Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698