| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 'DOMWindow.webkitResolveLocalFileSystemURL', | 104 'DOMWindow.webkitResolveLocalFileSystemURL', |
| 105 'Entry.copyTo', | 105 'Entry.copyTo', |
| 106 'Entry.getMetadata', | 106 'Entry.getMetadata', |
| 107 'Entry.getParent', | 107 'Entry.getParent', |
| 108 'Entry.moveTo', | 108 'Entry.moveTo', |
| 109 'Entry.remove', | 109 'Entry.remove', |
| 110 'FileEntry.createWriter', | 110 'FileEntry.createWriter', |
| 111 'FileEntry.file', | 111 'FileEntry.file', |
| 112 'Notification.requestPermission', | 112 'Notification.requestPermission', |
| 113 'NotificationCenter.requestPermission', | 113 'NotificationCenter.requestPermission', |
| 114 'RTCPeerConnection.createAnswer', | |
| 115 'RTCPeerConnection.createOffer', | |
| 116 'RTCPeerConnection.setLocalDescription', | 114 'RTCPeerConnection.setLocalDescription', |
| 117 'RTCPeerConnection.setRemoteDescription', | 115 'RTCPeerConnection.setRemoteDescription', |
| 118 'StorageInfo.queryUsageAndQuota', | |
| 119 'StorageInfo.requestQuota', | 116 'StorageInfo.requestQuota', |
| 120 'WorkerContext.webkitResolveLocalFileSystemURL', | 117 'WorkerContext.webkitResolveLocalFileSystemURL', |
| 121 'WorkerContext.webkitRequestFileSystem', | 118 'WorkerContext.webkitRequestFileSystem', |
| 122 ]) | 119 ]) |
| 123 | 120 |
| 124 # Members from the standard dom that should not be exposed publicly in dart:html | 121 # Members from the standard dom that should not be exposed publicly in dart:html |
| 125 # but need to be exposed internally to implement dart:html on top of a standard | 122 # but need to be exposed internally to implement dart:html on top of a standard |
| 126 # browser. | 123 # browser. |
| 127 _private_html_members = monitored.Set('htmlrenamer._private_html_members', [ | 124 _private_html_members = monitored.Set('htmlrenamer._private_html_members', [ |
| 128 'CanvasRenderingContext2D.arc', | 125 'CanvasRenderingContext2D.arc', |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 'Element.webkitCreateShadowRoot': 'createShadowRoot', | 299 'Element.webkitCreateShadowRoot': 'createShadowRoot', |
| 303 'Element.webkitMatchesSelector' : 'matches', | 300 'Element.webkitMatchesSelector' : 'matches', |
| 304 'Navigator.webkitGetUserMedia': '_getUserMedia', | 301 'Navigator.webkitGetUserMedia': '_getUserMedia', |
| 305 'Node.appendChild': 'append', | 302 'Node.appendChild': 'append', |
| 306 'Node.cloneNode': 'clone', | 303 'Node.cloneNode': 'clone', |
| 307 'Node.nextSibling': 'nextNode', | 304 'Node.nextSibling': 'nextNode', |
| 308 'Node.ownerDocument': 'document', | 305 'Node.ownerDocument': 'document', |
| 309 'Node.parentElement': 'parent', | 306 'Node.parentElement': 'parent', |
| 310 'Node.previousSibling': 'previousNode', | 307 'Node.previousSibling': 'previousNode', |
| 311 'Node.textContent': 'text', | 308 'Node.textContent': 'text', |
| 309 'RTCPeerConnection.createAnswer': '_createAnswer', |
| 310 'RTCPeerConnection.createOffer': '_createOffer', |
| 311 'StorageInfo.queryUsageAndQuota': '_queryUsageAndQuota', |
| 312 'SVGComponentTransferFunctionElement.offset': 'gradientOffset', | 312 'SVGComponentTransferFunctionElement.offset': 'gradientOffset', |
| 313 'SVGElement.className': '$dom_svgClassName', | 313 'SVGElement.className': '$dom_svgClassName', |
| 314 'SVGStopElement.offset': 'gradientOffset', | 314 'SVGStopElement.offset': 'gradientOffset', |
| 315 'WorkerContext.webkitRequestFileSystem': 'requestFileSystem', | 315 'WorkerContext.webkitRequestFileSystem': 'requestFileSystem', |
| 316 'WorkerContext.webkitRequestFileSystemSync': 'requestFileSystemSync', | 316 'WorkerContext.webkitRequestFileSystemSync': 'requestFileSystemSync', |
| 317 'WorkerContext.webkitResolveLocalFileSystemSyncURL': | 317 'WorkerContext.webkitResolveLocalFileSystemSyncURL': |
| 318 'resolveLocalFileSystemSyncUrl', | 318 'resolveLocalFileSystemSyncUrl', |
| 319 'WorkerContext.webkitResolveLocalFileSystemURL': | 319 'WorkerContext.webkitResolveLocalFileSystemURL': |
| 320 'resolveLocalFileSystemUrl', | 320 'resolveLocalFileSystemUrl', |
| 321 }) | 321 }) |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 | 703 |
| 704 # We're looking for a sequence of letters which start with capital letter | 704 # We're looking for a sequence of letters which start with capital letter |
| 705 # then a series of caps and finishes with either the end of the string or | 705 # then a series of caps and finishes with either the end of the string or |
| 706 # a capital letter. | 706 # a capital letter. |
| 707 # The [0-9] check is for names such as 2D or 3D | 707 # The [0-9] check is for names such as 2D or 3D |
| 708 # The following test cases should match as: | 708 # The following test cases should match as: |
| 709 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 709 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 710 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 710 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 711 # IFrameElement: (I)()(F)rameElement (no change) | 711 # IFrameElement: (I)()(F)rameElement (no change) |
| 712 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 712 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |