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

Unified Diff: ui/message_center/notification.h

Issue 965573002: Implement support for silent notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 5 years, 9 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 | « content/public/common/platform_notification_data.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 4f913d79c6ed6560511f1e0ce6853d620c0ddfc9..060cddaef49dcc1156658e010abe6caa60683c0c 100644
--- a/ui/message_center/notification.h
+++ b/ui/message_center/notification.h
@@ -50,6 +50,7 @@ class MESSAGE_CENTER_EXPORT RichNotificationData {
std::vector<ButtonInfo> buttons;
bool should_make_spoken_feedback_for_popup_updates;
bool clickable;
+ bool silent;
};
class MESSAGE_CENTER_EXPORT Notification {
@@ -103,6 +104,10 @@ class MESSAGE_CENTER_EXPORT Notification {
int priority() const { return optional_fields_.priority; }
void set_priority(int priority) { optional_fields_.priority = priority; }
+ // This property currently has no effect on non-Android platforms.
+ bool silent() const { return optional_fields_.silent; }
+ void set_silent(bool silent) { optional_fields_.silent = silent; }
+
base::Time timestamp() const { return optional_fields_.timestamp; }
void set_timestamp(const base::Time& timestamp) {
optional_fields_.timestamp = timestamp;
« no previous file with comments | « content/public/common/platform_notification_data.cc ('k') | ui/message_center/notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698