| 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 "{{class_name}}.h" | 5 #include "{{class_name.snake_case}}.h" |
| 6 | 6 |
| 7 // TODO(dglazkov): Implement generating includes. | 7 // TODO(dglazkov): Implement generating includes. |
| 8 {% for filename in cpp_includes %} | 8 {% for filename in cpp_includes %} |
| 9 #include "{{filename}}.h" | 9 #include "{{filename}}.h" |
| 10 {% endfor %} | 10 {% endfor %} |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 namespace api { | 13 namespace api { |
| 14 | 14 |
| 15 // TODO(dglazkov): Implement constant generation | 15 // TODO(dglazkov): Implement constant generation |
| 16 {% for constant in constants %} | 16 {% for constant in constants %} |
| 17 // {{ constant.name }} | 17 // {{ constant.name }} |
| 18 {% endfor %} | 18 {% endfor %} |
| 19 | 19 |
| 20 // TODO(dglazkov): Implement constructor generation | 20 // TODO(dglazkov): Implement constructor generation |
| 21 | 21 |
| 22 // TODO(dglazkov): Implement attribute getter/setter generation | 22 // TODO(dglazkov): Implement attribute getter/setter generation |
| 23 {% for attribute in attributes %} | 23 {% for attribute in attributes %} |
| 24 // {{attribute.return_type}} {{attribute.name}} | 24 // {{attribute.return_type}} {{attribute.name}} |
| 25 {% endfor %} | 25 {% endfor %} |
| 26 | 26 |
| 27 // TODO(dglazkov): Implement method generation | 27 // TODO(dglazkov): Implement method generation |
| 28 {% for method in methods %} | 28 {% for method in methods %} |
| 29 // {{method.return_type}} Cpp{{class_name}}::{{method.name}} | 29 // {{method.return_type}} {{class_name.upper_camel_case}}::{{method.name}} |
| 30 {% endfor %} | 30 {% endfor %} |
| 31 | 31 |
| 32 } // namespace api | 32 } // namespace api |
| 33 } // namespace blink | 33 } // namespace blink |
| 34 | 34 |
| 35 {% endfilter %} | 35 {% endfilter %} |
| OLD | NEW |