Chromium Code Reviews| Index: sdk/lib/html/scripts/htmlrenamer.py |
| diff --git a/sdk/lib/html/scripts/htmlrenamer.py b/sdk/lib/html/scripts/htmlrenamer.py |
| index 9c43084c8a516ff39cbfbb2a5deb6e99eb3b9fb6..8115e1a8ea7f5f72b0bec01f20bcede3f31b1362 100644 |
| --- a/sdk/lib/html/scripts/htmlrenamer.py |
| +++ b/sdk/lib/html/scripts/htmlrenamer.py |
| @@ -358,8 +358,15 @@ class HtmlRenamer(object): |
| return member_name |
| def GetLibraryName(self, interface): |
| + if interface.module_name == 'webaudio': |
| + return 'web_audio' |
|
sra1
2012/12/04 20:18:48
This works so much better.
|
| + |
| + if interface.module_name == 'svg': |
| + return 'svg' |
| + |
| return self._GetLibraryName(interface.id) |
| + # TODO(blois): remove this method when all members are renamed. |
| def _GetLibraryName(self, idl_type_name): |
| """ |
| Gets the name of the library this type should live in. |
| @@ -367,14 +374,6 @@ class HtmlRenamer(object): |
| """ |
| if idl_type_name.startswith('SVG'): |
|
blois
2012/12/04 18:39:39
There are still collection cases which do not have
|
| 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' |