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 242020bfe48c054bc65a198b6d1548f45e00e00f..dc6a037960bf121805d5694d662548f21e4b6fc2 100644 |
--- a/third_party/WebKit/Source/bindings/scripts/v8_types.py |
+++ b/third_party/WebKit/Source/bindings/scripts/v8_types.py |
@@ -456,6 +456,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 = {} |