Index: ash/common/wm_shell.cc |
diff --git a/ash/common/wm_shell.cc b/ash/common/wm_shell.cc |
index c7376aeae2488984651e97c563c4d225ed401729..299ad2cc882a5db04bdc270b7cc99a3e42fdf5c9 100644 |
--- a/ash/common/wm_shell.cc |
+++ b/ash/common/wm_shell.cc |
@@ -10,6 +10,7 @@ |
#include "ash/common/system/chromeos/session/logout_confirmation_controller.h" |
#include "ash/common/system/tray/system_tray_delegate.h" |
#include "ash/common/system/tray/system_tray_notifier.h" |
+#include "ash/common/wm/mru_window_tracker.h" |
#include "ash/common/wm/overview/window_selector_controller.h" |
#include "ash/common/wm_window.h" |
#include "base/bind.h" |
@@ -30,6 +31,19 @@ WmShell* WmShell::Get() { |
return instance_; |
} |
+void WmShell::NotifyPinnedStateChanged(WmWindow* pinned_window) { |
+ FOR_EACH_OBSERVER(ShellObserver, shell_observers_, |
+ OnPinnedStateChanged(pinned_window)); |
+} |
+ |
+void WmShell::AddShellObserver(ShellObserver* observer) { |
+ shell_observers_.AddObserver(observer); |
+} |
+ |
+void WmShell::RemoveShellObserver(ShellObserver* observer) { |
+ shell_observers_.RemoveObserver(observer); |
+} |
+ |
WmShell::WmShell() |
: focus_cycler_(new FocusCycler), |
system_tray_notifier_(new SystemTrayNotifier), |
@@ -87,4 +101,12 @@ void WmShell::DeleteWindowSelectorController() { |
window_selector_controller_.reset(); |
} |
+void WmShell::CreateMruWindowTracker() { |
+ mru_window_tracker_.reset(new MruWindowTracker); |
+} |
+ |
+void WmShell::DeleteMruWindowTracker() { |
+ mru_window_tracker_.reset(); |
+} |
+ |
} // namespace ash |