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

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

Issue 2692343005: [Bindings] Unify a template block 'prepare_prototype_and_interface_object' (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl
index 85660154b41b81ed9671fd70de0731877406b408..25e79e8fc7d6d50cbd3249c82f0ad51aa42fe4f8 100644
--- a/third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl
@@ -10,30 +10,6 @@
{##############################################################################}
-{% block prepare_prototype_and_interface_object %}
-{% from 'interface.cpp.tmpl' import install_unscopables with context %}
-{% from 'interface.cpp.tmpl' import install_conditionally_enabled_attributes_on_prototype with context %}
-{% from 'methods.cpp.tmpl' import install_conditionally_enabled_methods with context %}
-{% if has_prepare_prototype_and_interface_object %}
-void {{v8_class_or_partial}}::preparePrototypeAndInterfaceObject(v8::Local<v8::Context> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) {
- {{v8_class}}::preparePrototypeAndInterfaceObject(context, world, prototypeObject, interfaceObject, interfaceTemplate);
- v8::Isolate* isolate = context->GetIsolate();
-{% if unscopables %}
- {{install_unscopables() | indent(2)}}
-{% endif %}
-{% if has_conditional_attributes_on_prototype %}
- {{install_conditionally_enabled_attributes_on_prototype() | indent(2)}}
-{% endif %}
-{% if methods | conditionally_exposed(is_partial) %}
- {{install_conditionally_enabled_methods() | indent(2)}}
-{% endif %}
-}
-{% endif %}
-
-{% endblock %}
-
-
-{##############################################################################}
{% block partial_interface %}
void {{v8_class_or_partial}}::initialize() {
// Should be invoked from ModulesInitializer.

Powered by Google App Engine
This is Rietveld 408576698