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

Unified Diff: ui/arc/notification/arc_custom_notification_view.cc

Issue 2799573002: Fix the check to distinguish accessibility events. (Closed)
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/arc/notification/arc_custom_notification_view.cc
diff --git a/ui/arc/notification/arc_custom_notification_view.cc b/ui/arc/notification/arc_custom_notification_view.cc
index d640556c32c2f29ddc19f24d7f48010a9cb6f930..4a2f6b4832c68c897ce816001898946087f09f01 100644
--- a/ui/arc/notification/arc_custom_notification_view.cc
+++ b/ui/arc/notification/arc_custom_notification_view.cc
@@ -555,7 +555,7 @@ bool ArcCustomNotificationView::OnMousePressed(const ui::MouseEvent& event) {
// means the event is generated by automation API.
if (event.IsOnlyLeftMouseButton() &&
item_->expand_state() != mojom::ArcNotificationExpandState::FIXED_SIZE &&
- event.target() != surface_->window()) {
+ event.target() == nullptr) {
yoshiki 2017/04/05 08:55:51 Could you update the comment above and mention abo
item_->ToggleExpansion();
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698