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

Unified Diff: ash/shelf/shelf.h

Issue 1851883002: Cleanup shelf initialization and observation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check for shelf before setting prefs in ChromeLauncherController. Created 4 years, 8 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
Index: ash/shelf/shelf.h
diff --git a/ash/shelf/shelf.h b/ash/shelf/shelf.h
index 374534ce041e2a34acce995b5f6e9c5423f583b4..20a677c89068df90c3c7b4e43ea7d751974bdccd 100644
--- a/ash/shelf/shelf.h
+++ b/ash/shelf/shelf.h
@@ -57,11 +57,19 @@ class ASH_EXPORT Shelf {
static Shelf* ForWindow(const aura::Window* window);
void SetAlignment(ShelfAlignment alignment);
- ShelfAlignment alignment() const { return alignment_; }
+ ShelfAlignment GetAlignment() const;
bool IsHorizontalAlignment() const;
+ // TODO(msw): Remove this accessor, kept temporarily to simplify changes.
+ ShelfAlignment alignment() const { return GetAlignment(); }
+
// Sets the ShelfAutoHideBehavior. See enum description for details.
- void SetAutoHideBehavior(ShelfAutoHideBehavior behavior);
+ void SetAutoHideBehavior(ShelfAutoHideBehavior auto_hide_behavior);
+ ShelfAutoHideBehavior auto_hide_behavior() const {
+ return auto_hide_behavior_;
+ }
+
+ // TODO(msw): Remove this accessor, kept temporarily to simplify changes.
ShelfAutoHideBehavior GetAutoHideBehavior() const;
// A helper functions that chooses values specific to a shelf alignment.
@@ -140,6 +148,7 @@ class ASH_EXPORT Shelf {
ShelfView* shelf_view_;
ShelfAlignment alignment_;
+ ShelfAutoHideBehavior auto_hide_behavior_;
ShelfDelegate* delegate_;
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | ash/shelf/shelf.cc » ('j') | ash/shelf/shelf.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698