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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_decoration_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/location_bar_decoration_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_decoration_view.cc b/chrome/browser/ui/views/location_bar/location_bar_decoration_view.cc
index c6f65813f990d7333e894f1635a3c2c1d0912c82..2aa0743e79537d04839a5344290c3ebc0024a655 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_decoration_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_decoration_view.cc
@@ -72,17 +72,14 @@ gfx::Size LocationBarDecorationView::GetPreferredSize() {
return preferred_size;
}
-ui::EventResult LocationBarDecorationView::OnGestureEvent(
- ui::GestureEvent* event) {
+void LocationBarDecorationView::OnGestureEvent(ui::GestureEvent* event) {
if (event->type() == ui::ET_GESTURE_TAP) {
AnimationOnClick();
OnClick(parent_);
- return ui::ER_CONSUMED;
+ event->SetHandled();
} else if (event->type() == ui::ET_GESTURE_TAP_DOWN) {
- return ui::ER_CONSUMED;
+ event->SetHandled();
}
-
- return ui::ER_UNHANDLED;
}
void LocationBarDecorationView::AnimationEnded(const ui::Animation* animation) {

Powered by Google App Engine
This is Rietveld 408576698