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

Side by Side Diff: sdk/lib/html/scripts/htmlrenamer.py

Issue 11398002: Splitting SVG types out of dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minifying. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/scripts/dartdomgenerator.py ('k') | sdk/lib/html/scripts/systemhtml.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 html_interface_renames = { 6 html_interface_renames = {
7 'DOMCoreException': 'DOMException', 7 'DOMCoreException': 'DOMException',
8 'DOMFormData': 'FormData', 8 'DOMFormData': 'FormData',
9 'DOMURL': 'Url', 9 'DOMURL': 'Url',
10 'DOMWindow': 'LocalWindow', 10 'DOMWindow': 'LocalWindow',
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 302
303 def _FindMatch(self, interface, member, member_prefix, candidates): 303 def _FindMatch(self, interface, member, member_prefix, candidates):
304 for interface in self._database.Hierarchy(interface): 304 for interface in self._database.Hierarchy(interface):
305 html_interface_name = self.RenameInterface(interface) 305 html_interface_name = self.RenameInterface(interface)
306 member_name = html_interface_name + '.' + member 306 member_name = html_interface_name + '.' + member
307 if member_name in candidates: 307 if member_name in candidates:
308 return member_name 308 return member_name
309 member_name = html_interface_name + '.' + member_prefix + member 309 member_name = html_interface_name + '.' + member_prefix + member
310 if member_name in candidates: 310 if member_name in candidates:
311 return member_name 311 return member_name
312
313 def GetLibraryName(self, interface):
314 if interface.id.startswith('SVG'):
315 return 'svg'
316 return 'html'
OLDNEW
« no previous file with comments | « sdk/lib/html/scripts/dartdomgenerator.py ('k') | sdk/lib/html/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698