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

Unified Diff: ash/shelf/shelf_locking_manager.cc

Issue 2899253002: chromeos: Rename ash::WmShelf to Shelf (Closed)
Patch Set: rebase Created 3 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/shelf/shelf_locking_manager.h ('k') | ash/shelf/shelf_locking_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_locking_manager.cc
diff --git a/ash/shelf/shelf_locking_manager.cc b/ash/shelf/shelf_locking_manager.cc
index cb221d4bb951ffa45d8c73b13eda4263dfbd8221..c7742e8729b7248a1bec834ef71eb9467ea118f7 100644
--- a/ash/shelf/shelf_locking_manager.cc
+++ b/ash/shelf/shelf_locking_manager.cc
@@ -5,13 +5,13 @@
#include "ash/shelf/shelf_locking_manager.h"
#include "ash/session/session_controller.h"
-#include "ash/shelf/wm_shelf.h"
+#include "ash/shelf/shelf.h"
#include "ash/shell.h"
#include "ash/shell_port.h"
namespace ash {
-ShelfLockingManager::ShelfLockingManager(WmShelf* shelf)
+ShelfLockingManager::ShelfLockingManager(Shelf* shelf)
: shelf_(shelf),
stored_alignment_(SHELF_ALIGNMENT_BOTTOM_LOCKED),
scoped_session_observer_(this) {
@@ -45,7 +45,7 @@ void ShelfLockingManager::OnLockStateEvent(EventType event) {
}
void ShelfLockingManager::UpdateLockedState() {
- const ShelfAlignment alignment = shelf_->GetAlignment();
+ const ShelfAlignment alignment = shelf_->alignment();
if (is_locked() && alignment != SHELF_ALIGNMENT_BOTTOM_LOCKED) {
stored_alignment_ = alignment;
shelf_->SetAlignment(SHELF_ALIGNMENT_BOTTOM_LOCKED);
« no previous file with comments | « ash/shelf/shelf_locking_manager.h ('k') | ash/shelf/shelf_locking_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698