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

Side by Side Diff: ash/root_window_controller.cc

Issue 1914093002: Refactors DockedWindowLayoutManager in terms of ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nuke_aura_window
Patch Set: comment 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 | « ash/mus/shelf_delegate_mus.cc ('k') | ash/shelf/app_list_button.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 16 matching lines...) Expand all
27 #include "ash/shell_window_ids.h" 27 #include "ash/shell_window_ids.h"
28 #include "ash/switchable_windows.h" 28 #include "ash/switchable_windows.h"
29 #include "ash/system/status_area_widget.h" 29 #include "ash/system/status_area_widget.h"
30 #include "ash/system/tray/system_tray_delegate.h" 30 #include "ash/system/tray/system_tray_delegate.h"
31 #include "ash/system/tray/system_tray_notifier.h" 31 #include "ash/system/tray/system_tray_notifier.h"
32 #include "ash/touch/touch_hud_debug.h" 32 #include "ash/touch/touch_hud_debug.h"
33 #include "ash/touch/touch_hud_projection.h" 33 #include "ash/touch/touch_hud_projection.h"
34 #include "ash/touch/touch_observer_hud.h" 34 #include "ash/touch/touch_observer_hud.h"
35 #include "ash/wm/always_on_top_controller.h" 35 #include "ash/wm/always_on_top_controller.h"
36 #include "ash/wm/aura/aura_layout_manager_adapter.h" 36 #include "ash/wm/aura/aura_layout_manager_adapter.h"
37 #include "ash/wm/aura/wm_shelf_aura.h"
37 #include "ash/wm/aura/wm_window_aura.h" 38 #include "ash/wm/aura/wm_window_aura.h"
38 #include "ash/wm/common/workspace/workspace_layout_manager_delegate.h" 39 #include "ash/wm/common/workspace/workspace_layout_manager_delegate.h"
39 #include "ash/wm/dock/docked_window_layout_manager.h" 40 #include "ash/wm/dock/docked_window_layout_manager.h"
40 #include "ash/wm/lock_layout_manager.h" 41 #include "ash/wm/lock_layout_manager.h"
41 #include "ash/wm/panels/attached_panel_window_targeter.h" 42 #include "ash/wm/panels/attached_panel_window_targeter.h"
42 #include "ash/wm/panels/panel_layout_manager.h" 43 #include "ash/wm/panels/panel_layout_manager.h"
43 #include "ash/wm/panels/panel_window_event_handler.h" 44 #include "ash/wm/panels/panel_window_event_handler.h"
44 #include "ash/wm/root_window_layout_manager.h" 45 #include "ash/wm/root_window_layout_manager.h"
45 #include "ash/wm/stacking_controller.h" 46 #include "ash/wm/stacking_controller.h"
46 #include "ash/wm/status_area_layout_manager.h" 47 #include "ash/wm/status_area_layout_manager.h"
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 if (!shelf_->shelf()) 437 if (!shelf_->shelf())
437 return; 438 return;
438 shelf_->shelf()->SetVisible(true); 439 shelf_->shelf()->SetVisible(true);
439 shelf_->status_area_widget()->Show(); 440 shelf_->status_area_widget()->Show();
440 } 441 }
441 442
442 void RootWindowController::OnShelfCreated() { 443 void RootWindowController::OnShelfCreated() {
443 if (panel_layout_manager_) 444 if (panel_layout_manager_)
444 panel_layout_manager_->SetShelf(shelf_->shelf()); 445 panel_layout_manager_->SetShelf(shelf_->shelf());
445 if (docked_layout_manager_) { 446 if (docked_layout_manager_) {
446 docked_layout_manager_->SetShelf(shelf_->shelf()); 447 docked_layout_manager_->SetShelf(shelf_->shelf()->wm_shelf());
447 if (shelf_->shelf_layout_manager()) 448 if (shelf_->shelf_layout_manager())
448 docked_layout_manager_->AddObserver(shelf_->shelf_layout_manager()); 449 docked_layout_manager_->AddObserver(shelf_->shelf_layout_manager());
449 } 450 }
450 451
451 // Notify shell observers that the shelf has been created. 452 // Notify shell observers that the shelf has been created.
452 Shell::GetInstance()->OnShelfCreatedForRootWindow(GetRootWindow()); 453 Shell::GetInstance()->OnShelfCreatedForRootWindow(GetRootWindow());
453 } 454 }
454 455
455 void RootWindowController::UpdateAfterLoginStatusChange( 456 void RootWindowController::UpdateAfterLoginStatusChange(
456 user::LoginStatus status) { 457 user::LoginStatus status) {
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 else 1087 else
1087 DisableTouchHudProjection(); 1088 DisableTouchHudProjection();
1088 } 1089 }
1089 1090
1090 RootWindowController* GetRootWindowController( 1091 RootWindowController* GetRootWindowController(
1091 const aura::Window* root_window) { 1092 const aura::Window* root_window) {
1092 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; 1093 return root_window ? GetRootWindowSettings(root_window)->controller : NULL;
1093 } 1094 }
1094 1095
1095 } // namespace ash 1096 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/shelf_delegate_mus.cc ('k') | ash/shelf/app_list_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698