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" |
|
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 { |