Chromium Code Reviews| 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 { |