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

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

Issue 1550393002: Rename conversions.cpp to utilities.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | third_party/WebKit/Source/bindings/templates/conversions.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 {% from 'conversions.cpp' import declare_enum_validation_variable, v8_value_to_l ocal_cpp_value %} 1 {% from 'utilities.cpp' import declare_enum_validation_variable, v8_value_to_loc al_cpp_value %}
2 2
3 3
4 {##############################################################################} 4 {##############################################################################}
5 {% macro attribute_getter(attribute, world_suffix) %} 5 {% macro attribute_getter(attribute, world_suffix) %}
6 {% filter conditional(attribute.conditional_string) %} 6 {% filter conditional(attribute.conditional_string) %}
7 static void {{attribute.name}}AttributeGetter{{world_suffix}}( 7 static void {{attribute.name}}AttributeGetter{{world_suffix}}(
8 {%- if attribute.is_data_type_property %} 8 {%- if attribute.is_data_type_property %}
9 const v8::PropertyCallbackInfo<v8::Value>& info 9 const v8::PropertyCallbackInfo<v8::Value>& info
10 {%- else %} 10 {%- else %}
11 const v8::FunctionCallbackInfo<v8::Value>& info 11 const v8::FunctionCallbackInfo<v8::Value>& info
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 return false; 450 return false;
451 451
452 ExceptionState exceptionState(ExceptionState::SetterContext, "{{attribute.na me}}", "{{cpp_class}}", scriptState->context()->Global(), scriptState->isolate() ); 452 ExceptionState exceptionState(ExceptionState::SetterContext, "{{attribute.na me}}", "{{cpp_class}}", scriptState->context()->Global(), scriptState->isolate() );
453 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "{{cpp_class}}", "{{attribute.name}}", holder, {{attribute.private_s cript_cpp_value_to_v8_value}}); 453 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "{{cpp_class}}", "{{attribute.name}}", holder, {{attribute.private_s cript_cpp_value_to_v8_value}});
454 } 454 }
455 {% endmacro %} 455 {% endmacro %}
456 456
457 457
458 {##############################################################################} 458 {##############################################################################}
459 {% macro attribute_configuration(attribute) %} 459 {% macro attribute_configuration(attribute) %}
460 {% from 'conversions.cpp' import property_location %} 460 {% from 'utilities.cpp' import property_location %}
461 {% if attribute.constructor_type %} 461 {% if attribute.constructor_type %}
462 {% set getter_callback = 462 {% set getter_callback =
463 '%sV8Internal::%sConstructorGetterCallback' % (cpp_class_or_partial, attr ibute.name) 463 '%sV8Internal::%sConstructorGetterCallback' % (cpp_class_or_partial, attr ibute.name)
464 if attribute.needs_constructor_getter_callback else 464 if attribute.needs_constructor_getter_callback else
465 'v8ConstructorAttributeGetter' %} 465 'v8ConstructorAttributeGetter' %}
466 {% set setter_callback = 466 {% set setter_callback =
467 '%sV8Internal::%sAttributeSetterCallback' % (cpp_class_or_partial, attrib ute.name) 467 '%sV8Internal::%sAttributeSetterCallback' % (cpp_class_or_partial, attrib ute.name)
468 if attribute.needs_constructor_setter_callback else 468 if attribute.needs_constructor_setter_callback else
469 '%sV8Internal::%sConstructorAttributeSetterCallback' % (cpp_class_or_part ial, cpp_class) %} 469 '%sV8Internal::%sConstructorAttributeSetterCallback' % (cpp_class_or_part ial, cpp_class) %}
470 {% else %}{# regular attributes #} 470 {% else %}{# regular attributes #}
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 setter_callback_for_main_world, 506 setter_callback_for_main_world,
507 wrapper_type_info, 507 wrapper_type_info,
508 access_control, 508 access_control,
509 property_attribute, 509 property_attribute,
510 only_exposed_to_private_script, 510 only_exposed_to_private_script,
511 property_location(attribute), 511 property_location(attribute),
512 holder_check, 512 holder_check,
513 ] %} 513 ] %}
514 {{'{'}}{{attribute_configuration_list | join(', ')}}{{'}'}} 514 {{'{'}}{{attribute_configuration_list | join(', ')}}{{'}'}}
515 {%- endmacro %} 515 {%- endmacro %}
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/templates/conversions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698