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

Side by Side Diff: ash/root_window_controller.cc

Issue 549453005: Run athena on device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | ash/shell.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/root_window_controller.h" 5 #include "ash/root_window_controller.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_constants.h" 10 #include "ash/ash_constants.h"
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 void RootWindowController::CreateForVirtualKeyboardDisplay( 277 void RootWindowController::CreateForVirtualKeyboardDisplay(
278 AshWindowTreeHost* host) { 278 AshWindowTreeHost* host) {
279 RootWindowController* controller = new RootWindowController(host); 279 RootWindowController* controller = new RootWindowController(host);
280 controller->Init(RootWindowController::VIRTUAL_KEYBOARD, 280 controller->Init(RootWindowController::VIRTUAL_KEYBOARD,
281 false /* first run */); 281 false /* first run */);
282 } 282 }
283 283
284 // static 284 // static
285 RootWindowController* RootWindowController::ForShelf( 285 RootWindowController* RootWindowController::ForShelf(
286 const aura::Window* window) { 286 const aura::Window* window) {
287 CHECK(Shell::HasInstance());
287 return GetRootWindowController(window->GetRootWindow()); 288 return GetRootWindowController(window->GetRootWindow());
288 } 289 }
289 290
290 // static 291 // static
291 RootWindowController* RootWindowController::ForWindow( 292 RootWindowController* RootWindowController::ForWindow(
292 const aura::Window* window) { 293 const aura::Window* window) {
294 CHECK(Shell::HasInstance());
293 return GetRootWindowController(window->GetRootWindow()); 295 return GetRootWindowController(window->GetRootWindow());
294 } 296 }
295 297
296 // static 298 // static
297 RootWindowController* RootWindowController::ForTargetRootWindow() { 299 RootWindowController* RootWindowController::ForTargetRootWindow() {
300 CHECK(Shell::HasInstance());
298 return GetRootWindowController(Shell::GetTargetRootWindow()); 301 return GetRootWindowController(Shell::GetTargetRootWindow());
299 } 302 }
300 303
301 // static 304 // static
302 aura::Window* RootWindowController::GetContainerForWindow( 305 aura::Window* RootWindowController::GetContainerForWindow(
303 aura::Window* window) { 306 aura::Window* window) {
304 aura::Window* container = window->parent(); 307 aura::Window* container = window->parent();
305 while (container && container->type() != ui::wm::WINDOW_TYPE_UNKNOWN) 308 while (container && container->type() != ui::wm::WINDOW_TYPE_UNKNOWN)
306 container = container->parent(); 309 container = container->parent();
307 return container; 310 return container;
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 else 1086 else
1084 DisableTouchHudProjection(); 1087 DisableTouchHudProjection();
1085 } 1088 }
1086 1089
1087 RootWindowController* GetRootWindowController( 1090 RootWindowController* GetRootWindowController(
1088 const aura::Window* root_window) { 1091 const aura::Window* root_window) {
1089 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; 1092 return root_window ? GetRootWindowSettings(root_window)->controller : NULL;
1090 } 1093 }
1091 1094
1092 } // namespace ash 1095 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698