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

Side by Side Diff: ash/common/wm_shell.cc

Issue 2234033002: mash: Remove WorkspaceLayoutManagerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove WmRootWindowControllerObserver::OnFullscreenStateChanged; use ShellObserver. Created 4 years, 4 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/common/wm_shell.h ('k') | ash/mus/bridge/wm_root_window_controller_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/common/wm_shell.h" 5 #include "ash/common/wm_shell.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/common/accelerators/accelerator_controller.h" 9 #include "ash/common/accelerators/accelerator_controller.h"
10 #include "ash/common/accelerators/ash_focus_manager_factory.h" 10 #include "ash/common/accelerators/ash_focus_manager_factory.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 void WmShell::OnMaximizeModeStarted() { 93 void WmShell::OnMaximizeModeStarted() {
94 FOR_EACH_OBSERVER(ShellObserver, shell_observers_, OnMaximizeModeStarted()); 94 FOR_EACH_OBSERVER(ShellObserver, shell_observers_, OnMaximizeModeStarted());
95 } 95 }
96 96
97 void WmShell::OnMaximizeModeEnded() { 97 void WmShell::OnMaximizeModeEnded() {
98 FOR_EACH_OBSERVER(ShellObserver, shell_observers_, OnMaximizeModeEnded()); 98 FOR_EACH_OBSERVER(ShellObserver, shell_observers_, OnMaximizeModeEnded());
99 } 99 }
100 100
101 void WmShell::NotifyFullscreenStateChanged(bool is_fullscreen,
102 WmWindow* root_window) {
103 FOR_EACH_OBSERVER(ShellObserver, shell_observers_,
104 OnFullscreenStateChanged(is_fullscreen, root_window));
105 }
106
101 void WmShell::NotifyPinnedStateChanged(WmWindow* pinned_window) { 107 void WmShell::NotifyPinnedStateChanged(WmWindow* pinned_window) {
102 FOR_EACH_OBSERVER(ShellObserver, shell_observers_, 108 FOR_EACH_OBSERVER(ShellObserver, shell_observers_,
103 OnPinnedStateChanged(pinned_window)); 109 OnPinnedStateChanged(pinned_window));
104 } 110 }
105 111
106 void WmShell::OnVirtualKeyboardActivated(bool activated) { 112 void WmShell::OnVirtualKeyboardActivated(bool activated) {
107 FOR_EACH_OBSERVER(ShellObserver, shell_observers_, 113 FOR_EACH_OBSERVER(ShellObserver, shell_observers_,
108 OnVirtualKeyboardStateChanged(activated)); 114 OnVirtualKeyboardStateChanged(activated));
109 } 115 }
110 116
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 void WmShell::DeleteToastManager() { 273 void WmShell::DeleteToastManager() {
268 toast_manager_.reset(); 274 toast_manager_.reset();
269 } 275 }
270 276
271 void WmShell::SetAcceleratorController( 277 void WmShell::SetAcceleratorController(
272 std::unique_ptr<AcceleratorController> accelerator_controller) { 278 std::unique_ptr<AcceleratorController> accelerator_controller) {
273 accelerator_controller_ = std::move(accelerator_controller); 279 accelerator_controller_ = std::move(accelerator_controller);
274 } 280 }
275 281
276 } // namespace ash 282 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm_shell.h ('k') | ash/mus/bridge/wm_root_window_controller_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698