Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / bindings / templates / dictionary_impl.cpp
blob2ef799625cf3bb8252f8682ac6587aaab8cbb875
1 {% include 'copyright_block.txt' %}
2 #include "config.h"
3 #include "{{cpp_class}}.h"
5 {% for filename in cpp_includes %}
6 #include "{{filename}}"
7 {% endfor %}
9 namespace blink {
11 {# Constructor #}
12 {{cpp_class}}::{{cpp_class}}()
14 {% for member in members if member.cpp_default_value %}
15 {{member.setter_name}}({{member.cpp_default_value}});
16 {% endfor %}
19 DEFINE_TRACE({{cpp_class}})
21 {% for member in members if member.is_traceable %}
22 visitor->trace(m_{{member.cpp_name}});
23 {% endfor %}
24 {% if parent_cpp_class %}
25 {{parent_cpp_class}}::trace(visitor);
26 {% endif %}
29 } // namespace blink