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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 11195033: Upstream hooks for javascript touch handlers on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 2 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: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 2f031155e87d3ce3ea733fd1d91acea7b889c55d..1b2a20ce56329dc4d8e88fde7d8d2ec2c75d3ef2 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1767,6 +1767,10 @@ void RenderWidgetHostImpl::OnMsgHasTouchEventHandlers(bool has_handlers) {
has_touch_handler_ = has_handlers;
if (!has_touch_handler_)
touch_event_queue_->FlushQueue();
+#if defined(OS_ANDROID)
+ if (view_)
+ view_->HasTouchEventHandlers(has_touch_handler_);
+#endif
}
void RenderWidgetHostImpl::OnMsgSetCursor(const WebCursor& cursor) {
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698