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

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

Issue 1085453003: IDL: Add support for [Unscopeable] on attributes and methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixes Created 5 years, 8 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
OLDNEW
1 {% extends 'interface_base.cpp' %} 1 {% extends 'interface_base.cpp' %}
2 2
3
4 {##############################################################################}
5 {% block prepare_prototype_object %}
6 {% from 'interface.cpp' import install_unscopeables with context %}
7 {% from 'methods.cpp' import install_conditionally_enabled_methods
8 with context %}
9 void {{v8_class_or_partial}}::preparePrototypeObject(v8::Isolate* isolate, v8::L ocal<v8::Object> prototypeObject)
10 {
11 {{v8_class}}::preparePrototypeObject(isolate, prototypeObject);
12 {% if unscopeables %}
13 {{install_unscopeables() | indent}}
14 {% endif %}
15 {% if conditionally_enabled_methods %}
16 {{install_conditionally_enabled_methods() | indent}}
17 {% endif %}
18 }
19
20 {% endblock %}
21
22
3 {##############################################################################} 23 {##############################################################################}
4 {% block partial_interface %} 24 {% block partial_interface %}
5 void {{v8_class_or_partial}}::initialize() 25 void {{v8_class_or_partial}}::initialize()
6 { 26 {
7 // Should be invoked from initModules. 27 // Should be invoked from initModules.
8 {{v8_class}}::updateWrapperTypeInfo( 28 {{v8_class}}::updateWrapperTypeInfo(
9 &{{v8_class_or_partial}}::install{{v8_class}}Template, 29 &{{v8_class_or_partial}}::install{{v8_class}}Template,
10 &{{v8_class_or_partial}}::installConditionallyEnabledMethods); 30 &{{v8_class_or_partial}}::preparePrototypeObject);
11 {% for method in methods %} 31 {% for method in methods %}
12 {% if method.overloads and method.overloads.has_partial_overloads %} 32 {% if method.overloads and method.overloads.has_partial_overloads %}
13 {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInte rface(&{{cpp_class_or_partial}}V8Internal::{{method.name}}Method); 33 {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInte rface(&{{cpp_class_or_partial}}V8Internal::{{method.name}}Method);
14 {% endif %} 34 {% endif %}
15 {% endfor %} 35 {% endfor %}
16 } 36 }
17 37
18 {% endblock %} 38 {% endblock %}
OLDNEW
« no previous file with comments | « Source/bindings/templates/partial_interface.h ('k') | Source/bindings/tests/idls/core/TestObject.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698