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

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

Issue 142593004: Revert of IDL compiler: sync Python to r165262 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/scripts/unstable/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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 {% if attribute.is_expose_js_accessors %} 196 {% if attribute.is_expose_js_accessors %}
197 v8::Local<v8::Value> jsValue = info[0]; 197 v8::Local<v8::Value> jsValue = info[0];
198 {% endif %} 198 {% endif %}
199 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 199 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
200 {% if attribute.deprecate_as %} 200 {% if attribute.deprecate_as %}
201 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::{{attribu te.deprecate_as}}); 201 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::{{attribu te.deprecate_as}});
202 {% endif %} 202 {% endif %}
203 {% if attribute.measure_as %} 203 {% if attribute.measure_as %}
204 UseCounter::count(activeExecutionContext(), UseCounter::{{attribute.measure_ as}}); 204 UseCounter::count(activeExecutionContext(), UseCounter::{{attribute.measure_ as}});
205 {% endif %} 205 {% endif %}
206 {% if attribute.idl_type == 'Node' %}
207 if (V8DOMWrapper::isWrapperOfType(jsValue, &V8Attr::wrapperTypeInfo))
208 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa rameter);
209 {% endif %}
210 {% if world_suffix in attribute.activity_logging_world_list_for_setter %} 206 {% if world_suffix in attribute.activity_logging_world_list_for_setter %}
211 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 207 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
212 if (contextData && contextData->activityLogger()) { 208 if (contextData && contextData->activityLogger()) {
213 v8::Handle<v8::Value> loggerArg[] = { jsValue }; 209 v8::Handle<v8::Value> loggerArg[] = { jsValue };
214 contextData->activityLogger()->log("{{interface_name}}.{{attribute.name} }", 1, &loggerArg[0], "Setter"); 210 contextData->activityLogger()->log("{{interface_name}}.{{attribute.name} }", 1, &loggerArg[0], "Setter");
215 } 211 }
216 {% endif %} 212 {% endif %}
217 {% if attribute.is_reflect %} 213 {% if attribute.is_reflect %}
218 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 214 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
219 {% endif %} 215 {% endif %}
220 {% if attribute.has_custom_setter %} 216 {% if attribute.has_custom_setter %}
221 {{v8_class}}::{{attribute.name}}AttributeSetterCustom(jsValue, info); 217 {{v8_class}}::{{attribute.name}}AttributeSetterCustom(jsValue, info);
222 {% else %} 218 {% else %}
223 {{cpp_class}}V8Internal::{{attribute.name}}AttributeSetter{{world_suffix}}(j sValue, info); 219 {{cpp_class}}V8Internal::{{attribute.name}}AttributeSetter{{world_suffix}}(j sValue, info);
224 {% endif %} 220 {% endif %}
225 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 221 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
226 } 222 }
227 {% endfilter %} 223 {% endfilter %}
228 {% endmacro %} 224 {% endmacro %}
OLDNEW
« no previous file with comments | « Source/bindings/scripts/unstable/v8_methods.py ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698