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

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

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Support runtime feature on templates Created 3 years, 6 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.tmpl' %} 1 {% extends 'interface_base.cpp.tmpl' %}
2 2
3 {##############################################################################} 3 {##############################################################################}
4 {% block partial_interface %} 4 {% block partial_interface %}
5 void {{v8_class_or_partial}}::initialize() { 5 void {{v8_class_or_partial}}::initialize() {
6 // Should be invoked from ModulesInitializer. 6 // Should be invoked from ModulesInitializer.
7 {{v8_class}}::updateWrapperTypeInfo( 7 {{v8_class}}::updateWrapperTypeInfo(
8 &{{v8_class_or_partial}}::install{{v8_class}}Template, 8 &{{v8_class_or_partial}}::install{{v8_class}}Template,
9 {% if needs_runtime_enabled_installer %} 9 {% if needs_runtime_enabled_installer %}
10 &{{v8_class_or_partial}}::installRuntimeEnabledFeatures, 10 &{{v8_class_or_partial}}::InstallRuntimeEnabledFeatures,
11 &{{v8_class_or_partial}}::InstallRuntimeEnabledFeaturesOnTemplate,
11 {% else %} 12 {% else %}
12 nullptr, 13 nullptr,
14 nullptr,
13 {% endif %} 15 {% endif %}
14 {{prepare_prototype_and_interface_object_func or 'nullptr'}}); 16 {{prepare_prototype_and_interface_object_func or 'nullptr'}});
15 {% for method in methods %} 17 {% for method in methods %}
16 {% if method.overloads and method.overloads.has_partial_overloads %} 18 {% if method.overloads and method.overloads.has_partial_overloads %}
17 {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInterf ace(&{{cpp_class_or_partial}}V8Internal::{{method.name}}Method); 19 {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInterf ace(&{{cpp_class_or_partial}}V8Internal::{{method.name}}Method);
18 {% endif %} 20 {% endif %}
19 {% endfor %} 21 {% endfor %}
20 } 22 }
21 23
22 {% endblock %} 24 {% endblock %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698