Chromium Code Reviews| Index: Source/bindings/templates/attributes.cpp |
| diff --git a/Source/bindings/templates/attributes.cpp b/Source/bindings/templates/attributes.cpp |
| index 61b84d78d3567b74907623946f91cb21869426cc..6abdb18e52d4c4ccd221e4e85dac7d16492074ab 100644 |
| --- a/Source/bindings/templates/attributes.cpp |
| +++ b/Source/bindings/templates/attributes.cpp |
| @@ -184,6 +184,25 @@ v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info |
| {##############################################################################} |
| +{% macro attribute_constructor_callback(attribute, world_suffix) %} |
|
haraken
2014/03/05 14:34:57
attribute_constructor_callback => constructor_gett
sof
2014/03/05 14:56:45
Done.
|
| +{% filter conditional(attribute.conditional_string) %} |
| +static void {{attribute.name}}AttributeGetterCallback{{world_suffix}}(v8::Local<v8::String> property, const v8::PropertyCallbackInfo<v8::Value>& info) |
|
haraken
2014/03/05 14:34:57
AttributeGetterCallback => ConstructorGetterCallba
sof
2014/03/05 14:56:45
Done.
|
| +{ |
| + TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| + {% if attribute.deprecate_as %} |
| + UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), UseCounter::{{attribute.deprecate_as}}); |
| + {% endif %} |
| + {% if attribute.measure_as %} |
| + UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::{{attribute.measure_as}}); |
| + {% endif %} |
| + {{cpp_class}}V8Internal::{{cpp_class}}ConstructorGetter{{world_suffix}}(property, info); |
| + TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| +} |
| +{% endfilter %} |
| +{% endmacro %} |
| + |
| + |
| +{##############################################################################} |
| {% macro attribute_setter(attribute, world_suffix) %} |
| {% filter conditional(attribute.conditional_string) %} |
| static void {{attribute.name}}AttributeSetter{{world_suffix}}( |