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

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

Issue 503043003: Rename CustomElementCallbackDispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: TBR added Created 6 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
« no previous file with comments | « Source/bindings/scripts/v8_methods.py ('k') | Source/bindings/templates/methods.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 {##############################################################################} 1 {##############################################################################}
2 {% macro attribute_getter(attribute, world_suffix) %} 2 {% macro attribute_getter(attribute, world_suffix) %}
3 {% filter conditional(attribute.conditional_string) %} 3 {% filter conditional(attribute.conditional_string) %}
4 static void {{attribute.name}}AttributeGetter{{world_suffix}}( 4 static void {{attribute.name}}AttributeGetter{{world_suffix}}(
5 {%- if attribute.is_expose_js_accessors %} 5 {%- if attribute.is_expose_js_accessors %}
6 const v8::FunctionCallbackInfo<v8::Value>& info 6 const v8::FunctionCallbackInfo<v8::Value>& info
7 {%- else %} 7 {%- else %}
8 const v8::PropertyCallbackInfo<v8::Value>& info 8 const v8::PropertyCallbackInfo<v8::Value>& info
9 {%- endif %}) 9 {%- endif %})
10 { 10 {
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 http://www.w3.org/TR/WebIDL/#idl-enums #} 258 http://www.w3.org/TR/WebIDL/#idl-enums #}
259 String string = cppValue; 259 String string = cppValue;
260 if (!({{attribute.enum_validation_expression}})) 260 if (!({{attribute.enum_validation_expression}}))
261 return; 261 return;
262 {% endif %} 262 {% endif %}
263 {# Pre-set context #} 263 {# Pre-set context #}
264 {% if attribute.is_custom_element_callbacks or 264 {% if attribute.is_custom_element_callbacks or
265 (attribute.is_reflect and 265 (attribute.is_reflect and
266 not(attribute.idl_type == 'DOMString' and is_node)) %} 266 not(attribute.idl_type == 'DOMString' and is_node)) %}
267 {# Skip on compact node DOMString getters #} 267 {# Skip on compact node DOMString getters #}
268 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 268 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
269 {% endif %} 269 {% endif %}
270 {% if attribute.is_call_with_execution_context or 270 {% if attribute.is_call_with_execution_context or
271 attribute.is_setter_call_with_execution_context %} 271 attribute.is_setter_call_with_execution_context %}
272 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 272 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
273 {% endif %} 273 {% endif %}
274 {# Set #} 274 {# Set #}
275 {{attribute.cpp_setter}}; 275 {{attribute.cpp_setter}};
276 {# Post-set #} 276 {# Post-set #}
277 {% if attribute.is_setter_raises_exception %} 277 {% if attribute.is_setter_raises_exception %}
278 exceptionState.throwIfNeeded(); 278 exceptionState.throwIfNeeded();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 {{attribute.cpp_type}} {{attribute.cpp_value}}({{attribute.cpp_value_ori ginal}}); 319 {{attribute.cpp_type}} {{attribute.cpp_value}}({{attribute.cpp_value_ori ginal}});
320 {% endif %} 320 {% endif %}
321 v8::Handle<v8::Value> originalValue = {{attribute.cpp_value_to_v8_value} }; 321 v8::Handle<v8::Value> originalValue = {{attribute.cpp_value_to_v8_value} };
322 contextData->activityLogger()->logSetter("{{interface_name}}.{{attribute .name}}", v8Value, originalValue); 322 contextData->activityLogger()->logSetter("{{interface_name}}.{{attribute .name}}", v8Value, originalValue);
323 {% else %} 323 {% else %}
324 contextData->activityLogger()->logSetter("{{interface_name}}.{{attribute .name}}", v8Value); 324 contextData->activityLogger()->logSetter("{{interface_name}}.{{attribute .name}}", v8Value);
325 {% endif %} 325 {% endif %}
326 } 326 }
327 {% endif %} 327 {% endif %}
328 {% if attribute.is_custom_element_callbacks or attribute.is_reflect %} 328 {% if attribute.is_custom_element_callbacks or attribute.is_reflect %}
329 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 329 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
330 {% endif %} 330 {% endif %}
331 {% if attribute.has_custom_setter %} 331 {% if attribute.has_custom_setter %}
332 {{v8_class}}::{{attribute.name}}AttributeSetterCustom(v8Value, info); 332 {{v8_class}}::{{attribute.name}}AttributeSetterCustom(v8Value, info);
333 {% else %} 333 {% else %}
334 {{cpp_class}}V8Internal::{{attribute.name}}AttributeSetter{{world_suffix}}(v 8Value, info); 334 {{cpp_class}}V8Internal::{{attribute.name}}AttributeSetter{{world_suffix}}(v 8Value, info);
335 {% endif %} 335 {% endif %}
336 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 336 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
337 } 337 }
338 {% endfilter %} 338 {% endfilter %}
339 {% endmacro %} 339 {% endmacro %}
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 access_control, 451 access_control,
452 property_attribute, 452 property_attribute,
453 only_exposed_to_private_script, 453 only_exposed_to_private_script,
454 ] %} 454 ] %}
455 {% if not attribute.is_expose_js_accessors %} 455 {% if not attribute.is_expose_js_accessors %}
456 {% set attribute_configuration_list = attribute_configuration_list 456 {% set attribute_configuration_list = attribute_configuration_list
457 + [on_prototype] %} 457 + [on_prototype] %}
458 {% endif %} 458 {% endif %}
459 {{'{'}}{{attribute_configuration_list | join(', ')}}{{'}'}} 459 {{'{'}}{{attribute_configuration_list | join(', ')}}{{'}'}}
460 {%- endmacro %} 460 {%- endmacro %}
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_methods.py ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698