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

Unified Diff: ui/arc/notification/arc_notification_item_impl.h

Issue 2892893002: Initial implementation of new-style notification (Closed)
Patch Set: addressed comments Created 3 years, 7 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_notification_item.h ('k') | ui/arc/notification/arc_notification_item_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/arc/notification/arc_notification_item_impl.h
diff --git a/ui/arc/notification/arc_notification_item_impl.h b/ui/arc/notification/arc_notification_item_impl.h
index 2fbf31479c9ddac426cc293978dc0cb757249ebe..9f69b57bbd76a95f704c6ef0c5fa0d17fe0cb6d3 100644
--- a/ui/arc/notification/arc_notification_item_impl.h
+++ b/ui/arc/notification/arc_notification_item_impl.h
@@ -48,6 +48,7 @@ class ArcNotificationItemImpl : public ArcNotificationItem {
mojom::ArcNotificationShownContents GetShownContents() const override;
const std::string& GetNotificationKey() const override;
const std::string& GetNotificationId() const override;
+ const base::string16& GetAccessibleName() const override;
private:
// Return true if it's on the thread this instance is created on.
@@ -68,6 +69,8 @@ class ArcNotificationItemImpl : public ArcNotificationItem {
mojom::ArcNotificationShownContents::CONTENTS_SHOWN;
// The reference counter of the window.
int window_ref_count_ = 0;
+ // The accessible name of the latest notification.
+ base::string16 accessible_name_;
base::ObserverList<Observer> observers_;
« no previous file with comments | « ui/arc/notification/arc_notification_item.h ('k') | ui/arc/notification/arc_notification_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698