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

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

Issue 11280103: Splitting out the Audio library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changed dart:audio to dart:web_audio Created 8 years, 1 month 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
Index: sdk/lib/html/scripts/htmlrenamer.py
diff --git a/sdk/lib/html/scripts/htmlrenamer.py b/sdk/lib/html/scripts/htmlrenamer.py
index 2f26d06702cc179b48dbffa11a58ad642506ff6d..b36d1108f45947fe0d654f1a1b8781e0887491ba 100644
--- a/sdk/lib/html/scripts/htmlrenamer.py
+++ b/sdk/lib/html/scripts/htmlrenamer.py
@@ -313,6 +313,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
@@ -355,6 +356,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):
Anton Muhin 2012/11/22 03:22:51 another option would be to analyse file path of ID
blois 2012/11/27 00:07:45 I'll investigate this as part of breaking out the
+ interface = self._database.GetInterface(idl_type_name)
+ for parent in self._database.Hierarchy(interface):
+ if parent.id == 'AudioNode':
+ return 'web_audio'
+
return 'html'
def DartifyTypeName(self, type_name):

Powered by Google App Engine
This is Rietveld 408576698