Chromium Code Reviews| Index: content/renderer/render_widget.cc |
| diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc |
| index 7cd7c33f25e6cdde639dd4d063878ba529acddc5..b1786bb42087e1581ab41b1eece48e38ba177763 100644 |
| --- a/content/renderer/render_widget.cc |
| +++ b/content/renderer/render_widget.cc |
| @@ -2783,6 +2783,23 @@ void RenderWidget::hasTouchEventHandlers(bool has_handlers) { |
| Send(new ViewHostMsg_HasTouchEventHandlers(routing_id_, has_handlers)); |
| } |
| +void RenderWidget::setTouchAction(int touchId, |
| + WebWidgetClient::TouchAction touchAction) { |
| + content::TouchAction contentTouchAction; |
|
sadrul
2013/11/19 10:36:44
touch_id, touch_action, etc.
Rick Byers
2013/11/19 22:14:59
Dammit, sorry - I'll never get used to switching b
|
| + switch(touchAction) { |
| + case WebWidgetClient::TouchActionNone: |
|
sadrul
2013/11/19 10:36:44
indent
Rick Byers
2013/11/19 22:14:59
Done.
|
| + 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; |
| } |