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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_views.cc

Issue 6347002: touch: Return an enum from OnTouchEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | views/view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_views.cc
diff --git a/chrome/browser/renderer_host/render_widget_host_view_views.cc b/chrome/browser/renderer_host/render_widget_host_view_views.cc
index 18f2e192db74a22e3b16d0c03b92eec8c1d807d6..3751bf0fcd24538c0e145640cba3374810aa39ce 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_views.cc
+++ b/chrome/browser/renderer_host/render_widget_host_view_views.cc
@@ -734,6 +734,13 @@ bool RenderWidgetHostViewViews::OnTouchEvent(const views::TouchEvent& e) {
++i) {
touch_event_.touchPoints[i] = touch_event_.touchPoints[i + 1];
}
+
+ if (touch_event_.touchPointsLength == 0) {
sky 2011/01/14 21:47:20 This pattern is much different from how we've typi
sadrul 2011/01/14 22:11:33 I think you mean that the RootView, or the Acceler
+ // A touch sequence has completely ended. Notify the observer.
+ if (touch_event_observer_) {
+ touch_event_observer_->OnTouchSequenceEnd();
+ }
+ }
}
return true;
« no previous file with comments | « no previous file | views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698