Chromium Code Reviews| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 | 66 |
| 67 # Interfaces that are suppressed, but need to still exist for Dartium and to | 67 # Interfaces that are suppressed, but need to still exist for Dartium and to |
| 68 # properly wrap DOM objects if/when encountered. | 68 # properly wrap DOM objects if/when encountered. |
| 69 _removed_html_interfaces = [ | 69 _removed_html_interfaces = [ |
| 70 'CDataSection', | 70 'CDataSection', |
| 71 'CSSPrimitiveValue', | 71 'CSSPrimitiveValue', |
| 72 'CSSUnknownRule', | 72 'CSSUnknownRule', |
| 73 'CSSValue', | 73 'CSSValue', |
| 74 'Counter', | 74 'Counter', |
| 75 'DOMFileSystemSync', # Workers | 75 'DOMFileSystemSync', # Workers |
| 76 'DatabaseCallback', | |
| 76 'DatabaseSync', # Workers | 77 'DatabaseSync', # Workers |
| 77 'DataView', # Typed arrays | 78 'DataView', # Typed arrays |
| 78 'DirectoryEntrySync', # Workers | 79 'DirectoryEntrySync', # Workers |
| 79 'DirectoryReaderSync', # Workers | 80 'DirectoryReaderSync', # Workers |
| 80 'EntrySync', # Workers | 81 'EntrySync', # Workers |
| 81 'FileEntrySync', # Workers | 82 'FileEntrySync', # Workers |
| 82 'FileReaderSync', # Workers | 83 'FileReaderSync', # Workers |
| 83 'FileWriterSync', # Workers | 84 'FileWriterSync', # Workers |
| 84 'HTMLAllCollection', | 85 'HTMLAllCollection', |
| 85 'HTMLAppletElement', | 86 'HTMLAppletElement', |
| 86 'HTMLBaseFontElement', | 87 'HTMLBaseFontElement', |
| 87 'HTMLDirectoryElement', | 88 'HTMLDirectoryElement', |
| 88 'HTMLFontElement', | 89 'HTMLFontElement', |
| 89 'HTMLFrameElement', | 90 'HTMLFrameElement', |
| 90 'HTMLFrameSetElement', | 91 'HTMLFrameSetElement', |
| 91 'HTMLMarqueeElement', | 92 'HTMLMarqueeElement', |
| 92 'IDBAny', | 93 'IDBAny', |
| 94 'MutationEvent', | |
| 93 'Notation', | 95 'Notation', |
| 96 'NotificationCenter', | |
| 94 'PagePopupController', | 97 'PagePopupController', |
| 95 'RGBColor', | 98 'RGBColor', |
| 96 'RadioNodeList', # Folded onto NodeList in dart2js. | 99 'RadioNodeList', # Folded onto NodeList in dart2js. |
| 97 'Rect', | 100 'Rect', |
| 98 'SQLTransactionSync', # Workers | 101 'SQLTransactionSync', # Workers |
| 99 'SQLTransactionSyncCallback', # Workers | 102 'SQLTransactionSyncCallback', # Workers |
| 100 'SVGAltGlyphDefElement', # Webkit only. | 103 'SVGAltGlyphDefElement', # Webkit only. |
| 101 'SVGAltGlyphItemElement', # Webkit only. | 104 'SVGAltGlyphItemElement', # Webkit only. |
| 102 'SVGAnimateColorElement', # Deprecated. Use AnimateElement instead. | 105 'SVGAnimateColorElement', # Deprecated. Use AnimateElement instead. |
| 103 'SVGColor', | 106 'SVGColor', |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 'FileEntry.createWriter', | 154 'FileEntry.createWriter', |
| 152 'FileEntry.file', | 155 'FileEntry.file', |
| 153 'FontLoader.notifyWhenFontsReady', | 156 'FontLoader.notifyWhenFontsReady', |
| 154 'MediaStreamTrack.getSources', | 157 'MediaStreamTrack.getSources', |
| 155 'Notification.requestPermission', | 158 'Notification.requestPermission', |
| 156 'NotificationCenter.requestPermission', | 159 'NotificationCenter.requestPermission', |
| 157 'RTCPeerConnection.setLocalDescription', | 160 'RTCPeerConnection.setLocalDescription', |
| 158 'RTCPeerConnection.setRemoteDescription', | 161 'RTCPeerConnection.setRemoteDescription', |
| 159 'StorageInfo.requestQuota', | 162 'StorageInfo.requestQuota', |
| 160 'StorageQuota.requestQuota', | 163 'StorageQuota.requestQuota', |
| 164 'Window.openDatabase', | |
|
blois
2013/10/24 23:01:20
needed for web_sql
| |
| 161 'Window.webkitRequestFileSystem', | 165 'Window.webkitRequestFileSystem', |
| 162 'Window.webkitResolveLocalFileSystemURL', | 166 'Window.webkitResolveLocalFileSystemURL', |
| 167 'WorkerGlobalScope.openDatabase', | |
| 168 'WorkerGlobalScope.openDatabaseSync', | |
| 163 'WorkerGlobalScope.webkitRequestFileSystem', | 169 'WorkerGlobalScope.webkitRequestFileSystem', |
| 164 'WorkerGlobalScope.webkitResolveLocalFileSystemURL', | 170 'WorkerGlobalScope.webkitResolveLocalFileSystemURL', |
| 165 ]) | 171 ]) |
| 166 | 172 |
| 167 # Classes where we have customized constructors, but we need to keep the old | 173 # Classes where we have customized constructors, but we need to keep the old |
| 168 # constructor for dispatch purposes. | 174 # constructor for dispatch purposes. |
| 169 custom_html_constructors = monitored.Set( | 175 custom_html_constructors = monitored.Set( |
| 170 'htmlrenamer.custom_html_constructors', [ | 176 'htmlrenamer.custom_html_constructors', [ |
| 171 'HTMLOptionElement', | 177 'HTMLOptionElement', |
| 172 'MutationObserver', | 178 'MutationObserver', |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 318 'UIEvent.charCode', | 324 'UIEvent.charCode', |
| 319 'UIEvent.initUIEvent', | 325 'UIEvent.initUIEvent', |
| 320 'UIEvent.keyCode', | 326 'UIEvent.keyCode', |
| 321 'UIEvent.layerX', | 327 'UIEvent.layerX', |
| 322 'UIEvent.layerY', | 328 'UIEvent.layerY', |
| 323 'UIEvent.pageX', | 329 'UIEvent.pageX', |
| 324 'UIEvent.pageY', | 330 'UIEvent.pageY', |
| 325 'WheelEvent.initWebKitWheelEvent', | 331 'WheelEvent.initWebKitWheelEvent', |
| 326 'WheelEvent.deltaX', | 332 'WheelEvent.deltaX', |
| 327 'WheelEvent.deltaY', | 333 'WheelEvent.deltaY', |
| 334 'WorkerGlobalScope.webkitNotifications', | |
| 328 'Window.getComputedStyle', | 335 'Window.getComputedStyle', |
| 329 'Window.clearInterval', | 336 'Window.clearInterval', |
| 330 'Window.clearTimeout', | 337 'Window.clearTimeout', |
| 331 'Window.moveTo', | 338 'Window.moveTo', |
| 332 'Window.requestAnimationFrame', | 339 'Window.requestAnimationFrame', |
| 333 'Window.setInterval', | 340 'Window.setInterval', |
| 334 'Window.setTimeout', | 341 'Window.setTimeout', |
| 335 ]) | 342 ]) |
| 336 | 343 |
| 337 # Members from the standard dom that exist in the dart:html library with | 344 # Members from the standard dom that exist in the dart:html library with |
| (...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 941 | 948 |
| 942 # We're looking for a sequence of letters which start with capital letter | 949 # We're looking for a sequence of letters which start with capital letter |
| 943 # then a series of caps and finishes with either the end of the string or | 950 # then a series of caps and finishes with either the end of the string or |
| 944 # a capital letter. | 951 # a capital letter. |
| 945 # The [0-9] check is for names such as 2D or 3D | 952 # The [0-9] check is for names such as 2D or 3D |
| 946 # The following test cases should match as: | 953 # The following test cases should match as: |
| 947 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 954 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 948 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 955 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 949 # IFrameElement: (I)()(F)rameElement (no change) | 956 # IFrameElement: (I)()(F)rameElement (no change) |
| 950 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 957 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |