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

Unified Diff: chrome/browser/ui/views/location_bar/ev_bubble_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/location_bar/ev_bubble_view.cc
diff --git a/chrome/browser/ui/views/location_bar/ev_bubble_view.cc b/chrome/browser/ui/views/location_bar/ev_bubble_view.cc
index 04a012243d8cdb4acbb80af87451a215ae056551..5d651be560790a3debea00dd766281148e312982 100644
--- a/chrome/browser/ui/views/location_bar/ev_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/ev_bubble_view.cc
@@ -26,10 +26,9 @@ void EVBubbleView::OnMouseReleased(const ui::MouseEvent& event) {
page_info_helper_.ProcessEvent(event);
}
-ui::EventResult EVBubbleView::OnGestureEvent(ui::GestureEvent* event) {
+void EVBubbleView::OnGestureEvent(ui::GestureEvent* event) {
if (event->type() == ui::ET_GESTURE_TAP) {
page_info_helper_.ProcessEvent(*event);
- return ui::ER_CONSUMED;
+ event->SetHandled();
}
- return ui::ER_UNHANDLED;
}

Powered by Google App Engine
This is Rietveld 408576698