| 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 "ash/common/focus_cycler.h" | 7 #include "ash/common/focus_cycler.h" |
| 8 #include "ash/common/keyboard/keyboard_ui.h" | 8 #include "ash/common/keyboard/keyboard_ui.h" |
| 9 #include "ash/common/shell_window_ids.h" | 9 #include "ash/common/shell_window_ids.h" |
| 10 #include "ash/common/system/chromeos/session/logout_confirmation_controller.h" | 10 #include "ash/common/system/chromeos/session/logout_confirmation_controller.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // static | 24 // static |
| 25 void WmShell::Set(WmShell* instance) { | 25 void WmShell::Set(WmShell* instance) { |
| 26 instance_ = instance; | 26 instance_ = instance; |
| 27 } | 27 } |
| 28 | 28 |
| 29 // static | 29 // static |
| 30 WmShell* WmShell::Get() { | 30 WmShell* WmShell::Get() { |
| 31 return instance_; | 31 return instance_; |
| 32 } | 32 } |
| 33 | 33 |
| 34 void WmShell::OnMaximizeModeStarted() { |
| 35 FOR_EACH_OBSERVER(ShellObserver, shell_observers_, OnMaximizeModeStarted()); |
| 36 } |
| 37 |
| 38 void WmShell::OnMaximizeModeEnded() { |
| 39 FOR_EACH_OBSERVER(ShellObserver, shell_observers_, OnMaximizeModeEnded()); |
| 40 } |
| 41 |
| 34 void WmShell::NotifyPinnedStateChanged(WmWindow* pinned_window) { | 42 void WmShell::NotifyPinnedStateChanged(WmWindow* pinned_window) { |
| 35 FOR_EACH_OBSERVER(ShellObserver, shell_observers_, | 43 FOR_EACH_OBSERVER(ShellObserver, shell_observers_, |
| 36 OnPinnedStateChanged(pinned_window)); | 44 OnPinnedStateChanged(pinned_window)); |
| 37 } | 45 } |
| 38 | 46 |
| 39 void WmShell::AddShellObserver(ShellObserver* observer) { | 47 void WmShell::AddShellObserver(ShellObserver* observer) { |
| 40 shell_observers_.AddObserver(observer); | 48 shell_observers_.AddObserver(observer); |
| 41 } | 49 } |
| 42 | 50 |
| 43 void WmShell::RemoveShellObserver(ShellObserver* observer) { | 51 void WmShell::RemoveShellObserver(ShellObserver* observer) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 115 |
| 108 void WmShell::CreateMruWindowTracker() { | 116 void WmShell::CreateMruWindowTracker() { |
| 109 mru_window_tracker_.reset(new MruWindowTracker); | 117 mru_window_tracker_.reset(new MruWindowTracker); |
| 110 } | 118 } |
| 111 | 119 |
| 112 void WmShell::DeleteMruWindowTracker() { | 120 void WmShell::DeleteMruWindowTracker() { |
| 113 mru_window_tracker_.reset(); | 121 mru_window_tracker_.reset(); |
| 114 } | 122 } |
| 115 | 123 |
| 116 } // namespace ash | 124 } // namespace ash |
| OLD | NEW |