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

Unified Diff: content/renderer/render_widget.cc

Issue 1050993004: Route touchmove existence notifications to the TouchEventQueue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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
« no previous file with comments | « content/renderer/render_widget.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 285ca7f68e4847b0a02ed4ef02767444c6537b33..32c6c30002ffcad780a58ab2e965511d997df574 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -2315,8 +2315,23 @@ void RenderWidget::ObserveWheelEventAndResult(
}
}
-void RenderWidget::hasTouchEventHandlers(bool has_handlers) {
- Send(new ViewHostMsg_HasTouchEventHandlers(routing_id_, has_handlers));
+void RenderWidget::hasEventHandlers(blink::WebEventHandlerClass handler_class,
+ bool has_handlers) {
+ // TODO(jdduke): Consider batching these notifications, posting a task
+ // to send them asynchronously.
+ switch (handler_class) {
+ case blink::WebEventHandlerClassTouch:
+ Send(new InputHostMsg_HasTouchEventHandlers(routing_id_, has_handlers));
+ break;
+
+ case blink::WebEventHandlerClassTouchMove:
+ Send(new InputHostMsg_HasTouchMoveEventHandlers(routing_id_,
+ has_handlers));
+ break;
+
+ default:
+ break;
+ }
}
// Check blink::WebTouchAction and blink::WebTouchActionAuto is kept in sync
« no previous file with comments | « content/renderer/render_widget.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698