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

Unified Diff: chrome/browser/ui/views/location_bar/content_setting_image_view.cc

Issue 10912063: events: Get rid of GestureStatus in favour of EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 months 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/content_setting_image_view.cc
diff --git a/chrome/browser/ui/views/location_bar/content_setting_image_view.cc b/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
index 7441cc6859b48c7ac0244e6b86ec1f7ae48f726e..2c8491a2af83c85b561ba27c23956be1ff7468aa 100644
--- a/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
+++ b/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
@@ -124,16 +124,16 @@ gfx::Size ContentSettingImageView::GetPreferredSize() {
return preferred_size;
}
-ui::GestureStatus ContentSettingImageView::OnGestureEvent(
+ui::EventResult ContentSettingImageView::OnGestureEvent(
const ui::GestureEvent& event) {
if (event.type() == ui::ET_GESTURE_TAP) {
OnClick();
- return ui::GESTURE_STATUS_CONSUMED;
+ return ui::ER_CONSUMED;
} else if (event.type() == ui::ET_GESTURE_TAP_DOWN) {
- return ui::GESTURE_STATUS_CONSUMED;
+ return ui::ER_CONSUMED;
}
- return ui::GESTURE_STATUS_UNKNOWN;
+ return ui::ER_UNHANDLED;
}

Powered by Google App Engine
This is Rietveld 408576698