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

Side by Side Diff: third_party/WebKit/Source/bindings/templates/utilities.cpp.tmpl

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: More fixes - things build fine at this point. Created 3 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
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 25 matching lines...) Expand all
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 %}
41 41
42 42
43 {% macro property_location(member) %} 43 {% macro property_location(member) %}
44 {% set property_location_list = [] %} 44 {% set property_location_list = [] %}
45 {% if member.on_instance %} 45 {% if member.on_instance %}
46 {% set property_location_list = property_location_list + ['V8DOMConfiguration::O nInstance'] %} 46 {% set property_location_list = property_location_list + ['V8DOMConfiguration::k OnInstance'] %}
47 {% endif %} 47 {% endif %}
48 {% if member.on_prototype %} 48 {% if member.on_prototype %}
49 {% set property_location_list = property_location_list + ['V8DOMConfiguration::O nPrototype'] %} 49 {% set property_location_list = property_location_list + ['V8DOMConfiguration::k OnPrototype'] %}
50 {% endif %} 50 {% endif %}
51 {% if member.on_interface %} 51 {% if member.on_interface %}
52 {% set property_location_list = property_location_list + ['V8DOMConfiguration::O nInterface'] %} 52 {% set property_location_list = property_location_list + ['V8DOMConfiguration::k OnInterface'] %}
53 {% endif %} 53 {% endif %}
54 {{property_location_list | join(' | ')}} 54 {{property_location_list | join(' | ')}}
55 {%- endmacro %} 55 {%- endmacro %}
56 56
57 57
58 {% macro check_origin_trial(member, isolate="info.GetIsolate()") -%} 58 {% macro check_origin_trial(member, isolate="info.GetIsolate()") -%}
59 ExecutionContext* executionContext = currentExecutionContext({{isolate}}); 59 ExecutionContext* executionContext = CurrentExecutionContext({{isolate}});
60 String errorMessage; 60 String errorMessage;
61 if (!{{member.origin_trial_enabled_function}}(executionContext, errorMessage)) { 61 if (!{{member.origin_trial_enabled_function}}(executionContext, errorMessage)) {
62 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 62 V8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
63 if (!errorMessage.isEmpty()) { 63 if (!errorMessage.IsEmpty()) {
64 executionContext->addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); 64 executionContext->AddConsoleMessage(ConsoleMessage::Create(kJSMessageSource, kErrorMessageLevel, errorMessage));
65 } 65 }
66 return; 66 return;
67 } 67 }
68 {% endmacro %} 68 {% endmacro %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698