| OLD | NEW |
| 1 {% filter format_blink_cpp_source_code %} | 1 {% filter format_blink_cpp_source_code %} |
| 2 | 2 |
| 3 {% include 'copyright_block.txt' %} | 3 {% include 'copyright_block.txt' %} |
| 4 | 4 |
| 5 #include "web/api/{{class_name.snake_case}}.h" | 5 #include "web/api/{{class_name.snake_case}}.h" |
| 6 | 6 |
| 7 // TODO(dglazkov): Properly sort the includes. | 7 // TODO(dglazkov): Properly sort the includes. |
| 8 {% for filename in cpp_includes %} | 8 {% for filename in cpp_includes %} |
| 9 #include "{{filename}}" | 9 #include "{{filename}}" |
| 10 {% endfor %} | 10 {% endfor %} |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 } | 21 } |
| 22 {% endif %} | 22 {% endif %} |
| 23 | 23 |
| 24 // TODO(dglazkov): Implement constant generation | 24 // TODO(dglazkov): Implement constant generation |
| 25 {% for constant in constants %} | 25 {% for constant in constants %} |
| 26 // {{ constant.name }} | 26 // {{ constant.name }} |
| 27 {% endfor %} | 27 {% endfor %} |
| 28 | 28 |
| 29 // TODO(dglazkov): Implement attribute getter/setter generation | 29 // TODO(dglazkov): Implement attribute getter/setter generation |
| 30 {% for attribute in attributes %} | 30 {% for attribute in attributes %} |
| 31 // {{attribute.return_type}} {{attribute.name}} | 31 // {{attribute.type}} {{attribute.name}} |
| 32 {% endfor %} | 32 {% endfor %} |
| 33 | 33 |
| 34 // TODO(dglazkov): Implement method generation | 34 // TODO(dglazkov): Implement method generation |
| 35 {% for method in methods %} | 35 {% for method in methods %} |
| 36 // {{method.return_type}} {{class_name.upper_camel_case}}::{{method.name}} | 36 // {{method.type}} {{class_name.upper_camel_case}}::{{method.name}} |
| 37 {% for argument in method.arguments %} |
| 38 // {{argument.type}} {{argument.name}} |
| 39 {% endfor %} |
| 37 {% endfor %} | 40 {% endfor %} |
| 38 | 41 |
| 39 {{class_name.upper_camel_case}}::{{class_name.upper_camel_case}}(blink::{{class_
name.upper_camel_case}}* {{class_name.snake_case}}) | 42 {{class_name.upper_camel_case}}::{{class_name.upper_camel_case}}(blink::{{class_
name.upper_camel_case}}* {{class_name.snake_case}}) |
| 40 : {{class_name.snake_case}}_({{class_name.snake_case}}) {} | 43 : {{class_name.snake_case}}_({{class_name.snake_case}}) {} |
| 41 | 44 |
| 42 blink::{{class_name.upper_camel_case}}* {{class_name.upper_camel_case}}::{{class
_name.snake_case}}() const { | 45 blink::{{class_name.upper_camel_case}}* {{class_name.upper_camel_case}}::{{class
_name.snake_case}}() const { |
| 43 return {{class_name.snake_case}}_; | 46 return {{class_name.snake_case}}_; |
| 44 } | 47 } |
| 45 | 48 |
| 46 } // namespace web | 49 } // namespace web |
| 47 | 50 |
| 48 {% endfilter %} | 51 {% endfilter %} |
| OLD | NEW |