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

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

Issue 2471393004: bindings: Use forward declarations for wrapper types in dictionary_impl (Closed)
Patch Set: WIP Created 4 years, 1 month 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/scripts/v8_types.py
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_types.py b/third_party/WebKit/Source/bindings/scripts/v8_types.py
index 6fcbe63720776dc8f650397d49b3e84f82d65448..6116815f6b126d1b1f449f0caa206f09011196b9 100644
--- a/third_party/WebKit/Source/bindings/scripts/v8_types.py
+++ b/third_party/WebKit/Source/bindings/scripts/v8_types.py
@@ -465,6 +465,20 @@ IdlTypeBase.impl_includes_for_type = impl_includes_for_type
IdlUnionType.impl_includes_for_type = impl_includes_for_type_union
+def impl_forward_declaration_name(idl_type):
+ element_type = idl_type.native_array_element_type
+ if element_type:
+ return element_type.impl_forward_declaration_name
+
+ if idl_type.is_wrapper_type and not idl_type.is_typed_array:
+ return idl_type.implemented_as
+ return None
+
+
+IdlTypeBase.impl_forward_declaration_name = property(
+ impl_forward_declaration_name)
+
+
component_dir = {}

Powered by Google App Engine
This is Rietveld 408576698