Chromium Code Reviews| Index: ui/message_center/notification.h |
| diff --git a/ui/message_center/notification.h b/ui/message_center/notification.h |
| index 579c2be36bc3566a463badfdc477d48fcb40b5e3..2017cc234128684a621742a6ef3d88980cbe30a9 100644 |
| --- a/ui/message_center/notification.h |
| +++ b/ui/message_center/notification.h |
| @@ -61,6 +61,7 @@ class MESSAGE_CENTER_EXPORT RichNotificationData { |
| std::vector<int> vibration_pattern; |
| bool renotify; |
| bool silent; |
| + base::string16 accessible_name; |
| }; |
| class MESSAGE_CENTER_EXPORT Notification { |
| @@ -223,6 +224,11 @@ class MESSAGE_CENTER_EXPORT Notification { |
| void set_pinned(bool pinned) { optional_fields_.pinned = pinned; } |
| #endif // defined(OS_CHROMEOS) |
| + // Gets a text for spoken feedback. |
| + base::string16 accessible_name() const { |
|
xiyuan
2016/09/07 16:26:08
nit: const base::string16& to avoid copying ?
yhanada
2016/09/08 03:37:23
Done.
|
| + return optional_fields_.accessible_name; |
| + } |
| + |
| NotificationDelegate* delegate() const { return delegate_.get(); } |
| const RichNotificationData& rich_notification_data() const { |