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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « Source/web/tests/data/hit_test.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 // Performs the specified plugin action on the node at the given location. 312 // Performs the specified plugin action on the node at the given location.
313 virtual void performPluginAction( 313 virtual void performPluginAction(
314 const WebPluginAction&, const WebPoint& location) = 0; 314 const WebPluginAction&, const WebPoint& location) = 0;
315 315
316 316
317 // Data exchange ------------------------------------------------------- 317 // Data exchange -------------------------------------------------------
318 318
319 // Do a hit test at given point and return the HitTestResult. 319 // Do a hit test at given point and return the HitTestResult.
320 virtual WebHitTestResult hitTestResultAt(const WebPoint&) = 0; 320 virtual WebHitTestResult hitTestResultAt(const WebPoint&) = 0;
321 321
322 // Do a hit test equivalent to what would be done for a GestureTap event
323 // that has width/height corresponding to the supplied |tapArea|.
324 virtual WebHitTestResult hitTestResultForTap(const WebPoint& tapPoint,
325 const WebSize& tapArea) = 0;
326
322 // Copy to the clipboard the image located at a particular point in the 327 // Copy to the clipboard the image located at a particular point in the
323 // WebView (if there is such an image) 328 // WebView (if there is such an image)
324 virtual void copyImageAt(const WebPoint&) = 0; 329 virtual void copyImageAt(const WebPoint&) = 0;
325 330
326 // Save as the image located at a particular point in the 331 // Save as the image located at a particular point in the
327 // WebView (if there is such an image) 332 // WebView (if there is such an image)
328 virtual void saveImageAt(const WebPoint&) = 0; 333 virtual void saveImageAt(const WebPoint&) = 0;
329 334
330 // Notifies the WebView that a drag has terminated. 335 // Notifies the WebView that a drag has terminated.
331 virtual void dragSourceEndedAt( 336 virtual void dragSourceEndedAt(
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 493
489 // Testing functionality for TestRunner --------------------------------- 494 // Testing functionality for TestRunner ---------------------------------
490 495
491 protected: 496 protected:
492 ~WebView() {} 497 ~WebView() {}
493 }; 498 };
494 499
495 } // namespace blink 500 } // namespace blink
496 501
497 #endif 502 #endif
OLDNEW
« 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