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

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

Issue 2617933002: [Bindings] Expose CachedAccessorCallback (Closed)
Patch Set: Created 3 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% from 'utilities.cpp.tmpl' import declare_enum_validation_variable, v8_value_t o_local_cpp_value %} 1 {% from 'utilities.cpp.tmpl' import declare_enum_validation_variable, v8_value_t o_local_cpp_value %}
2 2
3 {##############################################################################} 3 {##############################################################################}
4 {% macro attribute_getter(attribute, world_suffix) %} 4 {% macro attribute_getter(attribute, world_suffix) %}
5 static void {{attribute.name}}AttributeGetter{{world_suffix}}( 5 static void {{attribute.name}}AttributeGetter{{world_suffix}}(
6 {%- if attribute.is_data_type_property %} 6 {%- if attribute.is_data_type_property %}
7 const v8::PropertyCallbackInfo<v8::Value>& info 7 const v8::PropertyCallbackInfo<v8::Value>& info
8 {%- else %} 8 {%- else %}
9 const v8::FunctionCallbackInfo<v8::Value>& info 9 const v8::FunctionCallbackInfo<v8::Value>& info
10 {%- endif %}) { 10 {%- endif %}) {
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 {{v8_class}}::{{attribute.name}}AttributeGetterCustom(info); 222 {{v8_class}}::{{attribute.name}}AttributeGetterCustom(info);
223 {% else %} 223 {% else %}
224 {{cpp_class_or_partial}}V8Internal::{{attribute.name}}AttributeGetter{{world_s uffix}}(info); 224 {{cpp_class_or_partial}}V8Internal::{{attribute.name}}AttributeGetter{{world_s uffix}}(info);
225 {% endif %} 225 {% endif %}
226 } 226 }
227 {% endmacro %} 227 {% endmacro %}
228 228
229 229
230 {##############################################################################} 230 {##############################################################################}
231 {% macro attribute_cache_property_callback(attribute) %} 231 {% macro attribute_cache_property_callback(attribute) %}
232 static v8::Local<v8::Private> {{attribute.name}}CachedAccessorCallback(v8::Isola te* isolate) 232 v8::Local<v8::Private> {{attribute.name}}CachedAccessorCallback(v8::Isolate* iso late)
233 { 233 {
234 return V8PrivateProperty::get{{attribute.cached_accessor_name}}(isolate).get Private(); 234 return V8PrivateProperty::get{{attribute.cached_accessor_name}}(isolate).get Private();
235 } 235 }
236 {% endmacro %} 236 {% endmacro %}
237 237
238 238
239 {##############################################################################} 239 {##############################################################################}
240 {% macro constructor_getter_callback(attribute, world_suffix) %} 240 {% macro constructor_getter_callback(attribute, world_suffix) %}
241 void {{attribute.name}}ConstructorGetterCallback{{world_suffix}}(v8::Local<v8::N ame> property, const v8::PropertyCallbackInfo<v8::Value>& info) { 241 void {{attribute.name}}ConstructorGetterCallback{{world_suffix}}(v8::Local<v8::N ame> property, const v8::PropertyCallbackInfo<v8::Value>& info) {
242 {% if attribute.deprecate_as %} 242 {% if attribute.deprecate_as %}
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 setter_callback_for_main_world, 467 setter_callback_for_main_world,
468 cached_accessor_callback, 468 cached_accessor_callback,
469 wrapper_type_info, 469 wrapper_type_info,
470 access_control, 470 access_control,
471 property_attribute, 471 property_attribute,
472 property_location(attribute), 472 property_location(attribute),
473 holder_check, 473 holder_check,
474 ] %} 474 ] %}
475 {{'{'}}{{attribute_configuration_list | join(', ')}}{{'}'}} 475 {{'{'}}{{attribute_configuration_list | join(', ')}}{{'}'}}
476 {%- endmacro %} 476 {%- endmacro %}
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698