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

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: Rebase Created 4 years, 10 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..b9cf1298f1658f2ea5debbbb8f4ad7bf8cffe88d 100644
--- a/ui/message_center/notification.h
+++ b/ui/message_center/notification.h
@@ -54,6 +54,7 @@ class MESSAGE_CENTER_EXPORT RichNotificationData {
bool should_make_spoken_feedback_for_popup_updates;
bool clickable;
std::vector<int> vibration_pattern;
+ bool renotify;
bool silent;
};
@@ -124,6 +125,12 @@ class MESSAGE_CENTER_EXPORT Notification {
}
// 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; }
+
+ // 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; }
« no previous file with comments | « third_party/WebKit/public/platform/modules/notifications/WebNotificationData.h ('k') | ui/message_center/notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698