| Index: third_party/WebKit/fake_gen/web/api/node.cc
|
| diff --git a/third_party/WebKit/fake_gen/web/api/node.cc b/third_party/WebKit/fake_gen/web/api/node.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..711778e0d3334e682001e88670719e0eaecf046a
|
| --- /dev/null
|
| +++ b/third_party/WebKit/fake_gen/web/api/node.cc
|
| @@ -0,0 +1,49 @@
|
| +// 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
|
| +
|
| +#include "web/api/node.h"
|
| +
|
| +#include "core/dom/ChildNode.h"
|
| +#include "core/dom/Element.h"
|
| +#include "core/dom/Node.h"
|
| +#include "web/api/element.h"
|
| +
|
| +namespace web {
|
| +
|
| +Node::Node(blink::Node* node) : EventTarget(node) {}
|
| +
|
| +Node* Node::Create(blink::Node* node) {
|
| + return node ? new Node(node) : nullptr;
|
| +}
|
| +
|
| +String Node::GetNodeName() const {
|
| + return node()->nodeName();
|
| +}
|
| +
|
| +Element* Node::GetParentElement() const {
|
| + return Element::Create(node()->parentElement());
|
| +}
|
| +
|
| +blink::Node* Node::node() const {
|
| + // toNode API is inconsistent with toElement, will probably need a whitelist
|
| + // of exceptions in real codegen.
|
| + return event_target()->toNode();
|
| +}
|
| +
|
| +blink::NodeOrString Node::CreateNodeOrString(String string) const {
|
| + return blink::NodeOrString::fromString(string);
|
| +}
|
| +blink::NodeOrString Node::CreateNodeOrString(Node* node) const {
|
| + return blink::NodeOrString::fromNode(node->node());
|
| +}
|
| +
|
| +} // namespace web
|
|
|