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

Side by Side Diff: ash/root_window_controller.cc

Issue 1841803002: Cleanup WorkspaceController and WorkspaceLayoutManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check if the container is kShellWindowId_DefaultContainer instead. Created 4 years, 8 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/shelf/shelf_widget.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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 root_window->RemoveChild(window); 534 root_window->RemoveChild(window);
535 } 535 }
536 } 536 }
537 537
538 shelf_.reset(); 538 shelf_.reset();
539 } 539 }
540 540
541 void RootWindowController::MoveWindowsTo(aura::Window* dst) { 541 void RootWindowController::MoveWindowsTo(aura::Window* dst) {
542 // Forget the shelf early so that shelf don't update itself using wrong 542 // Forget the shelf early so that shelf don't update itself using wrong
543 // display info. 543 // display info.
544 workspace_controller_->SetShelf(NULL); 544 workspace_controller_->set_shelf(nullptr);
545 ReparentAllWindows(GetRootWindow(), dst); 545 ReparentAllWindows(GetRootWindow(), dst);
546 } 546 }
547 547
548 ShelfLayoutManager* RootWindowController::GetShelfLayoutManager() { 548 ShelfLayoutManager* RootWindowController::GetShelfLayoutManager() {
549 return shelf_->shelf_layout_manager(); 549 return shelf_->shelf_layout_manager();
550 } 550 }
551 551
552 SystemTray* RootWindowController::GetSystemTray() { 552 SystemTray* RootWindowController::GetSystemTray() {
553 // We assume in throughout the code that this will not return NULL. If code 553 // We assume in throughout the code that this will not return NULL. If code
554 // triggers this for valid reasons, it should test status_area_widget first. 554 // triggers this for valid reasons, it should test status_area_widget first.
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 else 1047 else
1048 DisableTouchHudProjection(); 1048 DisableTouchHudProjection();
1049 } 1049 }
1050 1050
1051 RootWindowController* GetRootWindowController( 1051 RootWindowController* GetRootWindowController(
1052 const aura::Window* root_window) { 1052 const aura::Window* root_window) {
1053 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; 1053 return root_window ? GetRootWindowSettings(root_window)->controller : NULL;
1054 } 1054 }
1055 1055
1056 } // namespace ash 1056 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/shelf/shelf_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698