| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef WebHitTestResult_h | 26 #ifndef WebHitTestResult_h |
| 27 #define WebHitTestResult_h | 27 #define WebHitTestResult_h |
| 28 | 28 |
| 29 #include "../platform/WebPrivatePtr.h" | 29 #include "../platform/WebPrivatePtr.h" |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 |
| 32 class HitTestResult; | 33 class HitTestResult; |
| 33 } | |
| 34 | |
| 35 namespace blink { | |
| 36 | |
| 37 class WebElement; | 34 class WebElement; |
| 38 class WebHitTestResultPrivate; | 35 class WebHitTestResultPrivate; |
| 39 class WebNode; | 36 class WebNode; |
| 40 class WebURL; | 37 class WebURL; |
| 41 struct WebPoint; | 38 struct WebPoint; |
| 42 | 39 |
| 43 // Properties of a hit test result, i.e. properties of the nodes at a given poin
t | 40 // Properties of a hit test result, i.e. properties of the nodes at a given poin
t |
| 44 // (the hit point) on the page. Both urls may be populated at the same time, for | 41 // (the hit point) on the page. Both urls may be populated at the same time, for |
| 45 // example in the instance of an <img> inside an <a>. | 42 // example in the instance of an <img> inside an <a>. |
| 46 class WebHitTestResult { | 43 class WebHitTestResult { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 66 // If an image is hit, return the image source. Return empty otherwise. | 63 // If an image is hit, return the image source. Return empty otherwise. |
| 67 BLINK_EXPORT WebURL absoluteImageURL() const; | 64 BLINK_EXPORT WebURL absoluteImageURL() const; |
| 68 | 65 |
| 69 // If an link is hit, return the link url source. Return empty otherwise. | 66 // If an link is hit, return the link url source. Return empty otherwise. |
| 70 BLINK_EXPORT WebURL absoluteLinkURL() const; | 67 BLINK_EXPORT WebURL absoluteLinkURL() const; |
| 71 | 68 |
| 72 // Return whether an editable input element was hit. | 69 // Return whether an editable input element was hit. |
| 73 BLINK_EXPORT bool isContentEditable() const; | 70 BLINK_EXPORT bool isContentEditable() const; |
| 74 | 71 |
| 75 #if BLINK_IMPLEMENTATION | 72 #if BLINK_IMPLEMENTATION |
| 76 WebHitTestResult(const blink::HitTestResult&); | 73 WebHitTestResult(const HitTestResult&); |
| 77 WebHitTestResult& operator=(const blink::HitTestResult&); | 74 WebHitTestResult& operator=(const HitTestResult&); |
| 78 #endif | 75 #endif |
| 79 | 76 |
| 80 protected: | 77 protected: |
| 81 WebPrivatePtr<WebHitTestResultPrivate> m_private; | 78 WebPrivatePtr<WebHitTestResultPrivate> m_private; |
| 82 }; | 79 }; |
| 83 | 80 |
| 84 } // namespace blink | 81 } // namespace blink |
| 85 | 82 |
| 86 #endif | 83 #endif |
| OLD | NEW |