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', | 7 'DOMFormData': 'FormData', |
8 'DOMWindow': 'Window', | 8 'DOMWindow': 'Window', |
9 'WebKitAnimation': 'Animation', | 9 'WebKitAnimation': 'Animation', |
10 'WebKitAnimationEvent': 'AnimationEvent', | 10 'WebKitAnimationEvent': 'AnimationEvent', |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 # TODO(jacobr): cleanup and augment this list. | 122 # TODO(jacobr): cleanup and augment this list. |
123 _removed_html_members = set([ | 123 _removed_html_members = set([ |
124 'NodeList.item', | 124 'NodeList.item', |
125 "Attr.*", | 125 "Attr.*", |
126 # "BarProp.*", | 126 # "BarProp.*", |
127 # "BarInfo.*", | 127 # "BarInfo.*", |
128 # "Blob.webkitSlice", | 128 # "Blob.webkitSlice", |
129 # "CDATASection.*", | 129 # "CDATASection.*", |
130 # "Comment.*", | 130 # "Comment.*", |
131 # "DOMImplementation.*", | 131 # "DOMImplementation.*", |
132 "CanvasRenderingContext2D.setFillColor", | |
133 "CanvasRenderingContext2D.setStrokeColor", | |
134 "Document.get:forms", | 132 "Document.get:forms", |
135 # "Document.get:selectedStylesheetSet", | 133 # "Document.get:selectedStylesheetSet", |
136 # "Document.set:selectedStylesheetSet", | 134 # "Document.set:selectedStylesheetSet", |
137 # "Document.get:preferredStylesheetSet", | 135 # "Document.get:preferredStylesheetSet", |
138 "Document.get:links", | 136 "Document.get:links", |
139 "Document.set:domain", | 137 "Document.set:domain", |
140 "Document.createAttributeNS", | 138 "Document.createAttributeNS", |
141 "Document.get:inputEncoding", | 139 "Document.get:inputEncoding", |
142 "Document.get:height", | 140 "Document.get:height", |
143 "Document.get:width", | 141 "Document.get:width", |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 | 313 |
316 def _FindMatch(self, interface, member, member_prefix, candidates): | 314 def _FindMatch(self, interface, member, member_prefix, candidates): |
317 for interface in self._database.Hierarchy(interface): | 315 for interface in self._database.Hierarchy(interface): |
318 html_interface_name = self.RenameInterface(interface) | 316 html_interface_name = self.RenameInterface(interface) |
319 member_name = html_interface_name + '.' + member | 317 member_name = html_interface_name + '.' + member |
320 if member_name in candidates: | 318 if member_name in candidates: |
321 return member_name | 319 return member_name |
322 member_name = html_interface_name + '.' + member_prefix + member | 320 member_name = html_interface_name + '.' + member_prefix + member |
323 if member_name in candidates: | 321 if member_name in candidates: |
324 return member_name | 322 return member_name |
OLD | NEW |