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

Unified Diff: ui/message_center/views/message_popup_collection.h

Issue 2075953003: mash: Convert WebNotificationTray to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@statusarea
Patch Set: rebase 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
Index: ui/message_center/views/message_popup_collection.h
diff --git a/ui/message_center/views/message_popup_collection.h b/ui/message_center/views/message_popup_collection.h
index 24f49100dffb38c18c120ea5e085738f6bfabc31..4fe01e40f5c595579f0b7add533d49fb79553ea8 100644
--- a/ui/message_center/views/message_popup_collection.h
+++ b/ui/message_center/views/message_popup_collection.h
@@ -15,7 +15,6 @@
#include "base/memory/weak_ptr.h"
#include "base/timer/timer.h"
#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/native_widget_types.h"
#include "ui/message_center/message_center_export.h"
#include "ui/message_center/message_center_observer.h"
#include "ui/message_center/views/message_center_controller.h"
@@ -53,11 +52,7 @@ class MESSAGE_CENTER_EXPORT MessagePopupCollection
: public MessageCenterController,
public MessageCenterObserver {
public:
- // |parent| specifies the parent widget of the toast windows. The default
- // parent will be used for NULL. Usually each icon is spacing against its
- // predecessor.
- MessagePopupCollection(gfx::NativeView parent,
- MessageCenter* message_center,
+ MessagePopupCollection(MessageCenter* message_center,
MessageCenterTray* tray,
PopupAlignmentDelegate* alignment_delegate);
~MessagePopupCollection() override;
@@ -100,9 +95,6 @@ class MESSAGE_CENTER_EXPORT MessagePopupCollection
// Called when the display bounds has been changed. Used in Windows only.
void OnDisplayMetricsChanged(const display::Display& display);
- // Used by ToastContentsView to locate itself.
- gfx::NativeView parent() const { return parent_; }
-
private:
friend class test::MessagePopupCollectionTest;
typedef std::list<ToastContentsView*> Toasts;
@@ -149,7 +141,6 @@ class MESSAGE_CENTER_EXPORT MessagePopupCollection
void WaitForTest();
gfx::Rect GetToastRectAt(size_t index) const;
- gfx::NativeView parent_;
MessageCenter* message_center_;
MessageCenterTray* tray_;
Toasts toasts_;
« no previous file with comments | « ui/message_center/views/desktop_popup_alignment_delegate.cc ('k') | ui/message_center/views/message_popup_collection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698