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

Unified Diff: ash/shelf/shelf.cc

Issue 1920073002: Fix Chrome OS shelf locking for chromebook lid open/close. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update and add unit 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/ash.gyp ('k') | ash/shelf/shelf_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf.cc
diff --git a/ash/shelf/shelf.cc b/ash/shelf/shelf.cc
index 0609d6dee1918386ce463f3fb1c08398aae81f46..faa1f4fdbca948384c1b4104f1b57cfd13db2762 100644
--- a/ash/shelf/shelf.cc
+++ b/ash/shelf/shelf.cc
@@ -70,6 +70,12 @@ void Shelf::SetAlignment(ShelfAlignment alignment) {
if (alignment_ == alignment)
return;
+ if (shelf_locking_manager_.is_locked() &&
+ alignment != SHELF_ALIGNMENT_BOTTOM_LOCKED) {
+ shelf_locking_manager_.set_stored_alignment(alignment);
+ return;
+ }
+
alignment_ = alignment;
shelf_view_->OnShelfAlignmentChanged();
shelf_widget_->OnShelfAlignmentChanged();
« no previous file with comments | « ash/ash.gyp ('k') | ash/shelf/shelf_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698