Index: third_party/WebKit/public/web/WebNode.h |
diff --git a/third_party/WebKit/public/web/WebNode.h b/third_party/WebKit/public/web/WebNode.h |
index 1010489a464e337a619ddd778d1cb68c17d488ec..faddeaa0a7d8ee1c4afa1c9e9c309e883dfd1d17 100644 |
--- a/third_party/WebKit/public/web/WebNode.h |
+++ b/third_party/WebKit/public/web/WebNode.h |
@@ -37,6 +37,13 @@ |
#include "../platform/WebVector.h" |
#include "WebExceptionCode.h" |
+struct ExportedBoundingBox { |
+ int minX; |
+ int minY; |
+ int maxX; |
+ int maxY; |
+}; |
+ |
namespace blink { |
class Node; |
@@ -76,6 +83,7 @@ public: |
bool isNull() const { return m_private.isNull(); } |
BLINK_EXPORT WebNode parentNode() const; |
+ BLINK_EXPORT WebString nodeName() const; |
BLINK_EXPORT WebString nodeValue() const; |
BLINK_EXPORT WebDocument document() const; |
BLINK_EXPORT WebNode firstChild() const; |
@@ -83,7 +91,7 @@ public: |
BLINK_EXPORT WebNode previousSibling() const; |
BLINK_EXPORT WebNode nextSibling() const; |
BLINK_EXPORT bool hasChildNodes() const; |
- BLINK_EXPORT WebNodeList childNodes(); |
+ BLINK_EXPORT WebNodeList childNodes() const; |
BLINK_EXPORT bool isLink() const; |
BLINK_EXPORT bool isDocumentNode() const; |
BLINK_EXPORT bool isCommentNode() const; |
@@ -96,6 +104,8 @@ public: |
// The argument should be lower-cased. |
BLINK_EXPORT WebElementCollection getElementsByHTMLTagName(const WebString&) const; |
+ BLINK_EXPORT ExportedBoundingBox boundingBox() const; |
Sami
2015/10/30 11:12:18
I think we can just use WebElement::boundsInViewpo
|
+ |
BLINK_EXPORT WebElement querySelector(const WebString& selector, WebExceptionCode&) const; |
BLINK_EXPORT void querySelectorAll(const WebString& selector, WebVector<WebElement>& results, WebExceptionCode&) const; |