| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 'IDBObjectStore.count', | 183 'IDBObjectStore.count', |
| 184 'IDBObjectStore.createIndex', | 184 'IDBObjectStore.createIndex', |
| 185 'IDBObjectStore.delete', | 185 'IDBObjectStore.delete', |
| 186 'IDBObjectStore.getObject', | 186 'IDBObjectStore.getObject', |
| 187 'IDBObjectStore.openCursor', | 187 'IDBObjectStore.openCursor', |
| 188 'IDBObjectStore.put', | 188 'IDBObjectStore.put', |
| 189 'KeyboardEvent.initKeyboardEvent', | 189 'KeyboardEvent.initKeyboardEvent', |
| 190 'KeyboardEvent.keyIdentifier', | 190 'KeyboardEvent.keyIdentifier', |
| 191 'MessageEvent.initMessageEvent', | 191 'MessageEvent.initMessageEvent', |
| 192 'MouseEvent.initMouseEvent', | 192 'MouseEvent.initMouseEvent', |
| 193 'MouseEvent.clientX', |
| 194 'MouseEvent.clientY', |
| 195 'MouseEvent.webkitMovementX', |
| 196 'MouseEvent.webkitMovementY', |
| 197 'MouseEvent.offsetX', |
| 198 'MouseEvent.offsetY', |
| 199 'MouseEvent.screenX', |
| 200 'MouseEvent.screenY', |
| 193 'MutationEvent.initMutationEvent', | 201 'MutationEvent.initMutationEvent', |
| 194 'Node.appendChild', | 202 'Node.appendChild', |
| 195 'Node.attributes', | 203 'Node.attributes', |
| 196 'Node.childNodes', | 204 'Node.childNodes', |
| 197 'Node.firstChild', | 205 'Node.firstChild', |
| 198 'Node.lastChild', | 206 'Node.lastChild', |
| 199 'Node.localName', | 207 'Node.localName', |
| 200 'Node.namespaceURI', | 208 'Node.namespaceURI', |
| 201 'Node.removeChild', | 209 'Node.removeChild', |
| 202 'Node.replaceChild', | 210 'Node.replaceChild', |
| 203 'ShadowRoot.getElementById', | 211 'ShadowRoot.getElementById', |
| 204 'ShadowRoot.getElementsByClassName', | 212 'ShadowRoot.getElementsByClassName', |
| 205 'ShadowRoot.getElementsByTagName', | 213 'ShadowRoot.getElementsByTagName', |
| 206 'Storage.clear', | 214 'Storage.clear', |
| 207 'Storage.getItem', | 215 'Storage.getItem', |
| 208 'Storage.key', | 216 'Storage.key', |
| 209 'Storage.length', | 217 'Storage.length', |
| 210 'Storage.removeItem', | 218 'Storage.removeItem', |
| 211 'Storage.setItem', | 219 'Storage.setItem', |
| 212 'StorageEvent.initStorageEvent', | 220 'StorageEvent.initStorageEvent', |
| 213 'TextEvent.initTextEvent', | 221 'TextEvent.initTextEvent', |
| 222 'Touch.clientX', |
| 223 'Touch.clientY', |
| 224 'Touch.pageX', |
| 225 'Touch.pageY', |
| 226 'Touch.screenX', |
| 227 'Touch.screenY', |
| 214 'TouchEvent.initTouchEvent', | 228 'TouchEvent.initTouchEvent', |
| 215 'UIEvent.charCode', | 229 'UIEvent.charCode', |
| 216 'UIEvent.initUIEvent', | 230 'UIEvent.initUIEvent', |
| 217 'UIEvent.keyCode', | 231 'UIEvent.keyCode', |
| 232 'UIEvent.layerX', |
| 233 'UIEvent.layerY', |
| 234 'UIEvent.pageX', |
| 235 'UIEvent.pageY', |
| 218 'WheelEvent.wheelDeltaX', | 236 'WheelEvent.wheelDeltaX', |
| 219 'WheelEvent.wheelDeltaY', | 237 'WheelEvent.wheelDeltaY', |
| 220 'WheelEvent.initWebKitWheelEvent', | 238 'WheelEvent.initWebKitWheelEvent', |
| 221 'DOMWindow.getComputedStyle', | 239 'DOMWindow.getComputedStyle', |
| 222 ]) | 240 ]) |
| 223 | 241 |
| 224 # Members from the standard dom that exist in the dart:html library with | 242 # Members from the standard dom that exist in the dart:html library with |
| 225 # identical functionality but with cleaner names. | 243 # identical functionality but with cleaner names. |
| 226 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { | 244 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { |
| 227 'Document.createCDATASection': 'createCDataSection', | 245 'Document.createCDATASection': 'createCDataSection', |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 | 652 |
| 635 # We're looking for a sequence of letters which start with capital letter | 653 # We're looking for a sequence of letters which start with capital letter |
| 636 # then a series of caps and finishes with either the end of the string or | 654 # then a series of caps and finishes with either the end of the string or |
| 637 # a capital letter. | 655 # a capital letter. |
| 638 # The [0-9] check is for names such as 2D or 3D | 656 # The [0-9] check is for names such as 2D or 3D |
| 639 # The following test cases should match as: | 657 # The following test cases should match as: |
| 640 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 658 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 641 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 659 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 642 # IFrameElement: (I)()(F)rameElement (no change) | 660 # IFrameElement: (I)()(F)rameElement (no change) |
| 643 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 661 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |