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

Side by Side Diff: ash/root_window_controller.cc

Issue 2322613002: Adds support for multiple displays to WmTestBase (Closed)
Patch Set: moar Created 4 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
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/aura/aura_layout_manager_adapter.h" 10 #include "ash/aura/aura_layout_manager_adapter.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 } 331 }
332 332
333 WorkspaceController* RootWindowController::workspace_controller() { 333 WorkspaceController* RootWindowController::workspace_controller() {
334 return wm_root_window_controller_->workspace_controller(); 334 return wm_root_window_controller_->workspace_controller();
335 } 335 }
336 336
337 void RootWindowController::Shutdown() { 337 void RootWindowController::Shutdown() {
338 WmShell::Get()->RemoveShellObserver(this); 338 WmShell::Get()->RemoveShellObserver(this);
339 339
340 #if defined(OS_CHROMEOS) 340 #if defined(OS_CHROMEOS)
341 if (touch_exploration_manager_) { 341 touch_exploration_manager_.reset();
342 touch_exploration_manager_.reset();
343 }
344 #endif 342 #endif
345 343
346 aura::Window* root_window = GetRootWindow(); 344 aura::Window* root_window = GetRootWindow();
347 WmWindow* root_shutting_down = WmWindowAura::Get(root_window); 345 WmWindow* root_shutting_down = WmWindowAura::Get(root_window);
348 WmShell* shell = WmShell::Get(); 346 WmShell* shell = WmShell::Get();
349 // Change the target root window before closing child windows. If any child 347 // Change the target root window before closing child windows. If any child
350 // being removed triggers a relayout of the shelf it will try to build a 348 // being removed triggers a relayout of the shelf it will try to build a
351 // window list adding windows from the target root window's containers which 349 // window list adding windows from the target root window's containers which
352 // may have already gone away. 350 // may have already gone away.
353 if (shell->GetRootWindowForNewWindows() == root_shutting_down) { 351 if (shell->GetRootWindowForNewWindows() == root_shutting_down) {
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 aura::Window* primary_root_window = Shell::GetInstance() 918 aura::Window* primary_root_window = Shell::GetInstance()
921 ->window_tree_host_manager() 919 ->window_tree_host_manager()
922 ->GetPrimaryRootWindow(); 920 ->GetPrimaryRootWindow();
923 return GetRootWindowSettings(primary_root_window)->controller; 921 return GetRootWindowSettings(primary_root_window)->controller;
924 } 922 }
925 923
926 return GetRootWindowSettings(root_window)->controller; 924 return GetRootWindowSettings(root_window)->controller;
927 } 925 }
928 926
929 } // namespace ash 927 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698