Index: ui/message_center/views/toast_contents_view.h |
diff --git a/ui/message_center/views/toast_contents_view.h b/ui/message_center/views/toast_contents_view.h |
index d69a360e1d939d4de2bc657325a386a934140e28..552227bb804f1203b3f0690fa423941ae1816483 100644 |
--- a/ui/message_center/views/toast_contents_view.h |
+++ b/ui/message_center/views/toast_contents_view.h |
@@ -12,7 +12,6 @@ |
#include "ui/gfx/geometry/point.h" |
#include "ui/gfx/geometry/rect.h" |
#include "ui/gfx/geometry/size.h" |
-#include "ui/gfx/native_widget_types.h" |
#include "ui/message_center/views/message_center_controller.h" |
#include "ui/views/widget/widget_delegate.h" |
@@ -34,6 +33,7 @@ class MessagePopupCollectionTest; |
class MessagePopupCollection; |
class MessageView; |
class Notification; |
+class PopupAlignmentDelegate; |
// The widget host for a popup. Also implements MessageCenterController |
// which delegates over to MessagePopupCollection, but takes care about |
@@ -47,6 +47,7 @@ class ToastContentsView : public views::WidgetDelegateView, |
static gfx::Size GetToastSizeForView(const views::View* view); |
ToastContentsView(const std::string& notification_id, |
+ PopupAlignmentDelegate* alignment_delegate, |
base::WeakPtr<MessagePopupCollection> collection); |
~ToastContentsView() override; |
@@ -112,7 +113,7 @@ class ToastContentsView : public views::WidgetDelegateView, |
void UpdatePreferredSize(); |
// Initialization and update. |
- void CreateWidget(gfx::NativeView parent); |
+ void CreateWidget(PopupAlignmentDelegate* alignment_delegate); |
// Immediately moves the toast without any sort of delay or animation. |
void SetBoundsInstantly(gfx::Rect new_bounds); |