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 import logging | 5 import logging |
6 import monitored | 6 import monitored |
7 import re | 7 import re |
8 | 8 |
9 typed_array_renames = { | 9 typed_array_renames = { |
10 'ArrayBuffer': 'ByteBuffer', | 10 'ArrayBuffer': 'ByteBuffer', |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 'Window.pageYOffset', | 397 'Window.pageYOffset', |
398 | 398 |
399 'WindowTimers.clearInterval', | 399 'WindowTimers.clearInterval', |
400 'WindowTimers.clearTimeout', | 400 'WindowTimers.clearTimeout', |
401 'WindowTimers.setInterval', | 401 'WindowTimers.setInterval', |
402 'WindowTimers.setTimeout', | 402 'WindowTimers.setTimeout', |
403 'Window.moveTo', | 403 'Window.moveTo', |
404 'Window.requestAnimationFrame', | 404 'Window.requestAnimationFrame', |
405 'Window.setInterval', | 405 'Window.setInterval', |
406 'Window.setTimeout', | 406 'Window.setTimeout', |
407 | |
408 'XMLHttpRequest.send', | |
409 ]) | 407 ]) |
410 | 408 |
411 # Members from the standard dom that exist in the dart:html library with | 409 # Members from the standard dom that exist in the dart:html library with |
412 # identical functionality but with cleaner names. | 410 # identical functionality but with cleaner names. |
413 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { | 411 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { |
414 'ConsoleBase.assert': 'assertCondition', | 412 'ConsoleBase.assert': 'assertCondition', |
415 'CSSKeyframesRule.insertRule': 'appendRule', | 413 'CSSKeyframesRule.insertRule': 'appendRule', |
416 'DirectoryEntry.getDirectory': '_getDirectory', | 414 'DirectoryEntry.getDirectory': '_getDirectory', |
417 'DirectoryEntry.getFile': '_getFile', | 415 'DirectoryEntry.getFile': '_getFile', |
418 'Document.createCDATASection': 'createCDataSection', | 416 'Document.createCDATASection': 'createCDataSection', |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1032 | 1030 |
1033 # We're looking for a sequence of letters which start with capital letter | 1031 # We're looking for a sequence of letters which start with capital letter |
1034 # then a series of caps and finishes with either the end of the string or | 1032 # then a series of caps and finishes with either the end of the string or |
1035 # a capital letter. | 1033 # a capital letter. |
1036 # The [0-9] check is for names such as 2D or 3D | 1034 # The [0-9] check is for names such as 2D or 3D |
1037 # The following test cases should match as: | 1035 # The following test cases should match as: |
1038 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 1036 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
1039 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 1037 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
1040 # IFrameElement: (I)()(F)rameElement (no change) | 1038 # IFrameElement: (I)()(F)rameElement (no change) |
1041 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 1039 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |