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

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

Issue 1324643005: bindings: Makes installV8FooTemplate thread-safe. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/templates/constants.cpp ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% macro v8_value_to_local_cpp_value(thing) %} 1 {% macro v8_value_to_local_cpp_value(thing) %}
2 {# This indirection is just to avoid spurious white-space lines. #} 2 {# This indirection is just to avoid spurious white-space lines. #}
3 {{generate_v8_value_to_local_cpp_value(thing) | trim}} 3 {{generate_v8_value_to_local_cpp_value(thing) | trim}}
4 {%- endmacro %} 4 {%- endmacro %}
5 5
6 6
7 {% macro generate_v8_value_to_local_cpp_value(thing) %} 7 {% macro generate_v8_value_to_local_cpp_value(thing) %}
8 {% set item = thing.v8_value_to_local_cpp_value or thing %} 8 {% set item = thing.v8_value_to_local_cpp_value or thing %}
9 {% if item.error_message %} 9 {% if item.error_message %}
10 /* {{item.error_message}} */ 10 /* {{item.error_message}} */
(...skipping 14 matching lines...) Expand all
25 {% endif %} 25 {% endif %}
26 {% if item.check_expression %} 26 {% if item.check_expression %}
27 if ({{item.check_expression}}) 27 if ({{item.check_expression}})
28 return{% if item.return_expression %} {{item.return_expression}}{% endif %}; 28 return{% if item.return_expression %} {{item.return_expression}}{% endif %};
29 {% endif %}{# item.check_expression #} 29 {% endif %}{# item.check_expression #}
30 {% endif %}{# item.error_message #} 30 {% endif %}{# item.error_message #}
31 {% endmacro %} 31 {% endmacro %}
32 32
33 33
34 {% macro declare_enum_validation_variable(enum_values) %} 34 {% macro declare_enum_validation_variable(enum_values) %}
35 static const char* validValues[] = { 35 const char* validValues[] = {
36 {% for enum_value in enum_values %} 36 {% for enum_value in enum_values %}
37 "{{enum_value}}", 37 "{{enum_value}}",
38 {% endfor %} 38 {% endfor %}
39 }; 39 };
40 {%-endmacro %} 40 {%-endmacro %}
OLDNEW
« no previous file with comments | « Source/bindings/templates/constants.cpp ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698