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 re | 5 import re |
6 | 6 |
7 html_interface_renames = { | 7 html_interface_renames = { |
8 'DOMCoreException': 'DOMException', | 8 'DOMCoreException': 'DOMException', |
9 'DOMFormData': 'FormData', | 9 'DOMFormData': 'FormData', |
10 'DOMURL': 'Url', | 10 'DOMURL': 'Url', |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 'Element.hasAttribute', | 82 'Element.hasAttribute', |
83 'Element.hasAttributeNS', | 83 'Element.hasAttributeNS', |
84 'Element.lastElementChild', | 84 'Element.lastElementChild', |
85 'Element.querySelector', | 85 'Element.querySelector', |
86 'Element.querySelectorAll', | 86 'Element.querySelectorAll', |
87 'Element.removeAttribute', | 87 'Element.removeAttribute', |
88 'Element.removeAttributeNS', | 88 'Element.removeAttributeNS', |
89 'Element.setAttribute', | 89 'Element.setAttribute', |
90 'Element.setAttributeNS', | 90 'Element.setAttributeNS', |
91 'Event.initEvent', | 91 'Event.initEvent', |
| 92 'UIEvent.initUIEvent', |
92 'EventTarget.addEventListener', | 93 'EventTarget.addEventListener', |
93 'EventTarget.dispatchEvent', | 94 'EventTarget.dispatchEvent', |
94 'EventTarget.removeEventListener', | 95 'EventTarget.removeEventListener', |
| 96 'KeyboardEvent.keyIdentifier', |
95 'LocalWindow.getComputedStyle', | 97 'LocalWindow.getComputedStyle', |
96 'MouseEvent.initMouseEvent', | 98 'MouseEvent.initMouseEvent', |
97 'Node.appendChild', | 99 'Node.appendChild', |
98 'Node.attributes', | 100 'Node.attributes', |
99 'Node.childNodes', | 101 'Node.childNodes', |
100 'Node.firstChild', | 102 'Node.firstChild', |
101 'Node.lastChild', | 103 'Node.lastChild', |
102 "Node.localName", | 104 "Node.localName", |
103 'Node.namespaceURI', | 105 'Node.namespaceURI', |
104 'Node.removeChild', | 106 'Node.removeChild', |
105 'Node.replaceChild', | 107 'Node.replaceChild', |
| 108 'UIEvent.keyCode', |
| 109 'UIEvent.charCode', |
106 'ShadowRoot.getElementById', | 110 'ShadowRoot.getElementById', |
107 'ShadowRoot.getElementsByClassName', | 111 'ShadowRoot.getElementsByClassName', |
108 'ShadowRoot.getElementsByTagName', | 112 'ShadowRoot.getElementsByTagName', |
109 'Storage.clear', | 113 'Storage.clear', |
110 'Storage.getItem', | 114 'Storage.getItem', |
111 'Storage.key', | 115 'Storage.key', |
112 'Storage.length', | 116 'Storage.length', |
113 'Storage.removeItem', | 117 'Storage.removeItem', |
114 'Storage.setItem', | 118 'Storage.setItem', |
115 'WheelEvent.wheelDeltaX', | 119 'WheelEvent.wheelDeltaX', |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 "HTMLFrameElement.*", | 254 "HTMLFrameElement.*", |
251 "HTMLFrameSetElement.*", | 255 "HTMLFrameSetElement.*", |
252 "HtmlElement.version", | 256 "HtmlElement.version", |
253 "HtmlElement.manifest", | 257 "HtmlElement.manifest", |
254 "Document.version", | 258 "Document.version", |
255 "Document.manifest", | 259 "Document.manifest", |
256 "HTMLIsIndexElement.*", | 260 "HTMLIsIndexElement.*", |
257 "MenuElement.compact", | 261 "MenuElement.compact", |
258 "HTMLOptionsCollection.*", | 262 "HTMLOptionsCollection.*", |
259 "HTMLPropertiesCollection.*", | 263 "HTMLPropertiesCollection.*", |
| 264 "KeyboardEvent.initKeyboardEvent", |
260 "SelectElement.remove", | 265 "SelectElement.remove", |
261 "NamedNodeMap.*", | 266 "NamedNodeMap.*", |
262 "Node.isEqualNode", | 267 "Node.isEqualNode", |
263 "Node.get:TEXT_NODE", | 268 "Node.get:TEXT_NODE", |
264 "Node.hasAttributes", | 269 "Node.hasAttributes", |
265 "Node.get:DOCUMENT_TYPE_NODE", | 270 "Node.get:DOCUMENT_TYPE_NODE", |
266 "Node.get:DOCUMENT_POSITION_FOLLOWING", | 271 "Node.get:DOCUMENT_POSITION_FOLLOWING", |
267 "Node.lookupNamespaceURI", | 272 "Node.lookupNamespaceURI", |
268 "Node.get:ELEMENT_NODE", | 273 "Node.get:ELEMENT_NODE", |
269 "Node.get:DOCUMENT_FRAGMENT_NODE", | 274 "Node.get:DOCUMENT_FRAGMENT_NODE", |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 | 392 |
388 # We're looking for a sequence of letters which start with capital letter | 393 # We're looking for a sequence of letters which start with capital letter |
389 # then a series of caps and finishes with either the end of the string or | 394 # then a series of caps and finishes with either the end of the string or |
390 # a capital letter. | 395 # a capital letter. |
391 # The [0-9] check is for names such as 2D or 3D | 396 # The [0-9] check is for names such as 2D or 3D |
392 # The following test cases should match as: | 397 # The following test cases should match as: |
393 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 398 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
394 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 399 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
395 # IFrameElement: (I)()(F)rameElement (no change) | 400 # IFrameElement: (I)()(F)rameElement (no change) |
396 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 401 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |