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

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

Issue 1979583003: Support notifications with custom content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@messageview-close-button
Patch Set: fix mac build, attempt 2 Created 4 years, 7 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/message_view.h ('k') | ui/message_center/views/message_view_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_view_factory.h
diff --git a/ui/message_center/views/message_view_factory.h b/ui/message_center/views/message_view_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..9ff2251ff54db049a7b3b47fb6914b484a2b0a83
--- /dev/null
+++ b/ui/message_center/views/message_view_factory.h
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_MESSAGE_CENTER_MESSAGE_VIEW_FACTORY_H_
+#define UI_MESSAGE_CENTER_MESSAGE_VIEW_FACTORY_H_
+
+#include "ui/message_center/message_center_export.h"
+
+namespace message_center {
+
+class MessageCenterController;
+class MessageView;
+class Notification;
+
+// Creates appropriate MessageViews for notifications depending on the
+// notification type. A notification is top level if it needs to be rendered
+// outside the browser window. No custom shadows are created for top level
+// notifications on Linux with Aura.
+class MESSAGE_CENTER_EXPORT MessageViewFactory {
+ public:
+ // |controller| may be NULL, but has to be set before the view is shown.
+ static MessageView* Create(MessageCenterController* controller,
+ const Notification& notification,
+ bool top_level);
+};
+
+} // namespace message_center
+
+#endif // UI_MESSAGE_CENTER_MESSAGE_VIEW_FACTORY_H_
« no previous file with comments | « ui/message_center/views/message_view.h ('k') | ui/message_center/views/message_view_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698