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

Unified Diff: chrome/browser/ui/views/location_bar/zoom_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/zoom_bubble_view.cc
diff --git a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
index caedd3c43db4b537a113bbf71ffed523fb9df02e..d28292bf975a4c59ed8f4eeccb5dafe9db27ced3 100644
--- a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
@@ -114,16 +114,16 @@ void ZoomBubbleView::OnMouseExited(const ui::MouseEvent& event) {
StartTimerIfNecessary();
}
-ui::EventResult ZoomBubbleView::OnGestureEvent(ui::GestureEvent* event) {
+void ZoomBubbleView::OnGestureEvent(ui::GestureEvent* event) {
if (!zoom_bubble_ || !zoom_bubble_->auto_close_ ||
event->type() != ui::ET_GESTURE_TAP) {
- return ui::ER_UNHANDLED;
+ return;
}
// If an auto-closing bubble was tapped, show a non-auto-closing bubble in
// its place.
ShowBubble(zoom_bubble_->anchor_view(), zoom_bubble_->web_contents_, false);
- return ui::ER_CONSUMED;
+ event->SetHandled();
}
void ZoomBubbleView::ButtonPressed(views::Button* sender,
« no previous file with comments | « chrome/browser/ui/views/location_bar/zoom_bubble_view.h ('k') | chrome/browser/ui/views/location_bar/zoom_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698