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

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

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.cc
diff --git a/ui/message_center/views/message_popup_collection.cc b/ui/message_center/views/message_popup_collection.cc
index 068336683f3852f7d66a20a8c142e1eefff10ccb..36ed61be7e005d6fb5851cd548ec5262516556cc 100644
--- a/ui/message_center/views/message_popup_collection.cc
+++ b/ui/message_center/views/message_popup_collection.cc
@@ -48,17 +48,16 @@ const int kToastMarginY = kMarginBetweenItems;
} // namespace.
MessagePopupCollection::MessagePopupCollection(
- gfx::NativeView parent,
MessageCenter* message_center,
MessageCenterTray* tray,
PopupAlignmentDelegate* alignment_delegate)
- : parent_(parent),
- message_center_(message_center),
+ : message_center_(message_center),
tray_(tray),
alignment_delegate_(alignment_delegate),
defer_counter_(0),
latest_toast_entered_(NULL),
user_is_closing_toasts_by_clicking_(false),
+ target_top_edge_(0),
context_menu_controller_(new MessageViewContextMenuController(this)),
weak_factory_(this) {
DCHECK(message_center_);
@@ -182,8 +181,8 @@ void MessagePopupCollection::UpdateWidgets() {
break;
}
- ToastContentsView* toast =
- new ToastContentsView((*iter)->id(), weak_factory_.GetWeakPtr());
+ ToastContentsView* toast = new ToastContentsView(
+ (*iter)->id(), alignment_delegate_, weak_factory_.GetWeakPtr());
// There will be no contents already since this is a new ToastContentsView.
toast->SetContents(view, /*a11y_feedback_for_updates=*/false);
toasts_.push_back(toast);
« no previous file with comments | « ui/message_center/views/message_popup_collection.h ('k') | ui/message_center/views/message_popup_collection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698