Index: tools/dom/scripts/systemnative.py |
diff --git a/tools/dom/scripts/systemnative.py b/tools/dom/scripts/systemnative.py |
index 698205b72670aaa69324d59799f1cffd4ec3ab7a..34a46c9f68740b443a74b22c64725ebd4c131b25 100644 |
--- a/tools/dom/scripts/systemnative.py |
+++ b/tools/dom/scripts/systemnative.py |
@@ -35,7 +35,7 @@ class DartiumBackend(HtmlDartGenerator): |
return {} |
def GenerateCallback(self, info): |
- if IsPureInterface(self._interface.id): |
+ if IsPureInterface(self._interface.id) or IsCustomType(self._interface.id): |
return |
cpp_impl_includes = set() |
@@ -115,7 +115,7 @@ class DartiumBackend(HtmlDartGenerator): |
def StartInterface(self, members_emitter): |
# Create emitters for c++ implementation. |
- if not IsPureInterface(self._interface.id): |
+ if not IsPureInterface(self._interface.id) and not IsCustomType(self._interface.id): |
self._cpp_header_emitter = self._cpp_library_emitter.CreateHeaderEmitter( |
self._interface.id, |
self._renamer.GetLibraryName(self._interface)) |