Implement direction-specific touch-action values.
commita98ac8d7b972c2ca598391e550bef58e2d537684
authordtapuska <dtapuska@chromium.org>
Fri, 8 May 2015 19:29:09 +0000 (8 12:29 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 8 May 2015 19:30:23 +0000 (8 19:30 +0000)
tree2d7db6e533357005f5fdaddf87211a4102028d47
parent3c886914564272a18c217ca4632c3b30f8c74b23
Implement direction-specific touch-action values.

Add PanLeft, PanRight, PanUp and PanDown support by generalizing the PanX and PanY code.

The fix for the bug is a 3 part change and is required
because of the dependencies of blink as there is a static
cast (causing a ABI dependency). To work around this ABI
problem this is part 1 adding the PanXXX definitions to the
content classes and disabling the static assertions and
casting. The second change is
https://codereview.chromium.org/1137483003/. Once that
change has landed a follow up change to this change one
will remove the #if 0 and re-add the static cast between
blink::WebTouchAction and content::TouchAction

BUG=476556
TEST=content_unittests

Review URL: https://codereview.chromium.org/1131093002

Cr-Commit-Position: refs/heads/master@{#329011}
content/browser/renderer_host/input/touch_action_filter.cc
content/browser/renderer_host/input/touch_action_filter_unittest.cc
content/common/input/touch_action.h
content/renderer/render_widget.cc