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

Unified Diff: third_party/WebKit/Source/bindings/scripts/v8_interface.py

Issue 2717283002: [Bindings][Refactoring] Move logics of preparePrototypeAndInterfaceObject from .tmpl to .py (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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/scripts/v8_interface.py
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_interface.py b/third_party/WebKit/Source/bindings/scripts/v8_interface.py
index 04863262089804a78817898eafeefa93c7f59e6d..6485f7fc535e2815f07efc8405720de7b3899965 100644
--- a/third_party/WebKit/Source/bindings/scripts/v8_interface.py
+++ b/third_party/WebKit/Source/bindings/scripts/v8_interface.py
@@ -390,6 +390,15 @@ def interface_context(interface, interfaces):
has_conditional_attributes_on_prototype,
})
+ prepare_prototype_and_interface_object_func = None # pylint: disable=invalid-name
+ if (unscopables or has_conditional_attributes_on_prototype or
+ v8_methods.filter_conditionally_exposed(methods, interface.is_partial)):
+ prepare_prototype_and_interface_object_func = '%s::preparePrototypeAndInterfaceObject' % v8_class_name_or_partial # pylint: disable=invalid-name
+
+ context.update({
+ 'prepare_prototype_and_interface_object_func': prepare_prototype_and_interface_object_func,
+ })
+
context.update({
'legacy_caller': legacy_caller(interface.legacy_caller, interface),
'indexed_property_getter': property_getter(interface.indexed_property_getter, ['index']),
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698