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

Side by Side Diff: third_party/WebKit/Source/bindings/templates/cpp_interface.cpp.tmpl

Issue 2458913003: Add first sketch of the webmodules code generator. (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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 {% filter format_blink_cpp_source_code %}
2
3 {% include 'copyright_block.txt' %}
Yuki 2016/11/01 12:58:54 copyright_block.txt includes // clang-format off,
dglazkov 2016/11/04 21:03:07 Done.
4
5 #include "Cpp{{class_name}}.h"
6
7 // TODO(dglazkov): Implement generating includes.
8 {% for filename in cpp_includes %}
9 #include "{{filename}}"
10 {% endfor %}
11
12 namespace blink {
13 namespace api {
14
15 // TODO(dglazkov): Implement constant generation
16 {% for constant in constants %}
17 // {{ constant.name }}
18 {% endfor %}
19
20 // TODO(dglazkov): Implement constructor generation
21
22 // TODO(dglazkov): Implement attribute getter/setter generation
23 {% for attribute in attributes %}
24 // {{attribute.name}}
25 {% endfor %}
26
27 // TODO(dglazkov): Implement method generation
28 {% for method in methods %}
29 // {{method.cpp_type}} Cpp{{class_name}}::{{method.name}}
30 {% endfor %}
31
32 }
Yuki 2016/11/01 12:58:54 nit: } // namespace api
dglazkov 2016/11/04 21:03:07 Done.
33 }
34
35 {% endfilter %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698