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

Unified Diff: ash/common/wm_shell.cc

Issue 2739763003: Moves maintaining ShellObservers back to Shell (Closed)
Patch Set: merge Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/wm_shell.h ('k') | ash/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm_shell.cc
diff --git a/ash/common/wm_shell.cc b/ash/common/wm_shell.cc
index 238cf16dcbbdd2d2455c44952b37fd5381821f1a..11ada3bac701757279be970306275d127d2e64de 100644
--- a/ash/common/wm_shell.cc
+++ b/ash/common/wm_shell.cc
@@ -172,21 +172,6 @@ void WmShell::CreateShelfDelegate() {
shelf_window_watcher_.reset(new ShelfWindowWatcher(shelf_model()));
}
-void WmShell::OnMaximizeModeStarted() {
- for (auto& observer : shell_observers_)
- observer.OnMaximizeModeStarted();
-}
-
-void WmShell::OnMaximizeModeEnding() {
- for (auto& observer : shell_observers_)
- observer.OnMaximizeModeEnding();
-}
-
-void WmShell::OnMaximizeModeEnded() {
- for (auto& observer : shell_observers_)
- observer.OnMaximizeModeEnded();
-}
-
void WmShell::UpdateAfterLoginStatusChange(LoginStatus status) {
for (WmWindow* root_window : GetAllRootWindows()) {
root_window->GetRootWindowController()->UpdateAfterLoginStatusChange(
@@ -194,45 +179,6 @@ void WmShell::UpdateAfterLoginStatusChange(LoginStatus status) {
}
}
-void WmShell::NotifyFullscreenStateChanged(bool is_fullscreen,
- WmWindow* root_window) {
- for (auto& observer : shell_observers_)
- observer.OnFullscreenStateChanged(is_fullscreen, root_window);
-}
-
-void WmShell::NotifyPinnedStateChanged(WmWindow* pinned_window) {
- for (auto& observer : shell_observers_)
- observer.OnPinnedStateChanged(pinned_window);
-}
-
-void WmShell::NotifyVirtualKeyboardActivated(bool activated) {
- for (auto& observer : shell_observers_)
- observer.OnVirtualKeyboardStateChanged(activated);
-}
-
-void WmShell::NotifyShelfCreatedForRootWindow(WmWindow* root_window) {
- for (auto& observer : shell_observers_)
- observer.OnShelfCreatedForRootWindow(root_window);
-}
-
-void WmShell::NotifyShelfAlignmentChanged(WmWindow* root_window) {
- for (auto& observer : shell_observers_)
- observer.OnShelfAlignmentChanged(root_window);
-}
-
-void WmShell::NotifyShelfAutoHideBehaviorChanged(WmWindow* root_window) {
- for (auto& observer : shell_observers_)
- observer.OnShelfAutoHideBehaviorChanged(root_window);
-}
-
-void WmShell::AddShellObserver(ShellObserver* observer) {
- shell_observers_.AddObserver(observer);
-}
-
-void WmShell::RemoveShellObserver(ShellObserver* observer) {
- shell_observers_.RemoveObserver(observer);
-}
-
void WmShell::OnLockStateEvent(LockStateObserver::EventType event) {
for (auto& observer : lock_state_observers_)
observer.OnLockStateEvent(event);
« no previous file with comments | « ash/common/wm_shell.h ('k') | ash/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698