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

Unified Diff: ui/message_center/notification.h

Issue 2318463002: arc: Make ChromeVox read an ARC custom notification (Closed)
Patch Set: 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
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 {
+ return optional_fields_.accessible_name;
+ }
+
NotificationDelegate* delegate() const { return delegate_.get(); }
const RichNotificationData& rich_notification_data() const {

Powered by Google App Engine
This is Rietveld 408576698