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

Unified Diff: ui/message_center/views/custom_notification_view.cc

Issue 2800373002: Remove hack for handling accessibility action on ARC notifications. (Closed)
Patch Set: "ui/accessibility:accessibility" -> "ui/accessibility" Created 3 years, 8 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/message_center/views/custom_notification_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/custom_notification_view.cc
diff --git a/ui/message_center/views/custom_notification_view.cc b/ui/message_center/views/custom_notification_view.cc
index a648f83614afb3ca42dddeb698fcfd7f6ab7c35d..324db5d5561fd9e7ce09eb1d5c45a2c60223e438 100644
--- a/ui/message_center/views/custom_notification_view.cc
+++ b/ui/message_center/views/custom_notification_view.cc
@@ -156,12 +156,11 @@ void CustomNotificationView::ChildPreferredSizeChanged(View* child) {
controller()->UpdateNotificationSize(notification_id());
}
-bool CustomNotificationView::OnMousePressed(const ui::MouseEvent& event) {
- // TODO(yhanada): This hack will be removed when HandleAccessibleAction will
- // be used for handling click events.
- if (contents_view_ && contents_view_->OnMousePressed(event))
- return true;
- return MessageView::OnMousePressed(event);
+bool CustomNotificationView::HandleAccessibleAction(
+ const ui::AXActionData& action) {
+ if (contents_view_)
+ return contents_view_->HandleAccessibleAction(action);
+ return false;
}
} // namespace message_center
« no previous file with comments | « ui/message_center/views/custom_notification_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698