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

Unified Diff: ui/message_center/notification_delegate.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/message_center.gyp ('k') | ui/message_center/notification_delegate_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification_delegate.h
diff --git a/ui/message_center/notification_delegate.h b/ui/message_center/notification_delegate.h
index 059a15dfda6a025b2d34ab8e3d62808596899dba..5f9b5b174a7428440234025b3ea4396dc1d323c8 100644
--- a/ui/message_center/notification_delegate.h
+++ b/ui/message_center/notification_delegate.h
@@ -5,6 +5,7 @@
#ifndef UI_MESSAGE_CENTER_NOTIFICATION_DELEGATE_H_
#define UI_MESSAGE_CENTER_NOTIFICATION_DELEGATE_H_
+#include <memory>
#include <string>
#include "base/callback.h"
@@ -16,6 +17,12 @@ namespace content {
class RenderViewHost;
}
+#if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX)
+namespace views {
+class View;
+}
+#endif
+
namespace message_center {
// Delegate for a notification. This class has two roles: to implement callback
@@ -46,6 +53,12 @@ class MESSAGE_CENTER_EXPORT NotificationDelegate
// To be called in order to detect if a settings button should be displayed.
virtual bool ShouldDisplaySettingsButton();
+#if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX)
+ // To be called to construct the contents view of a popup for notifications
+ // whose type is NOTIFICATION_TYPE_CUSTOM.
+ virtual std::unique_ptr<views::View> CreateCustomContent();
+#endif
+
protected:
virtual ~NotificationDelegate() {}
« no previous file with comments | « ui/message_center/message_center.gyp ('k') | ui/message_center/notification_delegate_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698