Index: tools/dom/scripts/generator.py |
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py |
index 74fc03e09a967dd4fda68b916c5dd09f7c16d63a..6b665116dcdc731995063b87992f321c859a6dbc 100644 |
--- a/tools/dom/scripts/generator.py |
+++ b/tools/dom/scripts/generator.py |
@@ -1306,7 +1306,10 @@ class TypeRegistry(object): |
type_name, |
TypeData(clazz='Primitive', dart_type='String', native_type='String')) |
- interface = self._database.GetInterface(type_name) |
+ if self._database.HasInterface(type_name): |
+ interface = self._database.GetInterface(type_name) |
+ else: |
+ interface = self._database.GetDictionary(type_name) |
if 'Callback' in interface.ext_attrs: |
return CallbackIDLTypeInfo(type_name, TypeData('Callback', |
self._renamer.DartifyTypeName(type_name))) |