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

Unified Diff: ash/launcher/launcher_view.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/launcher/launcher_view.h ('k') | ash/system/status_area_widget_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_view.cc
diff --git a/ash/launcher/launcher_view.cc b/ash/launcher/launcher_view.cc
index f51da7a30c5c3d4a2e59100e0c49ce560bfa13d6..4148c8760eb8711fa80cce59574ba6e5ba95c0cf 100644
--- a/ash/launcher/launcher_view.cc
+++ b/ash/launcher/launcher_view.cc
@@ -788,9 +788,9 @@ views::FocusTraversable* LauncherView::GetPaneFocusTraversable() {
return this;
}
-ui::EventResult LauncherView::OnGestureEvent(ui::GestureEvent* event) {
- return gesture_handler_.ProcessGestureEvent(*event) ?
- ui::ER_CONSUMED : ui::ER_UNHANDLED;
+void LauncherView::OnGestureEvent(ui::GestureEvent* event) {
+ if (gesture_handler_.ProcessGestureEvent(*event))
+ event->StopPropagation();
}
void LauncherView::LauncherItemAdded(int model_index) {
« no previous file with comments | « ash/launcher/launcher_view.h ('k') | ash/system/status_area_widget_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698