Index: sdk/lib/html/scripts/htmlrenamer.py |
diff --git a/sdk/lib/html/scripts/htmlrenamer.py b/sdk/lib/html/scripts/htmlrenamer.py |
index 169edd46826f247a8f5fff452ed39ae5481e8739..d1da6a097dbb8785c9317a3aabe2ade2a9ec01de 100644 |
--- a/sdk/lib/html/scripts/htmlrenamer.py |
+++ b/sdk/lib/html/scripts/htmlrenamer.py |
@@ -316,6 +316,7 @@ class HtmlRenamer(object): |
return interface.id[len('HTML'):] |
return self.DartifyTypeName(interface.id) |
+ |
def RenameMember(self, interface_name, member_node, member, member_prefix=''): |
""" |
Returns the name of the member in the HTML library or None if the member is |
@@ -360,6 +361,15 @@ class HtmlRenamer(object): |
""" |
if idl_type_name.startswith('SVG'): |
return 'svg' |
+ if 'Audio' in idl_type_name: |
+ return 'web_audio' |
+ |
+ if self._database.HasInterface(idl_type_name): |
+ interface = self._database.GetInterface(idl_type_name) |
+ for parent in self._database.Hierarchy(interface): |
+ if parent.id == 'AudioNode': |
+ return 'web_audio' |
+ |
return 'html' |