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

Unified Diff: ash/system/tray/tray_views.cc

Issue 11280290: events: Change gesture-event handler in EventHandler to not return any values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « ash/system/tray/tray_views.h ('k') | ash/wm/activation_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_views.cc
diff --git a/ash/system/tray/tray_views.cc b/ash/system/tray/tray_views.cc
index ca7e625e8276ca52ea33c14ddb868c56b1f72e0e..522ca713a06e57ace3fae011c36edb3feafdb879 100644
--- a/ash/system/tray/tray_views.cc
+++ b/ash/system/tray/tray_views.cc
@@ -182,12 +182,9 @@ void ActionableView::OnPaintFocusBorder(gfx::Canvas* canvas) {
DrawBorder(canvas, GetLocalBounds());
}
-ui::EventResult ActionableView::OnGestureEvent(ui::GestureEvent* event) {
- if (event->type() == ui::ET_GESTURE_TAP) {
- return PerformAction(*event) ? ui::ER_CONSUMED :
- ui::ER_UNHANDLED;
- }
- return ui::ER_UNHANDLED;
+void ActionableView::OnGestureEvent(ui::GestureEvent* event) {
+ if (event->type() == ui::ET_GESTURE_TAP && PerformAction(*event))
+ event->SetHandled();
}
void ActionableView::GetAccessibleState(ui::AccessibleViewState* state) {
« no previous file with comments | « ash/system/tray/tray_views.h ('k') | ash/wm/activation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698