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

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

Issue 2458913003: Add first sketch of the webmodules code generator. (Closed)
Patch Set: Implemented WebModuleAPI extended attribute. 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' %}
4 // clang-format on
5
6 #include "Web{{class_name}}.h"
7
8 // TODO(dglazkov): Implement generating includes.
9 {% for filename in cpp_includes %}
10 #include "{{filename}}"
11 {% endfor %}
12
13 namespace blink {
14 namespace api {
15
16 // TODO(dglazkov): Implement constant generation
17 {% for constant in constants %}
18 // {{ constant.name }}
19 {% endfor %}
20
21 // TODO(dglazkov): Implement constructor generation
22
23 // TODO(dglazkov): Implement attribute getter/setter generation
24 {% for attribute in attributes %}
25 // {{attribute.name}}
26 {% endfor %}
27
28 // TODO(dglazkov): Implement method generation
29 {% for method in methods %}
30 // {{method.cpp_type}} Cpp{{class_name}}::{{method.name}}
31 {% endfor %}
32
33 } // namespace api
34 }
Yuki 2016/11/07 02:55:53 nit: } // namespace blink
35
36 {% endfilter %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698