OLD | NEW |
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 'DOMFormData': 'FormData', | |
8 'DOMWindow': 'Window', | 7 'DOMWindow': 'Window', |
9 'WebKitAnimation': 'Animation', | 8 'WebKitAnimation': 'Animation', |
10 'WebKitAnimationEvent': 'AnimationEvent', | 9 'WebKitAnimationEvent': 'AnimationEvent', |
11 'WebKitAnimationList': 'AnimationList', | 10 'WebKitAnimationList': 'AnimationList', |
12 'WebKitBlobBuilder': 'BlobBuilder', | 11 'WebKitBlobBuilder': 'BlobBuilder', |
13 'WebKitCSSKeyframeRule': 'CSSKeyframeRule', | 12 'WebKitCSSKeyframeRule': 'CSSKeyframeRule', |
14 'WebKitCSSKeyframesRule': 'CSSKeyframesRule', | 13 'WebKitCSSKeyframesRule': 'CSSKeyframesRule', |
15 'WebKitCSSMatrix': 'CSSMatrix', | 14 'WebKitCSSMatrix': 'CSSMatrix', |
16 'WebKitCSSTransformValue': 'CSSTransformValue', | 15 'WebKitCSSTransformValue': 'CSSTransformValue', |
17 'WebKitFlags': 'Flags', | 16 'WebKitFlags': 'Flags', |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 | 302 |
304 def _FindMatch(self, interface, member, member_prefix, candidates): | 303 def _FindMatch(self, interface, member, member_prefix, candidates): |
305 for interface in self._database.Hierarchy(interface): | 304 for interface in self._database.Hierarchy(interface): |
306 html_interface_name = self.RenameInterface(interface) | 305 html_interface_name = self.RenameInterface(interface) |
307 member_name = html_interface_name + '.' + member | 306 member_name = html_interface_name + '.' + member |
308 if member_name in candidates: | 307 if member_name in candidates: |
309 return member_name | 308 return member_name |
310 member_name = html_interface_name + '.' + member_prefix + member | 309 member_name = html_interface_name + '.' + member_prefix + member |
311 if member_name in candidates: | 310 if member_name in candidates: |
312 return member_name | 311 return member_name |
OLD | NEW |