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

Unified Diff: views/focus/accelerator_handler_touch.cc

Issue 6347002: touch: Return an enum from OnTouchEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODO, look for TOUCH_STATUS_START. Created 9 years, 11 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: views/focus/accelerator_handler_touch.cc
diff --git a/views/focus/accelerator_handler_touch.cc b/views/focus/accelerator_handler_touch.cc
index 84b4404a0c6a3e46a2c93b6751c167e63f658ff6..84c042df6e784caa2806133664af29e08303c86c 100644
--- a/views/focus/accelerator_handler_touch.cc
+++ b/views/focus/accelerator_handler_touch.cc
@@ -97,7 +97,7 @@ bool DispatchX2Event(RootView* root, XEvent* xev) {
// can be used (if desired) as a mouse event.
TouchEvent touch(xev);
- if (root->OnTouchEvent(touch))
+ if (root->OnTouchEvent(touch) != views::View::TOUCH_STATUS_UNKNOWN)
return true;
}

Powered by Google App Engine
This is Rietveld 408576698