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

Unified Diff: ash/shelf/shelf.cc

Issue 1835403002: Support additional mash shelf alignments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: ash/shelf/shelf.cc
diff --git a/ash/shelf/shelf.cc b/ash/shelf/shelf.cc
index 58904c42a14adc29db4160e82e11acd114e2acfb..384eacaebe7d737317c18d9be5e964e2c7c6c207 100644
--- a/ash/shelf/shelf.cc
+++ b/ash/shelf/shelf.cc
@@ -72,6 +72,7 @@ void Shelf::SetAlignment(ShelfAlignment alignment) {
alignment_ = alignment;
shelf_view_->OnShelfAlignmentChanged();
// ShelfLayoutManager will resize the shelf.
+ delegate_->OnAlignmentChanged(alignment);
}
bool Shelf::IsHorizontalAlignment() const {
@@ -81,6 +82,7 @@ bool Shelf::IsHorizontalAlignment() const {
void Shelf::SetAutoHideBehavior(ShelfAutoHideBehavior behavior) {
shelf_widget_->shelf_layout_manager()->SetAutoHideBehavior(behavior);
+ delegate_->OnAutoHideBehaviorChanged(behavior);
}
ShelfAutoHideBehavior Shelf::GetAutoHideBehavior() const {

Powered by Google App Engine
This is Rietveld 408576698