| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 'WebKitCSSTransformValue', | 134 'WebKitCSSTransformValue', |
| 135 'WebKitMediaSource', | 135 'WebKitMediaSource', |
| 136 'WebKitNotification', | 136 'WebKitNotification', |
| 137 'WebGLRenderingContextBase', | 137 'WebGLRenderingContextBase', |
| 138 'WebGL2RenderingContextBase', | 138 'WebGL2RenderingContextBase', |
| 139 'WebKitSourceBuffer', | 139 'WebKitSourceBuffer', |
| 140 'WebKitSourceBufferList', | 140 'WebKitSourceBufferList', |
| 141 'WorkerLocation', # Workers | 141 'WorkerLocation', # Workers |
| 142 'WorkerNavigator', # Workers | 142 'WorkerNavigator', # Workers |
| 143 'XMLHttpRequestProgressEvent', | 143 'XMLHttpRequestProgressEvent', |
| 144 # Obsolete event for NaCl. |
| 145 'ResourceProgressEvent', |
| 144 ] | 146 ] |
| 145 | 147 |
| 146 for interface in _removed_html_interfaces: | 148 for interface in _removed_html_interfaces: |
| 147 html_interface_renames[interface] = '_' + interface | 149 html_interface_renames[interface] = '_' + interface |
| 148 | 150 |
| 149 convert_to_future_members = monitored.Set( | 151 convert_to_future_members = monitored.Set( |
| 150 'htmlrenamer.converted_to_future_members', [ | 152 'htmlrenamer.converted_to_future_members', [ |
| 151 'DataTransferItem.getAsString', | 153 'DataTransferItem.getAsString', |
| 152 'DirectoryEntry.getDirectory', | 154 'DirectoryEntry.getDirectory', |
| 153 'DirectoryEntry.getFile', | 155 'DirectoryEntry.getFile', |
| (...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1028 | 1030 |
| 1029 # 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 |
| 1030 # 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 |
| 1031 # a capital letter. | 1033 # a capital letter. |
| 1032 # 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 |
| 1033 # The following test cases should match as: | 1035 # The following test cases should match as: |
| 1034 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 1036 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 1035 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 1037 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 1036 # IFrameElement: (I)()(F)rameElement (no change) | 1038 # IFrameElement: (I)()(F)rameElement (no change) |
| 1037 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 |