Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Unified Diff: public/web/WebView.h

Issue 470833002: Add WebKit API for doing a hit-test that mimics GestureTap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: tapCount Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/tests/data/hit_test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebView.h
diff --git a/public/web/WebView.h b/public/web/WebView.h
index 8ff848729fcba8a3c6966909e126833277645d45..da572e02dc5e352e277949e25755ebc73be4033f 100644
--- a/public/web/WebView.h
+++ b/public/web/WebView.h
@@ -319,6 +319,11 @@ public:
// Do a hit test at given point and return the HitTestResult.
virtual WebHitTestResult hitTestResultAt(const WebPoint&) = 0;
+ // Do a hit test equivalent to what would be done for a GestureTap event
+ // that has width/height corresponding to the supplied |tapArea|.
+ virtual WebHitTestResult hitTestResultForTap(const WebPoint& tapPoint,
+ const WebSize& tapArea) = 0;
+
// Copy to the clipboard the image located at a particular point in the
// WebView (if there is such an image)
virtual void copyImageAt(const WebPoint&) = 0;
« no previous file with comments | « Source/web/tests/data/hit_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698