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

Unified Diff: ui/message_center/notification.h

Issue 1656243002: Implementation of renotify flag for Notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TypeError for incorrect options and unit test Created 4 years, 11 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
Index: ui/message_center/notification.h
diff --git a/ui/message_center/notification.h b/ui/message_center/notification.h
index 491943d6e07529f1399d54440aef7c64a799d89f..342a3ff345dc970740ac7e7784691ae81756bdd0 100644
--- a/ui/message_center/notification.h
+++ b/ui/message_center/notification.h
@@ -55,6 +55,7 @@ class MESSAGE_CENTER_EXPORT RichNotificationData {
bool clickable;
std::vector<int> vibration_pattern;
bool silent;
+ bool renotify;
};
class MESSAGE_CENTER_EXPORT Notification {
@@ -127,6 +128,12 @@ class MESSAGE_CENTER_EXPORT Notification {
bool silent() const { return optional_fields_.silent; }
void set_silent(bool silent) { optional_fields_.silent = silent; }
+ // This property currently has no effect on non-Android platforms.
+ // It determines whether the sound and vibration effects should signal
+ // if the notification is replacing another notification.
+ bool renotify() const { return optional_fields_.renotify; }
+ void set_renotify(bool renotify) { optional_fields_.renotify = renotify; }
+
base::Time timestamp() const { return optional_fields_.timestamp; }
void set_timestamp(const base::Time& timestamp) {
optional_fields_.timestamp = timestamp;

Powered by Google App Engine
This is Rietveld 408576698