Index: ash/system/tray/tray_notification_view.cc |
diff --git a/ash/system/tray/tray_notification_view.cc b/ash/system/tray/tray_notification_view.cc |
index 2c4929b507a3d7ae1d4677f4152746611368845d..1565fd7a168da645e2faa11a05d3ea9de9de6780 100644 |
--- a/ash/system/tray/tray_notification_view.cc |
+++ b/ash/system/tray/tray_notification_view.cc |
@@ -124,13 +124,14 @@ bool TrayNotificationView::OnMousePressed(const ui::MouseEvent& event) { |
return true; |
} |
-ui::EventResult TrayNotificationView::OnGestureEvent(ui::GestureEvent* event) { |
- if (SlideOutView::OnGestureEvent(event) == ui::ER_CONSUMED) |
- return ui::ER_CONSUMED; |
+void TrayNotificationView::OnGestureEvent(ui::GestureEvent* event) { |
+ SlideOutView::OnGestureEvent(event); |
+ if (event->handled()) |
+ return; |
if (event->type() != ui::ET_GESTURE_TAP) |
- return ui::ER_UNHANDLED; |
+ return; |
HandleClickAction(); |
- return ui::ER_CONSUMED; |
+ event->SetHandled(); |
} |
void TrayNotificationView::OnClose() { |