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

Unified Diff: ui/message_center/views/toast_contents_view.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
« no previous file with comments | « ui/message_center/views/popup_alignment_delegate.h ('k') | ui/message_center/views/toast_contents_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « ui/message_center/views/popup_alignment_delegate.h ('k') | ui/message_center/views/toast_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698