| 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 'DOMCoreException': 'DOMException', | 7 'DOMCoreException': 'DOMException', |
| 8 'DOMFormData': 'FormData', | 8 'DOMFormData': 'FormData', |
| 9 'DOMURL': 'Url', | 9 'DOMURL': 'Url', |
| 10 'DOMWindow': 'LocalWindow', | 10 'DOMWindow': 'LocalWindow', |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 "Node.get:prefix", | 253 "Node.get:prefix", |
| 254 "Node.set:prefix", | 254 "Node.set:prefix", |
| 255 "Node.get:DOCUMENT_POSITION_PRECEDING", | 255 "Node.get:DOCUMENT_POSITION_PRECEDING", |
| 256 "Node.get:nodeValue", | 256 "Node.get:nodeValue", |
| 257 "Node.set:nodeValue", | 257 "Node.set:nodeValue", |
| 258 "Node.get:CDATA_SECTION_NODE", | 258 "Node.get:CDATA_SECTION_NODE", |
| 259 "Node.get:nodeName", | 259 "Node.get:nodeName", |
| 260 "Node.lookupPrefix", | 260 "Node.lookupPrefix", |
| 261 "Node.get:PROCESSING_INSTRUCTION_NODE", | 261 "Node.get:PROCESSING_INSTRUCTION_NODE", |
| 262 'ShadowRoot.getElementsByTagNameNS', | 262 'ShadowRoot.getElementsByTagNameNS', |
| 263 "LocalWindow.clientInformation", |
| 263 "LocalWindow.get:frames", | 264 "LocalWindow.get:frames", |
| 264 "LocalWindow.get:length", | 265 "LocalWindow.get:length", |
| 265 "LocalWindow.prompt", | 266 "LocalWindow.prompt", |
| 266 "LocalWindow.webkitCancelRequestAnimationFrame", | 267 "LocalWindow.webkitCancelRequestAnimationFrame", |
| 267 "WheelEvent.wheelDelta", | 268 "WheelEvent.wheelDelta", |
| 268 ]) | 269 ]) |
| 269 | 270 |
| 270 class HtmlRenamer(object): | 271 class HtmlRenamer(object): |
| 271 def __init__(self, database): | 272 def __init__(self, database): |
| 272 self._database = database | 273 self._database = database |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 if member_name in candidates: | 309 if member_name in candidates: |
| 309 return member_name | 310 return member_name |
| 310 member_name = html_interface_name + '.' + member_prefix + member | 311 member_name = html_interface_name + '.' + member_prefix + member |
| 311 if member_name in candidates: | 312 if member_name in candidates: |
| 312 return member_name | 313 return member_name |
| 313 | 314 |
| 314 def GetLibraryName(self, interface): | 315 def GetLibraryName(self, interface): |
| 315 if interface.id.startswith('SVG'): | 316 if interface.id.startswith('SVG'): |
| 316 return 'svg' | 317 return 'svg' |
| 317 return 'html' | 318 return 'html' |
| OLD | NEW |