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

Unified Diff: headless/lib/web_document.cc

Issue 1430673002: Headless demo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better javascript Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/lib/web_contents_impl.cc ('k') | headless/lib/web_element.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/web_document.cc
diff --git a/headless/lib/web_document.cc b/headless/lib/web_document.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5978e5e162a2e5a36bdd2bfabf246d4aeee8b544
--- /dev/null
+++ b/headless/lib/web_document.cc
@@ -0,0 +1,22 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "headless/public/web_document.h"
+
+#include "third_party/WebKit/public/web/WebDocument.h"
+
+namespace headless {
+
+WebDocument::WebDocument(const blink::WebDocument& web_document)
+ : WebNode(web_document) {}
+
+blink::WebDocument& WebDocument::web_document() {
+ return static_cast<blink::WebDocument&>(web_node_);
+}
+
+const blink::WebDocument& WebDocument::web_document() const {
+ return static_cast<const blink::WebDocument&>(web_node_);
+}
+
+} // namespace headless
« no previous file with comments | « headless/lib/web_contents_impl.cc ('k') | headless/lib/web_element.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698