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

Side by Side Diff: ash/aura/wm_root_window_controller_aura.cc

Issue 2103913003: Converts MaximizeModeWindowManager to use ash/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@maximize_mode_event_handler
Patch Set: fix chrome Created 4 years, 5 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/aura/wm_root_window_controller_aura.h ('k') | ash/aura/wm_window_aura.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 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
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
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
OLDNEW
« no previous file with comments | « ash/aura/wm_root_window_controller_aura.h ('k') | ash/aura/wm_window_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698