| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 ]) | 121 ]) |
| 122 | 122 |
| 123 # Members from the standard dom that should not be exposed publicly in dart:html | 123 # 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 | 124 # but need to be exposed internally to implement dart:html on top of a standard |
| 125 # browser. | 125 # browser. |
| 126 _private_html_members = monitored.Set('htmlrenamer._private_html_members', [ | 126 _private_html_members = monitored.Set('htmlrenamer._private_html_members', [ |
| 127 'CanvasRenderingContext2D.arc', |
| 127 'CompositionEvent.initCompositionEvent', | 128 'CompositionEvent.initCompositionEvent', |
| 128 'CustomEvent.initCustomEvent', | 129 'CustomEvent.initCustomEvent', |
| 129 'DeviceOrientationEvent.initDeviceOrientationEvent', | 130 'DeviceOrientationEvent.initDeviceOrientationEvent', |
| 130 'Document.createElement', | 131 'Document.createElement', |
| 131 'Document.createElementNS', | 132 'Document.createElementNS', |
| 132 'Document.createEvent', | 133 'Document.createEvent', |
| 133 'Document.createRange', | 134 'Document.createRange', |
| 134 'Document.createTextNode', | 135 'Document.createTextNode', |
| 135 'Document.createTouch', | 136 'Document.createTouch', |
| 136 'Document.createTouchList', | 137 'Document.createTouchList', |
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 | 710 |
| 710 # We're looking for a sequence of letters which start with capital letter | 711 # We're looking for a sequence of letters which start with capital letter |
| 711 # then a series of caps and finishes with either the end of the string or | 712 # then a series of caps and finishes with either the end of the string or |
| 712 # a capital letter. | 713 # a capital letter. |
| 713 # The [0-9] check is for names such as 2D or 3D | 714 # The [0-9] check is for names such as 2D or 3D |
| 714 # The following test cases should match as: | 715 # The following test cases should match as: |
| 715 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 716 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 716 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 717 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 717 # IFrameElement: (I)()(F)rameElement (no change) | 718 # IFrameElement: (I)()(F)rameElement (no change) |
| 718 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 719 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |