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

Unified Diff: ui/message_center/notification.h

Issue 2337963003: Plumb through notification action types and placeholders on Android (Closed)
Patch Set: Responding to review comments 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"
#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);
Peter Beverloo 2016/09/26 16:04:34 Out of interest, are these still necessary when yo
awdf 2016/09/27 14:45:27 Which copy are you talking about, the copy of the
Peter Beverloo 2016/09/27 15:28:32 The one in platform_notification_service_impl.cc i
awdf 2016/09/27 15:36:27 Oh but I got the clang error before I started cach
+ ~ButtonInfo();
+ ButtonInfo& operator=(const ButtonInfo& other);
};
class MESSAGE_CENTER_EXPORT RichNotificationData {

Powered by Google App Engine
This is Rietveld 408576698