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

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

Issue 11065042: Introduce ListLikeIDLTypeInfo as a replacement for nativified_classes table. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 8 years, 2 months 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 | « lib/html/scripts/generator.py ('k') | 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 'DOMWindow': 'LocalWindow', 9 'DOMWindow': 'LocalWindow',
10 'History': 'LocalHistory', 10 'History': 'LocalHistory',
11 'Location': 'LocalLocation', 11 'Location': 'LocalLocation',
12 'WebKitAnimation': 'Animation', 12 'WebKitAnimation': 'Animation',
13 'WebKitAnimationEvent': 'AnimationEvent', 13 'WebKitAnimationEvent': 'AnimationEvent',
14 'WebKitAnimationList': 'AnimationList',
15 'WebKitBlobBuilder': 'BlobBuilder', 14 'WebKitBlobBuilder': 'BlobBuilder',
16 'WebKitCSSKeyframeRule': 'CSSKeyframeRule', 15 'WebKitCSSKeyframeRule': 'CSSKeyframeRule',
17 'WebKitCSSKeyframesRule': 'CSSKeyframesRule', 16 'WebKitCSSKeyframesRule': 'CSSKeyframesRule',
18 'WebKitCSSMatrix': 'CSSMatrix', 17 'WebKitCSSMatrix': 'CSSMatrix',
19 'WebKitCSSTransformValue': 'CSSTransformValue', 18 'WebKitCSSTransformValue': 'CSSTransformValue',
20 'WebKitFlags': 'Flags', 19 'WebKitFlags': 'Flags',
21 'WebKitLoseContext': 'LoseContext', 20 'WebKitLoseContext': 'LoseContext',
22 'WebKitPoint': 'Point', 21 'WebKitPoint': 'Point',
23 'WebKitTransitionEvent': 'TransitionEvent', 22 'WebKitTransitionEvent': 'TransitionEvent',
24 'XMLHttpRequest': 'HttpRequest', 23 'XMLHttpRequest': 'HttpRequest',
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 306
308 def _FindMatch(self, interface, member, member_prefix, candidates): 307 def _FindMatch(self, interface, member, member_prefix, candidates):
309 for interface in self._database.Hierarchy(interface): 308 for interface in self._database.Hierarchy(interface):
310 html_interface_name = self.RenameInterface(interface) 309 html_interface_name = self.RenameInterface(interface)
311 member_name = html_interface_name + '.' + member 310 member_name = html_interface_name + '.' + member
312 if member_name in candidates: 311 if member_name in candidates:
313 return member_name 312 return member_name
314 member_name = html_interface_name + '.' + member_prefix + member 313 member_name = html_interface_name + '.' + member_prefix + member
315 if member_name in candidates: 314 if member_name in candidates:
316 return member_name 315 return member_name
OLDNEW
« no previous file with comments | « lib/html/scripts/generator.py ('k') | lib/html/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698