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

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

Issue 1659283002: ash: Explicitly teach various components about ShelfLayoutManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ozone-ui-event-platform-event
Patch Set: fix-test Created 4 years, 11 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.h
diff --git a/ash/system/web_notification/ash_popup_alignment_delegate.h b/ash/system/web_notification/ash_popup_alignment_delegate.h
index 5e37ea7ba686e7cf0acda1b22f34adb3aae7d689..d4dbffac670cdba6b0a11f13502627f9dc4b83a3 100644
--- a/ash/system/web_notification/ash_popup_alignment_delegate.h
+++ b/ash/system/web_notification/ash_popup_alignment_delegate.h
@@ -38,7 +38,7 @@ class ASH_EXPORT AshPopupAlignmentDelegate
public ShellObserver,
public gfx::DisplayObserver {
public:
- AshPopupAlignmentDelegate();
+ explicit AshPopupAlignmentDelegate(ShelfLayoutManager* shelf);
~AshPopupAlignmentDelegate() override;
// Start observing the system.
@@ -63,11 +63,6 @@ class ASH_EXPORT AshPopupAlignmentDelegate
// Get the current alignment of the shelf.
ShelfAlignment GetAlignment() const;
- // Update |shelf_| and start watching when it's first set. This should not
- // be done in the constructor because the shelf might not be initialized at
- // that point.
- void UpdateShelf();
-
// Utility function to get the display which should be care about.
gfx::Display GetCurrentDisplay() const;
« no previous file with comments | « ash/system/tray/tray_background_view.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