| 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 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', { | 9 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', { |
| 10 'CDATASection': 'CDataSection', | 10 'CDATASection': 'CDataSection', |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 'FileEntry.file', | 111 'FileEntry.file', |
| 112 'Notification.requestPermission', | 112 'Notification.requestPermission', |
| 113 'NotificationCenter.requestPermission', | 113 'NotificationCenter.requestPermission', |
| 114 'RTCPeerConnection.createAnswer', | 114 'RTCPeerConnection.createAnswer', |
| 115 'RTCPeerConnection.createOffer', | 115 'RTCPeerConnection.createOffer', |
| 116 'RTCPeerConnection.setLocalDescription', | 116 'RTCPeerConnection.setLocalDescription', |
| 117 'RTCPeerConnection.setRemoteDescription', | 117 'RTCPeerConnection.setRemoteDescription', |
| 118 'StorageInfo.queryUsageAndQuota', | 118 'StorageInfo.queryUsageAndQuota', |
| 119 'StorageInfo.requestQuota', | 119 'StorageInfo.requestQuota', |
| 120 'WorkerContext.webkitResolveLocalFileSystemURL', | 120 'WorkerContext.webkitResolveLocalFileSystemURL', |
| 121 'WorkerContext.webkitRequestFileSystem', |
| 121 ]) | 122 ]) |
| 122 | 123 |
| 123 # Members from the standard dom that should not be exposed publicly in dart:html | 124 # Members from the standard dom that should not be exposed publicly in dart:html |
| 124 # but need to be exposed internally to implement dart:html on top of a standard | 125 # but need to be exposed internally to implement dart:html on top of a standard |
| 125 # browser. | 126 # browser. |
| 126 _private_html_members = monitored.Set('htmlrenamer._private_html_members', [ | 127 _private_html_members = monitored.Set('htmlrenamer._private_html_members', [ |
| 127 'CanvasRenderingContext2D.arc', | 128 'CanvasRenderingContext2D.arc', |
| 128 'CompositionEvent.initCompositionEvent', | 129 'CompositionEvent.initCompositionEvent', |
| 129 'CustomEvent.initCustomEvent', | 130 'CustomEvent.initCustomEvent', |
| 130 'DeviceOrientationEvent.initDeviceOrientationEvent', | 131 'DeviceOrientationEvent.initDeviceOrientationEvent', |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 | 711 |
| 711 # We're looking for a sequence of letters which start with capital letter | 712 # We're looking for a sequence of letters which start with capital letter |
| 712 # then a series of caps and finishes with either the end of the string or | 713 # then a series of caps and finishes with either the end of the string or |
| 713 # a capital letter. | 714 # a capital letter. |
| 714 # The [0-9] check is for names such as 2D or 3D | 715 # The [0-9] check is for names such as 2D or 3D |
| 715 # The following test cases should match as: | 716 # The following test cases should match as: |
| 716 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 717 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 717 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 718 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 718 # IFrameElement: (I)()(F)rameElement (no change) | 719 # IFrameElement: (I)()(F)rameElement (no change) |
| 719 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 720 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |