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

Unified Diff: ash/system/web_notification/ash_popup_alignment_delegate.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
Index: ash/system/web_notification/ash_popup_alignment_delegate.cc
diff --git a/ash/system/web_notification/ash_popup_alignment_delegate.cc b/ash/system/web_notification/ash_popup_alignment_delegate.cc
index f2e4d84ddb6b7271b2ddce0a018b0597d37beb1e..ae39d5e38a672db454e8523036510fb844c7f38b 100644
--- a/ash/system/web_notification/ash_popup_alignment_delegate.cc
+++ b/ash/system/web_notification/ash_popup_alignment_delegate.cc
@@ -7,8 +7,8 @@
#include "ash/public/cpp/shelf_types.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/root_window_controller.h"
+#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_constants.h"
-#include "ash/shelf/wm_shelf.h"
#include "ash/shell.h"
#include "ash/wm_window.h"
#include "base/i18n/rtl.h"
@@ -32,7 +32,7 @@ const int kNoToastMarginBorderAndShadowOffset = 2;
} // namespace
-AshPopupAlignmentDelegate::AshPopupAlignmentDelegate(WmShelf* shelf)
+AshPopupAlignmentDelegate::AshPopupAlignmentDelegate(Shelf* shelf)
: screen_(NULL), shelf_(shelf), tray_bubble_height_(0) {
shelf_->AddObserver(this);
}
@@ -128,7 +128,7 @@ bool AshPopupAlignmentDelegate::IsPrimaryDisplayForNotification() const {
}
ShelfAlignment AshPopupAlignmentDelegate::GetAlignment() const {
- return shelf_->GetAlignment();
+ return shelf_->alignment();
}
display::Display AshPopupAlignmentDelegate::GetCurrentDisplay() const {
@@ -141,7 +141,7 @@ void AshPopupAlignmentDelegate::UpdateWorkArea() {
}
///////////////////////////////////////////////////////////////////////////////
-// WmShelfObserver:
+// ShelfObserver:
void AshPopupAlignmentDelegate::WillChangeVisibilityState(
ShelfVisibilityState new_state) {

Powered by Google App Engine
This is Rietveld 408576698