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

Unified Diff: third_party/WebKit/fake_gen/web/api/node.h

Issue 2591803002: NOT FOR LANDING: Thread the needle through all webmodules.
Patch Set: AddEventListener sketched out. Created 3 years, 10 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/fake_gen/web/api/event_target.cc ('k') | third_party/WebKit/fake_gen/web/api/node.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/fake_gen/web/api/node.h
diff --git a/third_party/WebKit/fake_gen/web/api/node.h b/third_party/WebKit/fake_gen/web/api/node.h
new file mode 100644
index 0000000000000000000000000000000000000000..b8f81ce6476332ff4b48667815d0ab24b076b823
--- /dev/null
+++ b/third_party/WebKit/fake_gen/web/api/node.h
@@ -0,0 +1,62 @@
+// Copyright 2014 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.
+
+// This file has been auto-generated by code_generator_web_module.py.
+// DO NOT MODIFY!
+
+// This file has been generated from the Jinja2 template in
+// third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl
+
+// clang-format off
+
+#ifndef WEB_API_NODE_H
+#define WEB_API_NODE_H
+
+#include "bindings/core/v8/NodeOrString.h"
+#include "core/dom/ChildNode.h"
+#include "web/api/event_target.h"
+
+namespace blink {
+class Element;
+class Node;
+}
+
+namespace web {
+
+class Element;
+
+class Node : public EventTarget {
+ public:
+ virtual ~Node() = default;
+
+ static Node* Create(blink::Node* node);
+
+ // readonly attribute DOMString nodeName;
+ String GetNodeName() const;
+
+ // readonly attribute Element? parentElement;
+ Element* GetParentElement() const;
+
+ // void before((Node or DOMString) ... nodes);
+ template<typename... Args>
+ void Before(Args... args) {
+ blink::NodeOrString array[] = { CreateNodeOrString(args)... };
+ blink::HeapVector<blink::NodeOrString> vector(sizeof...(args));
+ for (auto item : array)
+ vector.push_back(item);
+ blink::ChildNode::before(*node(), vector, ASSERT_NO_EXCEPTION);
+ }
+
+ protected:
+ explicit Node(blink::Node* node);
+ blink::Node* node() const;
+
+ private:
+ blink::NodeOrString CreateNodeOrString(String) const;
+ blink::NodeOrString CreateNodeOrString(Node*) const;
+};
+
+} // namespace web
+
+#endif // WEB_API_NODE_H
« no previous file with comments | « third_party/WebKit/fake_gen/web/api/event_target.cc ('k') | third_party/WebKit/fake_gen/web/api/node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698