Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Side by Side Diff: Source/bindings/templates/dictionary_impl.cpp

Issue 1056423002: [bindings] Include copyright block in generated code for consistency. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/bindings/templates/dictionary_impl.h ('k') | Source/bindings/templates/dictionary_v8.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 {% include 'copyright_block.txt' %}
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
6
7 #include "config.h" 2 #include "config.h"
8 #include "{{cpp_class}}.h" 3 #include "{{cpp_class}}.h"
9 4
10 {% for filename in cpp_includes %} 5 {% for filename in cpp_includes %}
11 #include "{{filename}}" 6 #include "{{filename}}"
12 {% endfor %} 7 {% endfor %}
13 8
14 namespace blink { 9 namespace blink {
15 10
16 {# Constructor #} 11 {# Constructor #}
17 {{cpp_class}}::{{cpp_class}}() 12 {{cpp_class}}::{{cpp_class}}()
18 { 13 {
19 {% for member in members if member.cpp_default_value %} 14 {% for member in members if member.cpp_default_value %}
20 {{member.setter_name}}({{member.cpp_default_value}}); 15 {{member.setter_name}}({{member.cpp_default_value}});
21 {% endfor %} 16 {% endfor %}
22 } 17 }
23 18
24 DEFINE_TRACE({{cpp_class}}) 19 DEFINE_TRACE({{cpp_class}})
25 { 20 {
26 {% for member in members if member.is_traceable %} 21 {% for member in members if member.is_traceable %}
27 visitor->trace(m_{{member.cpp_name}}); 22 visitor->trace(m_{{member.cpp_name}});
28 {% endfor %} 23 {% endfor %}
29 {% if parent_cpp_class %} 24 {% if parent_cpp_class %}
30 {{parent_cpp_class}}::trace(visitor); 25 {{parent_cpp_class}}::trace(visitor);
31 {% endif %} 26 {% endif %}
32 } 27 }
33 28
34 } // namespace blink 29 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/templates/dictionary_impl.h ('k') | Source/bindings/templates/dictionary_v8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698