Index: content/renderer/render_widget.cc |
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc |
index 02321cdcb4e0f9e24fe763b36e4d293e1781d04a..864b7e31e502e7d35772dc85733ebea37fcf8272 100644 |
--- a/content/renderer/render_widget.cc |
+++ b/content/renderer/render_widget.cc |
@@ -2769,6 +2769,24 @@ void RenderWidget::hasTouchEventHandlers(bool has_handlers) { |
Send(new ViewHostMsg_HasTouchEventHandlers(routing_id_, has_handlers)); |
} |
+void RenderWidget::setTouchAction(int touchId, bool touchActionDelayed, |
+ WebWidgetClient::TouchAction touchAction) { |
+ // TODO(rbyers): touch-action-delayed not yet used. crbug.com/241964 |
+ content::TouchAction contentTouchAction; |
+ switch(touchAction) { |
+ case WebWidgetClient::TouchActionNone: |
+ contentTouchAction = content::TOUCH_ACTION_NONE; |
+ break; |
+ case WebWidgetClient::TouchActionAuto: |
+ contentTouchAction = content::TOUCH_ACTION_AUTO; |
+ break; |
+ default: |
+ NOTREACHED(); |
+ } |
+ Send(new ViewHostMsg_SetTouchAction(routing_id_, touchId, |
+ contentTouchAction)); |
+} |
+ |
bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { |
return true; |
} |