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

Unified Diff: ui/message_center/notification_list.h

Issue 15582004: Move NotificationDelegate into message_center. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the ever-changing Mac unit tests. Created 7 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/notification_delegate.cc ('k') | ui/message_center/notification_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification_list.h
diff --git a/ui/message_center/notification_list.h b/ui/message_center/notification_list.h
index 6a07d2c29255244bee17b5e9a2bf2f3255f2e33c..415585376ebc116b32a2cb9e20d034755b9afa50 100644
--- a/ui/message_center/notification_list.h
+++ b/ui/message_center/notification_list.h
@@ -22,6 +22,9 @@ class DictionaryValue;
}
namespace message_center {
+
+class NotificationDelegate;
+
namespace test {
class NotificationListTest;
}
@@ -61,13 +64,15 @@ class MESSAGE_CENTER_EXPORT NotificationList {
const string16& message,
const string16& display_source,
const std::string& extension_id,
- const base::DictionaryValue* optional_fields);
+ const base::DictionaryValue* optional_fields,
+ NotificationDelegate* delegate);
void UpdateNotificationMessage(const std::string& old_id,
const std::string& new_id,
const string16& title,
const string16& message,
- const base::DictionaryValue* optional_fields);
+ const base::DictionaryValue* optional_fields,
+ NotificationDelegate* delegate);
void RemoveNotification(const std::string& id);
@@ -115,6 +120,8 @@ class MESSAGE_CENTER_EXPORT NotificationList {
// Marks the specified notification as expanded in the notification center.
void MarkNotificationAsExpanded(const std::string& id);
+ NotificationDelegate* GetNotificationDelegate(const std::string& id);
+
bool quiet_mode() const { return quiet_mode_; }
// Sets the current quiet mode status to |quiet_mode|. The new status is not
« no previous file with comments | « ui/message_center/notification_delegate.cc ('k') | ui/message_center/notification_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698