| Index: third_party/WebKit/fake_gen/web/api/element.cc
|
| diff --git a/third_party/WebKit/fake_gen/web/api/element.cc b/third_party/WebKit/fake_gen/web/api/element.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e1940b7333936953e715bce2855a0b36b1bf39c6
|
| --- /dev/null
|
| +++ b/third_party/WebKit/fake_gen/web/api/element.cc
|
| @@ -0,0 +1,46 @@
|
| +// 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/element.h"
|
| +
|
| +#include "core/dom/Element.h"
|
| +#include "core/dom/ParentNode.h"
|
| +
|
| +namespace web {
|
| +
|
| +Element::Element(blink::Element* element) : Node(element) {}
|
| +
|
| +Element* Element::Create(blink::Element* element) {
|
| + return element ? new Element(element) : nullptr;
|
| +}
|
| +
|
| +String Element::GetLocalName() const {
|
| + return element()->localName();
|
| +}
|
| +
|
| +String Element::GetId() const {
|
| + return element()->getIdAttribute();
|
| +}
|
| +
|
| +void Element::SetId(AtomicString id) {
|
| + element()->setIdAttribute(id);
|
| +}
|
| +
|
| +Element* Element::GetFirstElementChild() const {
|
| + return Element::Create(blink::ParentNode::firstElementChild(*element()));
|
| +}
|
| +
|
| +blink::Element* Element::element() const {
|
| + return blink::toElement(node());
|
| +}
|
| +
|
| +} // namespace web
|
|
|