| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/aura/wm_root_window_controller_aura.h" | 5 #include "ash/aura/wm_root_window_controller_aura.h" |
| 6 | 6 |
| 7 #include "ash/aura/wm_shelf_aura.h" | 7 #include "ash/aura/wm_shelf_aura.h" |
| 8 #include "ash/aura/wm_shell_aura.h" | 8 #include "ash/aura/wm_shell_aura.h" |
| 9 #include "ash/aura/wm_window_aura.h" | 9 #include "ash/aura/wm_window_aura.h" |
| 10 #include "ash/common/wm/workspace/workspace_layout_manager_backdrop_delegate.h" |
| 10 #include "ash/common/wm_root_window_controller_observer.h" | 11 #include "ash/common/wm_root_window_controller_observer.h" |
| 11 #include "ash/display/window_tree_host_manager.h" | 12 #include "ash/display/window_tree_host_manager.h" |
| 12 #include "ash/root_window_controller.h" | 13 #include "ash/root_window_controller.h" |
| 13 #include "ash/shelf/shelf.h" | 14 #include "ash/shelf/shelf.h" |
| 14 #include "ash/shelf/shelf_widget.h" | 15 #include "ash/shelf/shelf_widget.h" |
| 15 #include "ash/shell.h" | 16 #include "ash/shell.h" |
| 16 #include "ash/wm/workspace_controller.h" | 17 #include "ash/wm/workspace_controller.h" |
| 17 #include "ui/aura/window.h" | 18 #include "ui/aura/window.h" |
| 18 #include "ui/aura/window_property.h" | 19 #include "ui/aura/window_property.h" |
| 19 #include "ui/events/event_targeter.h" | 20 #include "ui/events/event_targeter.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 } | 67 } |
| 67 | 68 |
| 68 WmShell* WmRootWindowControllerAura::GetShell() { | 69 WmShell* WmRootWindowControllerAura::GetShell() { |
| 69 return WmShell::Get(); | 70 return WmShell::Get(); |
| 70 } | 71 } |
| 71 | 72 |
| 72 wm::WorkspaceWindowState WmRootWindowControllerAura::GetWorkspaceWindowState() { | 73 wm::WorkspaceWindowState WmRootWindowControllerAura::GetWorkspaceWindowState() { |
| 73 return root_window_controller_->workspace_controller()->GetWindowState(); | 74 return root_window_controller_->workspace_controller()->GetWindowState(); |
| 74 } | 75 } |
| 75 | 76 |
| 77 void WmRootWindowControllerAura::SetMaximizeBackdropDelegate( |
| 78 std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> delegate) { |
| 79 root_window_controller_->workspace_controller()->SetMaximizeBackdropDelegate( |
| 80 std::move(delegate)); |
| 81 } |
| 82 |
| 76 AlwaysOnTopController* WmRootWindowControllerAura::GetAlwaysOnTopController() { | 83 AlwaysOnTopController* WmRootWindowControllerAura::GetAlwaysOnTopController() { |
| 77 return root_window_controller_->always_on_top_controller(); | 84 return root_window_controller_->always_on_top_controller(); |
| 78 } | 85 } |
| 79 | 86 |
| 80 WmShelf* WmRootWindowControllerAura::GetShelf() { | 87 WmShelf* WmRootWindowControllerAura::GetShelf() { |
| 81 return root_window_controller_->wm_shelf_aura(); | 88 return root_window_controller_->wm_shelf_aura(); |
| 82 } | 89 } |
| 83 | 90 |
| 84 WmWindow* WmRootWindowControllerAura::GetWindow() { | 91 WmWindow* WmRootWindowControllerAura::GetWindow() { |
| 85 return WmWindowAura::Get(root_window_controller_->GetRootWindow()); | 92 return WmWindowAura::Get(root_window_controller_->GetRootWindow()); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 WmWindow* root_window) { | 144 WmWindow* root_window) { |
| 138 if (WmWindowAura::GetAuraWindow(root_window) != | 145 if (WmWindowAura::GetAuraWindow(root_window) != |
| 139 root_window_controller_->GetRootWindow()) | 146 root_window_controller_->GetRootWindow()) |
| 140 return; | 147 return; |
| 141 | 148 |
| 142 FOR_EACH_OBSERVER(WmRootWindowControllerObserver, observers_, | 149 FOR_EACH_OBSERVER(WmRootWindowControllerObserver, observers_, |
| 143 OnShelfAlignmentChanged()); | 150 OnShelfAlignmentChanged()); |
| 144 } | 151 } |
| 145 | 152 |
| 146 } // namespace ash | 153 } // namespace ash |
| OLD | NEW |