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

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

Issue 186673002: Support deprecation + use counters for constructor attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Renamings Created 6 years, 9 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/templates/attributes.cpp ('k') | Source/bindings/templates/interface_base.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 {% extends 'interface_base.cpp' %} 1 {% extends 'interface_base.cpp' %}
2 2
3 3
4 {##############################################################################} 4 {##############################################################################}
5 {% macro attribute_configuration(attribute) %} 5 {% macro attribute_configuration(attribute) %}
6 {% set getter_callback = 6 {% set getter_callback =
7 '%sV8Internal::%sAttributeGetterCallback' % 7 '%sV8Internal::%sAttributeGetterCallback' %
8 (cpp_class, attribute.name) 8 (cpp_class, attribute.name)
9 if not attribute.constructor_type else 9 if not attribute.constructor_type else
10 '{0}V8Internal::{0}ConstructorGetter'.format(cpp_class) %} 10 ('%sV8Internal::%sConstructorGetterCallback' %
11 (cpp_class, attribute.name)
12 if attribute.needs_constructor_getter_callback else
13 '{0}V8Internal::{0}ConstructorGetter'.format(cpp_class)) %}
11 {% set getter_callback_for_main_world = 14 {% set getter_callback_for_main_world =
12 '%sV8Internal::%sAttributeGetterCallbackForMainWorld' % 15 '%sV8Internal::%sAttributeGetterCallbackForMainWorld' %
13 (cpp_class, attribute.name) 16 (cpp_class, attribute.name)
14 if attribute.is_per_world_bindings else '0' %} 17 if attribute.is_per_world_bindings else '0' %}
15 {% set setter_callback = attribute.setter_callback %} 18 {% set setter_callback = attribute.setter_callback %}
16 {% set setter_callback_for_main_world = 19 {% set setter_callback_for_main_world =
17 '%sV8Internal::%sAttributeSetterCallbackForMainWorld' % 20 '%sV8Internal::%sAttributeSetterCallbackForMainWorld' %
18 (cpp_class, attribute.name) 21 (cpp_class, attribute.name)
19 if attribute.is_per_world_bindings and 22 if attribute.is_per_world_bindings and
20 (not attribute.is_read_only or attribute.put_forwards) else '0' %} 23 (not attribute.is_read_only or attribute.put_forwards) else '0' %}
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 {% endfilter %} 1320 {% endfilter %}
1318 } 1321 }
1319 1322
1320 template<> 1323 template<>
1321 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 1324 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
1322 { 1325 {
1323 return toV8(impl, creationContext, isolate); 1326 return toV8(impl, creationContext, isolate);
1324 } 1327 }
1325 1328
1326 {% endblock %} 1329 {% endblock %}
OLDNEW
« no previous file with comments | « Source/bindings/templates/attributes.cpp ('k') | Source/bindings/templates/interface_base.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698