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

Unified Diff: ui/message_center/notification.h

Issue 2337963003: Plumb through notification action types and placeholders on Android (Closed)
Patch Set: Final review nits 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..bfca493e164a5d05f2a59cc764dfd2c0d7ad81f8 100644
--- a/ui/message_center/notification.h
+++ b/ui/message_center/notification.h
@@ -10,6 +10,7 @@
#include <string>
#include <vector>
+#include "base/strings/nullable_string16.h"
dewittj 2016/09/28 02:41:58 unused?
awdf 2016/09/28 11:42:09 Done, thanks. Is there an automated tool I can us
Peter Beverloo 2016/09/28 12:00:40 Unfortunately there isn't. (This is a hard problem
#include "base/strings/string16.h"
#include "base/time/time.h"
#include "base/values.h"
@@ -29,11 +30,18 @@ struct MESSAGE_CENTER_EXPORT NotificationItem {
NotificationItem(const base::string16& title, const base::string16& message);
};
+enum class ButtonType { BUTTON, TEXT };
+
struct MESSAGE_CENTER_EXPORT ButtonInfo {
base::string16 title;
gfx::Image icon;
+ ButtonType type = ButtonType::BUTTON;
+ base::string16 placeholder;
- ButtonInfo(const base::string16& title);
+ explicit ButtonInfo(const base::string16& title);
+ ButtonInfo(const ButtonInfo& other);
+ ~ButtonInfo();
+ ButtonInfo& operator=(const ButtonInfo& other);
dewittj 2016/09/28 02:41:58 any reason not to put =default here instead of .cc
awdf 2016/09/28 11:42:09 Nope, other than I didn't know you could (and I w
Peter Beverloo 2016/09/28 12:00:40 Well, by moving =default to the header file you're
};
class MESSAGE_CENTER_EXPORT RichNotificationData {

Powered by Google App Engine
This is Rietveld 408576698