| 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 22 matching lines...) Expand all Loading... |
| 33 'WebKitPoint': '_DomPoint', | 33 'WebKitPoint': '_DomPoint', |
| 34 'Entity': '_Entity', # Not sure if we want to expose this yet, may conflict
with other libs. | 34 'Entity': '_Entity', # Not sure if we want to expose this yet, may conflict
with other libs. |
| 35 'EntryCallback': '_EntryCallback', | 35 'EntryCallback': '_EntryCallback', |
| 36 'EntriesCallback': '_EntriesCallback', | 36 'EntriesCallback': '_EntriesCallback', |
| 37 'ErrorCallback': '_ErrorCallback', | 37 'ErrorCallback': '_ErrorCallback', |
| 38 'FileCallback': '_FileCallback', | 38 'FileCallback': '_FileCallback', |
| 39 'FileSystemCallback': '_FileSystemCallback', | 39 'FileSystemCallback': '_FileSystemCallback', |
| 40 'FileWriterCallback': '_FileWriterCallback', | 40 'FileWriterCallback': '_FileWriterCallback', |
| 41 'HTMLDocument' : 'HtmlDocument', | 41 'HTMLDocument' : 'HtmlDocument', |
| 42 'IDBFactory': 'IdbFactory', # Manual to avoid name conflicts. | 42 'IDBFactory': 'IdbFactory', # Manual to avoid name conflicts. |
| 43 'Key': 'CryptoKey', |
| 43 'NamedNodeMap': '_NamedNodeMap', | 44 'NamedNodeMap': '_NamedNodeMap', |
| 44 'NavigatorUserMediaErrorCallback': '_NavigatorUserMediaErrorCallback', | 45 'NavigatorUserMediaErrorCallback': '_NavigatorUserMediaErrorCallback', |
| 45 'NavigatorUserMediaSuccessCallback': '_NavigatorUserMediaSuccessCallback', | 46 'NavigatorUserMediaSuccessCallback': '_NavigatorUserMediaSuccessCallback', |
| 46 'NotificationPermissionCallback': '_NotificationPermissionCallback', | 47 'NotificationPermissionCallback': '_NotificationPermissionCallback', |
| 47 'PositionCallback': '_PositionCallback', | 48 'PositionCallback': '_PositionCallback', |
| 48 'PositionErrorCallback': '_PositionErrorCallback', | 49 'PositionErrorCallback': '_PositionErrorCallback', |
| 49 'RTCDTMFSender': 'RtcDtmfSender', | 50 'RTCDTMFSender': 'RtcDtmfSender', |
| 50 'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent', | 51 'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent', |
| 51 'RTCErrorCallback': '_RtcErrorCallback', | 52 'RTCErrorCallback': '_RtcErrorCallback', |
| 52 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', | 53 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', |
| (...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 | 862 |
| 862 # We're looking for a sequence of letters which start with capital letter | 863 # We're looking for a sequence of letters which start with capital letter |
| 863 # then a series of caps and finishes with either the end of the string or | 864 # then a series of caps and finishes with either the end of the string or |
| 864 # a capital letter. | 865 # a capital letter. |
| 865 # The [0-9] check is for names such as 2D or 3D | 866 # The [0-9] check is for names such as 2D or 3D |
| 866 # The following test cases should match as: | 867 # The following test cases should match as: |
| 867 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 868 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 868 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 869 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 869 # IFrameElement: (I)()(F)rameElement (no change) | 870 # IFrameElement: (I)()(F)rameElement (no change) |
| 870 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 871 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |