| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |