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

Unified Diff: ui/message_center/notification.h

Issue 23462005: Adds the contextMessage field to notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adjust unit test due to bugfix in toast layout. Created 7 years, 4 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_style.cc ('k') | ui/message_center/notification.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification.h
diff --git a/ui/message_center/notification.h b/ui/message_center/notification.h
index 6a742e03748d3c860e189e6c1ffd39d8f376e931..df7cb5a4bd0cc92eae6ac9622f93348aa229ce6b 100644
--- a/ui/message_center/notification.h
+++ b/ui/message_center/notification.h
@@ -43,6 +43,7 @@ class MESSAGE_CENTER_EXPORT RichNotificationData {
bool never_timeout;
base::Time timestamp;
string16 expanded_message;
+ string16 context_message;
gfx::Image image;
std::vector<NotificationItem> items;
int progress;
@@ -101,6 +102,13 @@ class MESSAGE_CENTER_EXPORT Notification {
optional_fields_.expanded_message = expanded_message;
}
+ const string16& context_message() const {
+ return optional_fields_.context_message;
+ }
+ void set_context_message(const string16& context_message) {
+ optional_fields_.context_message = context_message;
+ }
+
const std::vector<NotificationItem>& items() const {
return optional_fields_.items;
}
« no previous file with comments | « ui/message_center/message_center_style.cc ('k') | ui/message_center/notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698