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

Unified Diff: ash/shell.cc

Issue 2020623004: ash: Move shelf alignment and auto-hide calls from Shell to Shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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/shell.h ('k') | ash/shell/context_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 2e466e4b130e62259985dfbe36694343c7e4e62e..4276304dd488ca09e6509ac21d6aca5d0ff8ec02 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -528,26 +528,6 @@ void Shell::UpdateShelfVisibility() {
(*iter)->UpdateShelfVisibility();
}
-void Shell::SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior,
- aura::Window* root_window) {
- Shelf::ForWindow(root_window)->SetAutoHideBehavior(behavior);
-}
-
-ShelfAutoHideBehavior Shell::GetShelfAutoHideBehavior(
- aura::Window* root_window) const {
- return Shelf::ForWindow(root_window)->auto_hide_behavior();
-}
-
-void Shell::SetShelfAlignment(wm::ShelfAlignment alignment,
- aura::Window* root_window) {
- Shelf::ForWindow(root_window)->SetAlignment(alignment);
-}
-
-wm::ShelfAlignment Shell::GetShelfAlignment(
- const aura::Window* root_window) const {
- return Shelf::ForWindow(root_window)->alignment();
-}
-
void Shell::OnShelfAlignmentChanged(aura::Window* root_window) {
FOR_EACH_OBSERVER(ShellObserver, observers_,
OnShelfAlignmentChanged(root_window));
« no previous file with comments | « ash/shell.h ('k') | ash/shell/context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698