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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 'Window.scrollY', | 395 'Window.scrollY', |
396 'Window.pageXOffset', | 396 'Window.pageXOffset', |
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.cancelAnimationFrame', | |
406 'Window.setInterval', | 405 'Window.setInterval', |
407 'Window.setTimeout', | 406 'Window.setTimeout', |
408 ]) | 407 ]) |
409 | 408 |
410 # 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 |
411 # identical functionality but with cleaner names. | 410 # identical functionality but with cleaner names. |
412 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { | 411 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { |
413 'ConsoleBase.assert': 'assertCondition', | 412 'ConsoleBase.assert': 'assertCondition', |
414 'CSSKeyframesRule.insertRule': 'appendRule', | 413 'CSSKeyframesRule.insertRule': 'appendRule', |
415 'DirectoryEntry.getDirectory': '_getDirectory', | 414 'DirectoryEntry.getDirectory': '_getDirectory', |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 | 1030 |
1032 # 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 |
1033 # 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 |
1034 # a capital letter. | 1033 # a capital letter. |
1035 # 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 |
1036 # The following test cases should match as: | 1035 # The following test cases should match as: |
1037 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 1036 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
1038 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 1037 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
1039 # IFrameElement: (I)()(F)rameElement (no change) | 1038 # IFrameElement: (I)()(F)rameElement (no change) |
1040 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 |