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

Side by Side Diff: ash/mus/bridge/wm_root_window_controller_mus.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/mus/bridge/wm_root_window_controller_mus.h ('k') | ash/mus/bridge/wm_window_mus.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/mus/bridge/wm_root_window_controller_mus.h" 5 #include "ash/mus/bridge/wm_root_window_controller_mus.h"
6 6
7 #include "ash/common/wm/workspace/workspace_layout_manager.h"
8 #include "ash/common/wm/workspace/workspace_layout_manager_backdrop_delegate.h"
7 #include "ash/common/wm_root_window_controller_observer.h" 9 #include "ash/common/wm_root_window_controller_observer.h"
8 #include "ash/mus/bridge/wm_shelf_mus.h" 10 #include "ash/mus/bridge/wm_shelf_mus.h"
9 #include "ash/mus/bridge/wm_shell_mus.h" 11 #include "ash/mus/bridge/wm_shell_mus.h"
10 #include "ash/mus/bridge/wm_window_mus.h" 12 #include "ash/mus/bridge/wm_window_mus.h"
11 #include "ash/mus/container_ids.h" 13 #include "ash/mus/container_ids.h"
12 #include "ash/mus/root_window_controller.h" 14 #include "ash/mus/root_window_controller.h"
13 #include "components/mus/public/cpp/window.h" 15 #include "components/mus/public/cpp/window.h"
14 #include "components/mus/public/cpp/window_property.h" 16 #include "components/mus/public/cpp/window_property.h"
15 #include "components/mus/public/cpp/window_tree_client.h" 17 #include "components/mus/public/cpp/window_tree_client.h"
16 #include "ui/display/display.h" 18 #include "ui/display/display.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 87
86 WmShell* WmRootWindowControllerMus::GetShell() { 88 WmShell* WmRootWindowControllerMus::GetShell() {
87 return shell_; 89 return shell_;
88 } 90 }
89 91
90 wm::WorkspaceWindowState WmRootWindowControllerMus::GetWorkspaceWindowState() { 92 wm::WorkspaceWindowState WmRootWindowControllerMus::GetWorkspaceWindowState() {
91 NOTIMPLEMENTED(); 93 NOTIMPLEMENTED();
92 return wm::WORKSPACE_WINDOW_STATE_DEFAULT; 94 return wm::WORKSPACE_WINDOW_STATE_DEFAULT;
93 } 95 }
94 96
97 void WmRootWindowControllerMus::SetMaximizeBackdropDelegate(
98 std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> delegate) {
99 root_window_controller_->workspace_layout_manager()
100 ->SetMaximizeBackdropDelegate(std::move(delegate));
101 }
102
95 AlwaysOnTopController* WmRootWindowControllerMus::GetAlwaysOnTopController() { 103 AlwaysOnTopController* WmRootWindowControllerMus::GetAlwaysOnTopController() {
96 return root_window_controller_->always_on_top_controller(); 104 return root_window_controller_->always_on_top_controller();
97 } 105 }
98 106
99 WmShelf* WmRootWindowControllerMus::GetShelf() { 107 WmShelf* WmRootWindowControllerMus::GetShelf() {
100 return root_window_controller_->wm_shelf(); 108 return root_window_controller_->wm_shelf();
101 } 109 }
102 110
103 WmWindow* WmRootWindowControllerMus::GetWindow() { 111 WmWindow* WmRootWindowControllerMus::GetWindow() {
104 return WmWindowMus::Get(root_window_controller_->root()); 112 return WmWindowMus::Get(root_window_controller_->root());
(...skipping 27 matching lines...) Expand all
132 observers_.AddObserver(observer); 140 observers_.AddObserver(observer);
133 } 141 }
134 142
135 void WmRootWindowControllerMus::RemoveObserver( 143 void WmRootWindowControllerMus::RemoveObserver(
136 WmRootWindowControllerObserver* observer) { 144 WmRootWindowControllerObserver* observer) {
137 observers_.RemoveObserver(observer); 145 observers_.RemoveObserver(observer);
138 } 146 }
139 147
140 } // namespace mus 148 } // namespace mus
141 } // namespace ash 149 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_root_window_controller_mus.h ('k') | ash/mus/bridge/wm_window_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698