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

Side by Side Diff: ash/root_window_controller.cc

Issue 2072023003: mash: Break ash system tray dependencies on ash::ShelfWidget (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/bridge/wm_shelf_mus.cc ('k') | ash/shelf/shelf_widget.h » ('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/aura/aura_layout_manager_adapter.h" 10 #include "ash/aura/aura_layout_manager_adapter.h"
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 WmWindowAura::Get(GetContainer(kShellWindowId_AlwaysOnTopContainer)); 756 WmWindowAura::Get(GetContainer(kShellWindowId_AlwaysOnTopContainer));
757 always_on_top_controller_.reset( 757 always_on_top_controller_.reset(
758 new AlwaysOnTopController(always_on_top_container)); 758 new AlwaysOnTopController(always_on_top_container));
759 759
760 DCHECK(!shelf_widget_.get()); 760 DCHECK(!shelf_widget_.get());
761 WmWindow* shelf_container = 761 WmWindow* shelf_container =
762 WmWindowAura::Get(GetContainer(kShellWindowId_ShelfContainer)); 762 WmWindowAura::Get(GetContainer(kShellWindowId_ShelfContainer));
763 WmWindow* status_container = 763 WmWindow* status_container =
764 WmWindowAura::Get(GetContainer(kShellWindowId_StatusContainer)); 764 WmWindowAura::Get(GetContainer(kShellWindowId_StatusContainer));
765 shelf_widget_.reset(new ShelfWidget(shelf_container, status_container, 765 shelf_widget_.reset(new ShelfWidget(shelf_container, status_container,
766 wm_shelf_aura_.get(),
766 workspace_controller())); 767 workspace_controller()));
767 wm_shelf_aura_->SetShelfLayoutManager(shelf_widget_->shelf_layout_manager());
768 workspace_layout_manager_delegate->set_shelf( 768 workspace_layout_manager_delegate->set_shelf(
769 shelf_widget_->shelf_layout_manager()); 769 shelf_widget_->shelf_layout_manager());
770 770
771 if (!Shell::GetInstance()->session_state_delegate()-> 771 if (!Shell::GetInstance()->session_state_delegate()->
772 IsActiveUserSessionStarted()) { 772 IsActiveUserSessionStarted()) {
773 // This window exists only to be a event target on login screen. 773 // This window exists only to be a event target on login screen.
774 // It does not have to handle events, nor be visible. 774 // It does not have to handle events, nor be visible.
775 mouse_event_target_.reset(new aura::Window(new EmptyWindowDelegate)); 775 mouse_event_target_.reset(new aura::Window(new EmptyWindowDelegate));
776 mouse_event_target_->Init(ui::LAYER_NOT_DRAWN); 776 mouse_event_target_->Init(ui::LAYER_NOT_DRAWN);
777 777
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 aura::Window* primary_root_window = Shell::GetInstance() 886 aura::Window* primary_root_window = Shell::GetInstance()
887 ->window_tree_host_manager() 887 ->window_tree_host_manager()
888 ->GetPrimaryRootWindow(); 888 ->GetPrimaryRootWindow();
889 return GetRootWindowSettings(primary_root_window)->controller; 889 return GetRootWindowSettings(primary_root_window)->controller;
890 } 890 }
891 891
892 return GetRootWindowSettings(root_window)->controller; 892 return GetRootWindowSettings(root_window)->controller;
893 } 893 }
894 894
895 } // namespace ash 895 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_shelf_mus.cc ('k') | ash/shelf/shelf_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698