Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: sdk/lib/html/scripts/htmlrenamer.py

Issue 11451015: Fix dartium constructor for KeyboardEvent. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/html/scripts/systemhtml.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'CDATASection': 'CDataSection', 8 'CDATASection': 'CDataSection',
9 'DOMApplicationCache': 'ApplicationCache', 9 'DOMApplicationCache': 'ApplicationCache',
10 'DOMCoreException': 'DomException', 10 'DOMCoreException': 'DomException',
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 'Element.setAttributeNS', 96 'Element.setAttributeNS',
97 'ElementTraversal.childElementCount', 97 'ElementTraversal.childElementCount',
98 'ElementTraversal.firstElementChild', 98 'ElementTraversal.firstElementChild',
99 'ElementTraversal.lastElementChild', 99 'ElementTraversal.lastElementChild',
100 'Event.initEvent', 100 'Event.initEvent',
101 'UIEvent.initUIEvent', 101 'UIEvent.initUIEvent',
102 'EventTarget.addEventListener', 102 'EventTarget.addEventListener',
103 'EventTarget.dispatchEvent', 103 'EventTarget.dispatchEvent',
104 'EventTarget.removeEventListener', 104 'EventTarget.removeEventListener',
105 'KeyboardEvent.keyIdentifier', 105 'KeyboardEvent.keyIdentifier',
106 'KeyboardEvent.initKeyboardEvent',
106 'LocalWindow.getComputedStyle', 107 'LocalWindow.getComputedStyle',
107 'MouseEvent.initMouseEvent', 108 'MouseEvent.initMouseEvent',
108 'Node.appendChild', 109 'Node.appendChild',
109 'Node.attributes', 110 'Node.attributes',
110 'Node.childNodes', 111 'Node.childNodes',
111 'Node.firstChild', 112 'Node.firstChild',
112 'Node.lastChild', 113 'Node.lastChild',
113 "Node.localName", 114 "Node.localName",
114 'Node.namespaceURI', 115 'Node.namespaceURI',
115 'Node.removeChild', 116 'Node.removeChild',
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 "HTMLFrameElement.*", 264 "HTMLFrameElement.*",
264 "HTMLFrameSetElement.*", 265 "HTMLFrameSetElement.*",
265 "HtmlElement.version", 266 "HtmlElement.version",
266 "HtmlElement.manifest", 267 "HtmlElement.manifest",
267 "Document.version", 268 "Document.version",
268 "Document.manifest", 269 "Document.manifest",
269 "HTMLIsIndexElement.*", 270 "HTMLIsIndexElement.*",
270 "MenuElement.compact", 271 "MenuElement.compact",
271 "HTMLOptionsCollection.*", 272 "HTMLOptionsCollection.*",
272 "HTMLPropertiesCollection.*", 273 "HTMLPropertiesCollection.*",
273 "KeyboardEvent.initKeyboardEvent",
274 "SelectElement.remove", 274 "SelectElement.remove",
275 "NamedNodeMap.*", 275 "NamedNodeMap.*",
276 "Node.isEqualNode", 276 "Node.isEqualNode",
277 "Node.get:TEXT_NODE", 277 "Node.get:TEXT_NODE",
278 "Node.hasAttributes", 278 "Node.hasAttributes",
279 "Node.get:DOCUMENT_TYPE_NODE", 279 "Node.get:DOCUMENT_TYPE_NODE",
280 "Node.get:DOCUMENT_POSITION_FOLLOWING", 280 "Node.get:DOCUMENT_POSITION_FOLLOWING",
281 "Node.lookupNamespaceURI", 281 "Node.lookupNamespaceURI",
282 "Node.get:ELEMENT_NODE", 282 "Node.get:ELEMENT_NODE",
283 "Node.get:DOCUMENT_FRAGMENT_NODE", 283 "Node.get:DOCUMENT_FRAGMENT_NODE",
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 416
417 # We're looking for a sequence of letters which start with capital letter 417 # We're looking for a sequence of letters which start with capital letter
418 # then a series of caps and finishes with either the end of the string or 418 # then a series of caps and finishes with either the end of the string or
419 # a capital letter. 419 # a capital letter.
420 # The [0-9] check is for names such as 2D or 3D 420 # The [0-9] check is for names such as 2D or 3D
421 # The following test cases should match as: 421 # The following test cases should match as:
422 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 422 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
423 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 423 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
424 # IFrameElement: (I)()(F)rameElement (no change) 424 # IFrameElement: (I)()(F)rameElement (no change)
425 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 425 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/html/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698