| 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
|
|
|