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

Unified Diff: ui/message_center/views/popup_alignment_delegate.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/popup_alignment_delegate.h
diff --git a/ui/message_center/views/popup_alignment_delegate.h b/ui/message_center/views/popup_alignment_delegate.h
index f36deb6ac3ae5c35eac5c8bfce51dae8d7b20b1d..cba532ba0d3c36e0e68472e8e0fa1efa78622dbe 100644
--- a/ui/message_center/views/popup_alignment_delegate.h
+++ b/ui/message_center/views/popup_alignment_delegate.h
@@ -6,6 +6,7 @@
#define UI_MESSAGE_CENTER_VIEWS_POPUP_ALIGNMENT_DELEGATE_H_
#include "ui/message_center/message_center_export.h"
+#include "ui/views/widget/widget.h"
namespace gfx {
class Point;
@@ -50,6 +51,12 @@ class MESSAGE_CENTER_EXPORT PopupAlignmentDelegate {
// so that the toasts are arranged at the correct place.
virtual void RecomputeAlignment(const display::Display& display) = 0;
+ // Sets the parent container for popups. If it does not set a parent a
+ // default parent will be used (e.g. the native desktop on Windows).
+ virtual void ConfigureWidgetInitParamsForContainer(
+ views::Widget* widget,
+ views::Widget::InitParams* init_params) = 0;
+
protected:
virtual ~PopupAlignmentDelegate();
« no previous file with comments | « ui/message_center/views/message_popup_collection_unittest.cc ('k') | ui/message_center/views/toast_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698