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

Unified Diff: chrome/browser/ui/views/download/download_item_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/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 6e07abe14193735c5608cd9fcd123d427cab486f..376d13bc87476ab02fa9e34a4eb80357675d49e9 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -496,16 +496,16 @@ bool DownloadItemView::OnKeyPressed(const ui::KeyEvent& event) {
return false;
}
-ui::GestureStatus DownloadItemView::OnGestureEvent(
+ui::EventResult DownloadItemView::OnGestureEvent(
const ui::GestureEvent& event) {
if (event.type() == ui::ET_GESTURE_TAP_DOWN) {
HandlePressEvent(event, true);
- return ui::GESTURE_STATUS_CONSUMED;
+ return ui::ER_CONSUMED;
}
if (event.type() == ui::ET_GESTURE_TAP) {
HandleClickEvent(event, true);
- return ui::GESTURE_STATUS_CONSUMED;
+ return ui::ER_CONSUMED;
}
SetState(NORMAL, NORMAL);

Powered by Google App Engine
This is Rietveld 408576698