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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 # properly wrap DOM objects if/when encountered. | 69 # properly wrap DOM objects if/when encountered. |
70 _removed_html_interfaces = [ | 70 _removed_html_interfaces = [ |
71 'CDataSection', | 71 'CDataSection', |
72 'CSSPrimitiveValue', | 72 'CSSPrimitiveValue', |
73 'CSSUnknownRule', | 73 'CSSUnknownRule', |
74 'CSSValue', | 74 'CSSValue', |
75 'Counter', | 75 'Counter', |
76 'DOMFileSystemSync', # Workers | 76 'DOMFileSystemSync', # Workers |
77 'DatabaseSync', # Workers | 77 'DatabaseSync', # Workers |
78 'DataView', # Typed arrays | 78 'DataView', # Typed arrays |
| 79 'DeprecatedStorageQuota', |
| 80 'DeprecatedStorageInfo', |
79 'DirectoryEntrySync', # Workers | 81 'DirectoryEntrySync', # Workers |
80 'DirectoryReaderSync', # Workers | 82 'DirectoryReaderSync', # Workers |
81 'DocumentType', | 83 'DocumentType', |
82 'EntrySync', # Workers | 84 'EntrySync', # Workers |
83 'FileEntrySync', # Workers | 85 'FileEntrySync', # Workers |
84 'FileReaderSync', # Workers | 86 'FileReaderSync', # Workers |
85 'FileWriterSync', # Workers | 87 'FileWriterSync', # Workers |
86 'HTMLAllCollection', | 88 'HTMLAllCollection', |
87 'HTMLAppletElement', | 89 'HTMLAppletElement', |
88 'HTMLBaseFontElement', | 90 'HTMLBaseFontElement', |
89 'HTMLDirectoryElement', | 91 'HTMLDirectoryElement', |
90 'HTMLFontElement', | 92 'HTMLFontElement', |
91 'HTMLFrameElement', | 93 'HTMLFrameElement', |
92 'HTMLFrameSetElement', | 94 'HTMLFrameSetElement', |
93 'HTMLMarqueeElement', | 95 'HTMLMarqueeElement', |
94 'IDBAny', | 96 'IDBAny', |
95 'MutationEvent', | 97 'MutationEvent', |
96 'Notation', | 98 'Notation', |
97 'NotificationCenter', | 99 'NotificationCenter', |
98 'PagePopupController', | 100 'PagePopupController', |
99 'RGBColor', | 101 'RGBColor', |
100 'RadioNodeList', # Folded onto NodeList in dart2js. | 102 'RadioNodeList', # Folded onto NodeList in dart2js. |
101 'Rect', | 103 'Rect', |
| 104 'ServiceWorker', |
102 'SQLTransactionSync', # Workers | 105 'SQLTransactionSync', # Workers |
103 'SQLTransactionSyncCallback', # Workers | 106 'SQLTransactionSyncCallback', # Workers |
104 'SVGAltGlyphDefElement', # Webkit only. | 107 'SVGAltGlyphDefElement', # Webkit only. |
105 'SVGAltGlyphItemElement', # Webkit only. | 108 'SVGAltGlyphItemElement', # Webkit only. |
106 'SVGAnimateColorElement', # Deprecated. Use AnimateElement instead. | 109 'SVGAnimateColorElement', # Deprecated. Use AnimateElement instead. |
107 'SVGColor', | 110 'SVGColor', |
108 'SVGComponentTransferFunctionElement', # Currently not supported anywhere. | 111 'SVGComponentTransferFunctionElement', # Currently not supported anywhere. |
109 'SVGCursorElement', # Webkit only. | 112 'SVGCursorElement', # Webkit only. |
110 'SVGFEDropShadowElement', # Webkit only for the following: | 113 'SVGFEDropShadowElement', # Webkit only for the following: |
111 'SVGFontElement', | 114 'SVGFontElement', |
112 'SVGFontFaceElement', | 115 'SVGFontFaceElement', |
113 'SVGFontFaceFormatElement', | 116 'SVGFontFaceFormatElement', |
114 'SVGFontFaceNameElement', | 117 'SVGFontFaceNameElement', |
115 'SVGFontFaceSrcElement', | 118 'SVGFontFaceSrcElement', |
116 'SVGFontFaceUriElement', | 119 'SVGFontFaceUriElement', |
117 'SVGGlyphElement', | 120 'SVGGlyphElement', |
118 'SVGGlyphRefElement', | 121 'SVGGlyphRefElement', |
119 'SVGHKernElement', | 122 'SVGHKernElement', |
120 'SVGMPathElement', | 123 'SVGMPathElement', |
121 'SVGPaint', | 124 'SVGPaint', |
122 'SVGMissingGlyphElement', | 125 'SVGMissingGlyphElement', |
123 'SVGTRefElement', | 126 'SVGTRefElement', |
124 'SVGVKernElement', | 127 'SVGVKernElement', |
125 'SharedWorker', # Workers | |
126 'SubtleCrypto', | 128 'SubtleCrypto', |
127 'WebKitCSSFilterValue', | 129 'WebKitCSSFilterValue', |
128 'WebKitCSSMatrix', | 130 'WebKitCSSMatrix', |
129 'WebKitCSSMixFunctionValue', | 131 'WebKitCSSMixFunctionValue', |
130 'WebKitCSSTransformValue', | 132 'WebKitCSSTransformValue', |
131 'WebKitMediaSource', | 133 'WebKitMediaSource', |
132 'WebKitNotification', | 134 'WebKitNotification', |
133 'WebKitSourceBuffer', | 135 'WebKitSourceBuffer', |
134 'WebKitSourceBufferList', | 136 'WebKitSourceBufferList', |
135 'WorkerLocation', # Workers | 137 'WorkerLocation', # Workers |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 'DirectoryEntry.getDirectory': '_getDirectory', | 353 'DirectoryEntry.getDirectory': '_getDirectory', |
352 'DirectoryEntry.getFile': '_getFile', | 354 'DirectoryEntry.getFile': '_getFile', |
353 'Document.createCDATASection': 'createCDataSection', | 355 'Document.createCDATASection': 'createCDataSection', |
354 'Document.defaultView': 'window', | 356 'Document.defaultView': 'window', |
355 'Window.CSS': 'css', | 357 'Window.CSS': 'css', |
356 'Window.webkitConvertPointFromNodeToPage': '_convertPointFromNodeToPage', | 358 'Window.webkitConvertPointFromNodeToPage': '_convertPointFromNodeToPage', |
357 'Window.webkitConvertPointFromPageToNode': '_convertPointFromPageToNode', | 359 'Window.webkitConvertPointFromPageToNode': '_convertPointFromPageToNode', |
358 'Window.webkitNotifications': 'notifications', | 360 'Window.webkitNotifications': 'notifications', |
359 'Window.webkitRequestFileSystem': '_requestFileSystem', | 361 'Window.webkitRequestFileSystem': '_requestFileSystem', |
360 'Window.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', | 362 'Window.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', |
361 'Element.webkitMatchesSelector' : 'matches', | |
362 'Navigator.webkitGetUserMedia': '_getUserMedia', | 363 'Navigator.webkitGetUserMedia': '_getUserMedia', |
363 'Node.appendChild': 'append', | 364 'Node.appendChild': 'append', |
364 'Node.cloneNode': 'clone', | 365 'Node.cloneNode': 'clone', |
365 'Node.nextSibling': 'nextNode', | 366 'Node.nextSibling': 'nextNode', |
366 'Node.parentElement': 'parent', | 367 'Node.parentElement': 'parent', |
367 'Node.previousSibling': 'previousNode', | 368 'Node.previousSibling': 'previousNode', |
368 'Node.textContent': 'text', | 369 'Node.textContent': 'text', |
369 'SVGElement.className': '_svgClassName', | 370 'SVGElement.className': '_svgClassName', |
370 'SVGStopElement.offset': 'gradientOffset', | 371 'SVGStopElement.offset': 'gradientOffset', |
371 'URL.createObjectURL': 'createObjectUrl', | 372 'URL.createObjectURL': 'createObjectUrl', |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 | 967 |
967 # We're looking for a sequence of letters which start with capital letter | 968 # We're looking for a sequence of letters which start with capital letter |
968 # then a series of caps and finishes with either the end of the string or | 969 # then a series of caps and finishes with either the end of the string or |
969 # a capital letter. | 970 # a capital letter. |
970 # The [0-9] check is for names such as 2D or 3D | 971 # The [0-9] check is for names such as 2D or 3D |
971 # The following test cases should match as: | 972 # The following test cases should match as: |
972 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 973 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
973 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 974 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
974 # IFrameElement: (I)()(F)rameElement (no change) | 975 # IFrameElement: (I)()(F)rameElement (no change) |
975 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 976 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |