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

Unified Diff: ui/message_center/notification.h

Issue 2318463002: arc: Make ChromeVox read an ARC custom notification (Closed)
Patch Set: rebase and cleanup 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
« no previous file with comments | « ui/arc/notification/arc_custom_notification_item.cc ('k') | ui/message_center/notification.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification.h
diff --git a/ui/message_center/notification.h b/ui/message_center/notification.h
index 579c2be36bc3566a463badfdc477d48fcb40b5e3..93d255e56daa8439201c0348146a3df69e15ee7c 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.
+ const base::string16& accessible_name() const {
+ return optional_fields_.accessible_name;
+ }
+
NotificationDelegate* delegate() const { return delegate_.get(); }
const RichNotificationData& rich_notification_data() const {
« no previous file with comments | « ui/arc/notification/arc_custom_notification_item.cc ('k') | ui/message_center/notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698