| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 'RTCPeerConnection.setRemoteDescription', | 145 'RTCPeerConnection.setRemoteDescription', |
| 146 'StorageInfo.requestQuota', | 146 'StorageInfo.requestQuota', |
| 147 'WorkerContext.webkitResolveLocalFileSystemURL', | 147 'WorkerContext.webkitResolveLocalFileSystemURL', |
| 148 'WorkerContext.webkitRequestFileSystem', | 148 'WorkerContext.webkitRequestFileSystem', |
| 149 ]) | 149 ]) |
| 150 | 150 |
| 151 # Members from the standard dom that should not be exposed publicly in dart:html | 151 # Members from the standard dom that should not be exposed publicly in dart:html |
| 152 # but need to be exposed internally to implement dart:html on top of a standard | 152 # but need to be exposed internally to implement dart:html on top of a standard |
| 153 # browser. | 153 # browser. |
| 154 _private_html_members = monitored.Set('htmlrenamer._private_html_members', [ | 154 _private_html_members = monitored.Set('htmlrenamer._private_html_members', [ |
| 155 'AudioNode.connect', |
| 155 'CanvasRenderingContext2D.arc', | 156 'CanvasRenderingContext2D.arc', |
| 156 'CompositionEvent.initCompositionEvent', | 157 'CompositionEvent.initCompositionEvent', |
| 157 'CustomEvent.initCustomEvent', | 158 'CustomEvent.initCustomEvent', |
| 158 'DeviceOrientationEvent.initDeviceOrientationEvent', | 159 'DeviceOrientationEvent.initDeviceOrientationEvent', |
| 159 'Document.createElement', | 160 'Document.createElement', |
| 160 'Document.createElementNS', | 161 'Document.createElementNS', |
| 161 'Document.createEvent', | 162 'Document.createEvent', |
| 162 'Document.createNodeIterator', | 163 'Document.createNodeIterator', |
| 163 'Document.createRange', | 164 'Document.createRange', |
| 164 'Document.createTextNode', | 165 'Document.createTextNode', |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 | 773 |
| 773 # We're looking for a sequence of letters which start with capital letter | 774 # We're looking for a sequence of letters which start with capital letter |
| 774 # then a series of caps and finishes with either the end of the string or | 775 # then a series of caps and finishes with either the end of the string or |
| 775 # a capital letter. | 776 # a capital letter. |
| 776 # The [0-9] check is for names such as 2D or 3D | 777 # The [0-9] check is for names such as 2D or 3D |
| 777 # The following test cases should match as: | 778 # The following test cases should match as: |
| 778 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 779 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 779 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 780 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 780 # IFrameElement: (I)()(F)rameElement (no change) | 781 # IFrameElement: (I)()(F)rameElement (no change) |
| 781 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 782 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |