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

Unified Diff: ash/system/web_notification/ash_popup_alignment_delegate.h

Issue 2029323002: mash: Convert AshPopupAlignmentDelegate to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 6 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.cc ('k') | ash/system/web_notification/ash_popup_alignment_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/web_notification/ash_popup_alignment_delegate.h
diff --git a/ash/system/web_notification/ash_popup_alignment_delegate.h b/ash/system/web_notification/ash_popup_alignment_delegate.h
index 2b265960932ae2aed11943922a45f8acbd0fcb84..11eab271195af1592a845561ee08d807873727a5 100644
--- a/ash/system/web_notification/ash_popup_alignment_delegate.h
+++ b/ash/system/web_notification/ash_popup_alignment_delegate.h
@@ -9,8 +9,8 @@
#include "ash/ash_export.h"
#include "ash/common/shelf/shelf_types.h"
+#include "ash/common/shelf/wm_shelf_observer.h"
#include "ash/common/shell_observer.h"
-#include "ash/shelf/shelf_layout_manager_observer.h"
#include "base/macros.h"
#include "ui/display/display_observer.h"
#include "ui/gfx/geometry/rect.h"
@@ -25,16 +25,17 @@ namespace ash {
class AshPopupAlignmentDelegateTest;
class ShelfLayoutManager;
class WebNotificationTrayTest;
+class WmShelf;
// The PopupAlignmentDelegate subclass for Ash. It needs to handle alignment of
// the shelf and its autohide state.
class ASH_EXPORT AshPopupAlignmentDelegate
: public message_center::PopupAlignmentDelegate,
- public ShelfLayoutManagerObserver,
+ public WmShelfObserver,
public ShellObserver,
public display::DisplayObserver {
public:
- explicit AshPopupAlignmentDelegate(ShelfLayoutManager* shelf);
+ explicit AshPopupAlignmentDelegate(WmShelf* shelf);
~AshPopupAlignmentDelegate() override;
// Start observing the system.
@@ -71,7 +72,7 @@ class ASH_EXPORT AshPopupAlignmentDelegate
// Overridden from ShellObserver:
void OnDisplayWorkAreaInsetsChanged() override;
- // Overridden from ShelfLayoutManagerObserver:
+ // WmShelfObserver:
void WillChangeVisibilityState(ShelfVisibilityState new_state) override;
void OnAutoHideStateChanged(ShelfAutoHideState new_state) override;
@@ -83,7 +84,7 @@ class ASH_EXPORT AshPopupAlignmentDelegate
display::Screen* screen_;
gfx::Rect work_area_;
- ShelfLayoutManager* shelf_;
+ WmShelf* shelf_;
int system_tray_height_;
DISALLOW_COPY_AND_ASSIGN(AshPopupAlignmentDelegate);
« no previous file with comments | « ash/shelf/shelf.cc ('k') | ash/system/web_notification/ash_popup_alignment_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698