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

Side by Side Diff: third_party/WebKit/fake_gen/web/api/node.h

Issue 2591803002: NOT FOR LANDING: Thread the needle through all webmodules.
Patch Set: Needle threaded all the way. Created 3 years, 12 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 unified diff | Download patch
OLDNEW
(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_NODE_H
14 #define WEB_API_NODE_H
15
16 #include "core/dom/Node.h"
17 #include "web/api/event_target.h"
18
19 namespace web {
20 namespace api {
21
22 // TODO(dglazkov): Needs a forward-declare here to avoid declaration cycles.
23 class Element;
24
25 class Node : public EventTarget {
26 public:
27 explicit Node(blink::Node* node) : EventTarget(node) {}
28 virtual ~Node() {}
29
30 String GetNodeName() const { return node()->nodeName(); }
31
32 // TODO(dglazkov): Will need .cc to compile this.
dglazkov 2016/12/22 16:36:13 This sucks. I really had hope to avoid making sour
haraken 2016/12/23 15:16:42 Personally I'm okay with generating all methods in
33 // Element* GetParentElement() const {
34 // return new Element(node()->parentElement());
35 // }
36
37 protected:
38 // toNode API is inconsistent with toElement, will probably need a whitelist
39 // of exceptions in real codegen.
40 blink::Node* node() const { return event_target()->toNode(); }
41 };
42
43 } // namespace api
44 } // namespace web
45
46 #endif // WEB_API_NODE_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698