Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 %} | |
| OLD | NEW |