diff options
| author | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-07 11:22:47 +0100 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-07 11:22:47 +0100 |
| commit | cfd86b747d32ac22246a1aa908eaa720c63a88c1 (patch) | |
| tree | 24d68c6f61c464ecba1e05670b80390ea3b0e50c /Source/WebKit/chromium/public/WebHitTestResult.h | |
| parent | 69d7c744c9de19d152dbe2d8e46eb7dfd4511d1a (diff) | |
| download | qtwebkit-cfd86b747d32ac22246a1aa908eaa720c63a88c1.tar.gz | |
Imported WebKit commit 20271caf2e2c016d5cef40184cddeefeac4f1876 (http://svn.webkit.org/repository/webkit/trunk@133733)
New snapshot that contains all previous fixes as well as build fix for latest QtMultimedia API changes.
Diffstat (limited to 'Source/WebKit/chromium/public/WebHitTestResult.h')
| -rw-r--r-- | Source/WebKit/chromium/public/WebHitTestResult.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/WebKit/chromium/public/WebHitTestResult.h b/Source/WebKit/chromium/public/WebHitTestResult.h index 8fb9838a4..d5937e355 100644 --- a/Source/WebKit/chromium/public/WebHitTestResult.h +++ b/Source/WebKit/chromium/public/WebHitTestResult.h @@ -34,7 +34,9 @@ class HitTestResult; namespace WebKit { +class WebElement; class WebNode; +class WebURL; struct WebPoint; // Properties of a hit test result, i.e. properties of the nodes at a given point @@ -56,6 +58,19 @@ public: // Coordinates of the point that was hit. Relative to the node. WEBKIT_EXPORT WebPoint localPoint() const; + // If a link (eg. anchor or area tag) is hit, return the element. + // Return null otheriwse. + WEBKIT_EXPORT WebElement urlElement() const; + + // If an image is hit, return the image source. Return empty otherwise. + WEBKIT_EXPORT WebURL absoluteImageURL() const; + + // If an link is hit, return the link url source. Return empty otherwise. + WEBKIT_EXPORT WebURL absoluteLinkURL() const; + + // Return whether an editable input element was hit. + WEBKIT_EXPORT bool isContentEditable() const; + #if WEBKIT_IMPLEMENTATION WebHitTestResult(const WebCore::HitTestResult&); WebHitTestResult& operator=(const WebCore::HitTestResult&); |
