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

Unified Diff: ui/message_center/notification.h

Issue 2337963003: Plumb through notification action types and placeholders on Android (Closed)
Patch Set: Created 4 years, 3 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 93d255e56daa8439201c0348146a3df69e15ee7c..8a18055d64b139e017c97a68dd65ee9ae3df03a7 100644
--- a/ui/message_center/notification.h
+++ b/ui/message_center/notification.h
@@ -11,6 +11,7 @@
#include <vector>
#include "base/strings/string16.h"
+#include "base/strings/nullable_string16.h"
#include "base/time/time.h"
#include "base/values.h"
#include "ui/gfx/image/image.h"
@@ -29,9 +30,13 @@ struct MESSAGE_CENTER_EXPORT NotificationItem {
NotificationItem(const base::string16& title, const base::string16& message);
};
+enum class NotificationActionType { BUTTON, TEXT };
awdf 2016/09/13 14:14:55 wasn't sure where to put this
Peter Beverloo 2016/09/14 16:27:12 This is fine. Probably should call it ButtonType t
awdf 2016/09/22 14:17:12 Done.
+
struct MESSAGE_CENTER_EXPORT ButtonInfo {
base::string16 title;
gfx::Image icon;
+ message_center::NotificationActionType type;
Peter Beverloo 2016/09/14 16:27:12 nit: no need to prefix with "message_center::", th
awdf 2016/09/26 15:33:28 Done.
+ base::NullableString16 placeholder;
Peter Beverloo 2016/09/14 16:27:12 I think you should see compile errors about this c
awdf 2016/09/22 14:17:12 I didn't see any compile errors about this, can yo
Peter Beverloo 2016/09/22 18:07:55 I saw compile errors when building this. Maybe run
awdf 2016/09/26 15:33:28 Done.
ButtonInfo(const base::string16& title);
};

Powered by Google App Engine
This is Rietveld 408576698