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