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

Unified Diff: ash/common/wm_shell.cc

Issue 2237903003: mash: Migrate Shelf aura::Window uses to WmWindow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move shelf notify functions to WmShell. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/wm_shell.h ('k') | ash/root_window_controller.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 5941e28fc7f7a03be1449447da4352c3bc82440b..567c38c137d49ad8ade6c8b3adb76c0d1b5b447b 100644
--- a/ash/common/wm_shell.cc
+++ b/ash/common/wm_shell.cc
@@ -109,11 +109,26 @@ void WmShell::NotifyPinnedStateChanged(WmWindow* pinned_window) {
OnPinnedStateChanged(pinned_window));
}
-void WmShell::OnVirtualKeyboardActivated(bool activated) {
+void WmShell::NotifyVirtualKeyboardActivated(bool activated) {
FOR_EACH_OBSERVER(ShellObserver, shell_observers_,
OnVirtualKeyboardStateChanged(activated));
}
+void WmShell::NotifyShelfCreatedForRootWindow(WmWindow* root_window) {
+ FOR_EACH_OBSERVER(ShellObserver, shell_observers_,
+ OnShelfCreatedForRootWindow(root_window));
+}
+
+void WmShell::NotifyShelfAlignmentChanged(WmWindow* root_window) {
+ FOR_EACH_OBSERVER(ShellObserver, shell_observers_,
+ OnShelfAlignmentChanged(root_window));
+}
+
+void WmShell::NotifyShelfAutoHideBehaviorChanged(WmWindow* root_window) {
+ FOR_EACH_OBSERVER(ShellObserver, shell_observers_,
+ OnShelfAutoHideBehaviorChanged(root_window));
+}
+
void WmShell::AddShellObserver(ShellObserver* observer) {
shell_observers_.AddObserver(observer);
}
« no previous file with comments | « ash/common/wm_shell.h ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698