Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl |
| diff --git a/third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9adbe86274f9a628cf25ac54432c634a47c47aba |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl |
| @@ -0,0 +1,36 @@ |
| +{% filter format_blink_cpp_source_code %} |
| + |
| +{% include 'copyright_block.txt' %} |
| +// clang-format on |
| + |
| +#include "Web{{class_name}}.h" |
| + |
| +// TODO(dglazkov): Implement generating includes. |
| +{% for filename in cpp_includes %} |
| +#include "{{filename}}" |
| +{% endfor %} |
| + |
| +namespace blink { |
| +namespace api { |
| + |
| +// TODO(dglazkov): Implement constant generation |
| +{% for constant in constants %} |
| +// {{ constant.name }} |
| +{% endfor %} |
| + |
| +// TODO(dglazkov): Implement constructor generation |
| + |
| +// TODO(dglazkov): Implement attribute getter/setter generation |
| +{% for attribute in attributes %} |
| +// {{attribute.name}} |
| +{% endfor %} |
| + |
| +// TODO(dglazkov): Implement method generation |
| +{% for method in methods %} |
| +// {{method.cpp_type}} Cpp{{class_name}}::{{method.name}} |
| +{% endfor %} |
| + |
| +} // namespace api |
| +} |
|
Yuki
2016/11/07 02:55:53
nit: } // namespace blink
|
| + |
| +{% endfilter %} |