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

Unified Diff: third_party/WebKit/public/web/WebNode.h

Issue 1430673002: Headless demo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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 | « third_party/WebKit/Source/web/WebNode.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « third_party/WebKit/Source/web/WebNode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698