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

Unified Diff: ui/message_center/notification.h

Issue 2765923003: Extend notifications.mojom for expandable notifications. (Closed)
Patch Set: Created 3 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
Index: ui/message_center/notification.h
diff --git a/ui/message_center/notification.h b/ui/message_center/notification.h
index 8b66c656c927bd5f5fecb5de701dff502e2ab4d8..013217321af304f605447f2acd1a6318bc0f6c87 100644
--- a/ui/message_center/notification.h
+++ b/ui/message_center/notification.h
@@ -53,6 +53,8 @@ struct MESSAGE_CENTER_EXPORT ButtonInfo {
ButtonInfo& operator=(const ButtonInfo& other);
};
+enum class NotificationExpandState { FIXED_SIZE, COLLAPSED, EXPANDED };
+
class MESSAGE_CENTER_EXPORT RichNotificationData {
public:
RichNotificationData();
@@ -74,6 +76,8 @@ class MESSAGE_CENTER_EXPORT RichNotificationData {
// Flag if the notification is pinned. If true, the notification is pinned
// and user can't remove it.
bool pinned;
+ // For the expand state of the notification
+ NotificationExpandState expand_state;
#endif // defined(OS_CHROMEOS)
std::vector<int> vibration_pattern;
bool renotify;

Powered by Google App Engine
This is Rietveld 408576698