[go: nahoru, domu]

Compute the most restricted TouchAction on cc side

Within InputHandlerProxy::HitTestTouchEvent, |touch_action| is
passed by pointer to EventListenerTypeForTouchStartOrMoveAt. Within
EventListenerTypeForTouchStartOrMoveAt, GetMostRestrictedTouchAction is
called and returns the most restricted TouchAction for the point that
has been touched.

This change will ultimately allow cc side to inform browser of the most
restricted bit, possibly saving unecessary work from blink.
Logic still needed: Sending the restricted TouchAction to browser.

Bug: 727866
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I4777a71be0097482c13ae93406e22f072abfd9bc
Reviewed-on: https://chromium-review.googlesource.com/541457
Commit-Queue: Hayley Ferr <hayleyferr@chromium.org>
Reviewed-by: Timothy Dresser <tdresser@chromium.org>
Reviewed-by: Robert Flack <flackr@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#484135}
diff --git a/cc/BUILD.gn b/cc/BUILD.gn
index bb6312a..ea261d1e 100644
--- a/cc/BUILD.gn
+++ b/cc/BUILD.gn
@@ -758,6 +758,7 @@
     "layers/surface_layer_unittest.cc",
     "layers/texture_layer_impl_unittest.cc",
     "layers/texture_layer_unittest.cc",
+    "layers/touch_action_region_unittest.cc",
     "layers/ui_resource_layer_impl_unittest.cc",
     "layers/ui_resource_layer_unittest.cc",
     "layers/video_frame_provider_client_impl_unittest.cc",