Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Unified Diff: sdk/lib/html/scripts/htmlrenamer.py

Issue 11443002: Revert "Moving AudioElement back to dart:html" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/html/scripts/idlnode.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/scripts/htmlrenamer.py
diff --git a/sdk/lib/html/scripts/htmlrenamer.py b/sdk/lib/html/scripts/htmlrenamer.py
index b7e99a4c05a6717272fa21f1c6721ab3fc1de79e..825d6d55f932d4e18d73f0416ec2342b6905c04e 100644
--- a/sdk/lib/html/scripts/htmlrenamer.py
+++ b/sdk/lib/html/scripts/htmlrenamer.py
@@ -361,15 +361,8 @@ class HtmlRenamer(object):
return member_name
def GetLibraryName(self, interface):
- if interface.module_name == 'webaudio':
- return 'web_audio'
-
- 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.
@@ -377,6 +370,14 @@ 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'
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/html/scripts/idlnode.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698