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

Unified Diff: chrome/browser/ui/views/download/download_item_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
Index: chrome/browser/ui/views/download/download_item_view.cc
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc
index bd5eefb28e0f19ed29777464a08713fe29376bd4..2fe55db43f513eac827f87c172fc47b3404bc566 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -505,19 +505,21 @@ void DownloadItemView::OnThemeChanged() {
UpdateColorsFromTheme();
}
-ui::EventResult DownloadItemView::OnGestureEvent(ui::GestureEvent* event) {
+void DownloadItemView::OnGestureEvent(ui::GestureEvent* event) {
if (event->type() == ui::ET_GESTURE_TAP_DOWN) {
HandlePressEvent(*event, true);
- return ui::ER_CONSUMED;
+ event->SetHandled();
+ return;
}
if (event->type() == ui::ET_GESTURE_TAP) {
HandleClickEvent(*event, true);
- return ui::ER_CONSUMED;
+ event->SetHandled();
+ return;
}
SetState(NORMAL, NORMAL);
- return views::View::OnGestureEvent(event);
+ views::View::OnGestureEvent(event);
}
void DownloadItemView::ShowContextMenuForView(View* source,
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.h ('k') | chrome/browser/ui/views/immersive_mode_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698