| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // This file has been auto-generated by code_generator_web_module.py. |
| 6 // DO NOT MODIFY! |
| 7 |
| 8 // This file has been generated from the Jinja2 template in |
| 9 // third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl |
| 10 |
| 11 // clang-format off |
| 12 |
| 13 #ifndef WEB_API_ELEMENT_H |
| 14 #define WEB_API_ELEMENT_H |
| 15 |
| 16 #include "web/api/node.h" |
| 17 |
| 18 namespace blink { |
| 19 class Element; |
| 20 } |
| 21 |
| 22 namespace web { |
| 23 |
| 24 class Element : public Node { |
| 25 public: |
| 26 virtual ~Element() = default; |
| 27 |
| 28 static Element* Create(blink::Element* element); |
| 29 |
| 30 // readonly attribute DOMString localName; |
| 31 String GetLocalName() const; |
| 32 |
| 33 // attribute DOMString id; |
| 34 String GetId() const; |
| 35 void SetId(AtomicString id); |
| 36 |
| 37 // ParentNode -> readonly attribute Element? firstElementChild; |
| 38 Element* GetFirstElementChild() const; |
| 39 |
| 40 protected: |
| 41 blink::Element* element() const; |
| 42 explicit Element(blink::Element* element); |
| 43 }; |
| 44 |
| 45 } // namespace web |
| 46 |
| 47 #endif // WEB_API_ELEMENT_H |
| OLD | NEW |