| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 'WorkerContext', # Workers | 118 'WorkerContext', # Workers |
| 119 'WorkerLocation', # Workers | 119 'WorkerLocation', # Workers |
| 120 'WorkerNavigator', # Workers | 120 'WorkerNavigator', # Workers |
| 121 ] | 121 ] |
| 122 | 122 |
| 123 for interface in _removed_html_interfaces: | 123 for interface in _removed_html_interfaces: |
| 124 html_interface_renames[interface] = '_' + interface | 124 html_interface_renames[interface] = '_' + interface |
| 125 | 125 |
| 126 convert_to_future_members = monitored.Set( | 126 convert_to_future_members = monitored.Set( |
| 127 'htmlrenamer.converted_to_future_members', [ | 127 'htmlrenamer.converted_to_future_members', [ |
| 128 'AudioContext.decodeAudioData', |
| 128 'DataTransferItem.getAsString', | 129 'DataTransferItem.getAsString', |
| 129 'DirectoryEntry.getDirectory', | 130 'DirectoryEntry.getDirectory', |
| 130 'DirectoryEntry.getFile', | 131 'DirectoryEntry.getFile', |
| 131 'DirectoryEntry.removeRecursively', | 132 'DirectoryEntry.removeRecursively', |
| 132 'DirectoryReader.readEntries', | 133 'DirectoryReader.readEntries', |
| 133 'DOMWindow.webkitRequestFileSystem', | 134 'DOMWindow.webkitRequestFileSystem', |
| 134 'DOMWindow.webkitResolveLocalFileSystemURL', | 135 'DOMWindow.webkitResolveLocalFileSystemURL', |
| 135 'Entry.copyTo', | 136 'Entry.copyTo', |
| 136 'Entry.getMetadata', | 137 'Entry.getMetadata', |
| 137 'Entry.getParent', | 138 'Entry.getParent', |
| (...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 | 855 |
| 855 # We're looking for a sequence of letters which start with capital letter | 856 # We're looking for a sequence of letters which start with capital letter |
| 856 # then a series of caps and finishes with either the end of the string or | 857 # then a series of caps and finishes with either the end of the string or |
| 857 # a capital letter. | 858 # a capital letter. |
| 858 # The [0-9] check is for names such as 2D or 3D | 859 # The [0-9] check is for names such as 2D or 3D |
| 859 # The following test cases should match as: | 860 # The following test cases should match as: |
| 860 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 861 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 861 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 862 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 862 # IFrameElement: (I)()(F)rameElement (no change) | 863 # IFrameElement: (I)()(F)rameElement (no change) |
| 863 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 864 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |