| 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
|
|
|