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

Unified Diff: ash/mus/shelf_delegate_mus.cc

Issue 1877543002: Revise the shelf alignment locking mechanism. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update and cleanup tests. 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
« no previous file with comments | « ash/content/keyboard_overlay/keyboard_overlay_delegate_unittest.cc ('k') | ash/shelf/shelf.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/shelf_delegate_mus.cc
diff --git a/ash/mus/shelf_delegate_mus.cc b/ash/mus/shelf_delegate_mus.cc
index 3e53ad8764cf500c710bfe919e1b80fa3c04e615..310ed9a1feecf62fbb0e9956e03be5fd6fbca140 100644
--- a/ash/mus/shelf_delegate_mus.cc
+++ b/ash/mus/shelf_delegate_mus.cc
@@ -135,7 +135,7 @@ void ShelfDelegateMus::OnShelfDestroyed(Shelf* shelf) {
void ShelfDelegateMus::OnShelfAlignmentChanged(Shelf* shelf) {
SetShelfPreferredSizes(shelf);
mash::shelf::mojom::Alignment alignment =
- static_cast<mash::shelf::mojom::Alignment>(shelf->GetAlignment());
+ static_cast<mash::shelf::mojom::Alignment>(shelf->alignment());
shelf_layout_->SetAlignment(alignment);
observers_.ForAllPtrs(
@@ -191,7 +191,7 @@ void ShelfDelegateMus::AddObserver(
// Notify the observer of the current state.
Shelf* shelf = Shelf::ForPrimaryDisplay();
observer_ptr->OnAlignmentChanged(
- static_cast<mash::shelf::mojom::Alignment>(shelf->GetAlignment()));
+ static_cast<mash::shelf::mojom::Alignment>(shelf->alignment()));
observer_ptr->OnAutoHideBehaviorChanged(
static_cast<mash::shelf::mojom::AutoHideBehavior>(
shelf->auto_hide_behavior()));
« no previous file with comments | « ash/content/keyboard_overlay/keyboard_overlay_delegate_unittest.cc ('k') | ash/shelf/shelf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698