diff options
author | yusufo@chromium.org <yusufo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-16 21:42:22 +0000 |
---|---|---|
committer | yusufo@chromium.org <yusufo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-16 21:42:22 +0000 |
commit | 2f1acc2635e570c28176fe7f0f199440a5057dd9 (patch) | |
tree | 5d1b9ba2013844d993d1a662c97d04f848075098 /cc/layer_tree_host_common.h | |
parent | ccc65553d583aa1e184ca9e4eed6a01ffe38f4bb (diff) | |
download | chromium_src-2f1acc2635e570c28176fe7f0f199440a5057dd9.zip chromium_src-2f1acc2635e570c28176fe7f0f199440a5057dd9.tar.gz chromium_src-2f1acc2635e570c28176fe7f0f199440a5057dd9.tar.bz2 |
Add API for hit testing layer_impl touchEventHandlerRegions from the host
These APIs will be used for hit testing touchEvents on the compositor. Currently
all touch events coming through input_event_filter return DidNotHandle. Using this check
we will be able to check the touch Ppoint against the touchEventHandlerRegion in all
layer_impls and return DropEvent if there are no hits.
BUG=135818
Review URL: https://chromiumcodereview.appspot.com/11402002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168294 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_tree_host_common.h')
-rw-r--r-- | cc/layer_tree_host_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/layer_tree_host_common.h b/cc/layer_tree_host_common.h index cc5e621..9b0a684 100644 --- a/cc/layer_tree_host_common.h +++ b/cc/layer_tree_host_common.h @@ -28,6 +28,8 @@ public: // Performs hit testing for a given renderSurfaceLayerList. static LayerImpl* findLayerThatIsHitByPoint(const gfx::PointF& screenSpacePoint, std::vector<LayerImpl*>& renderSurfaceLayerList); + static LayerImpl* findLayerThatIsHitByPointInTouchHandlerRegion(const gfx::PointF& screenSpacePoint, std::vector<LayerImpl*>& renderSurfaceLayerList); + template<typename LayerType> static bool renderSurfaceContributesToTarget(LayerType*, int targetSurfaceLayerID); // Returns a layer with the given id if one exists in the subtree starting |