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

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

Issue 11416249: Make KeyboardEvent cross-browser consistent. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: moved instance variables to constructor 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/src/KeyCode.dart » ('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 '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
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
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 402
398 # We're looking for a sequence of letters which start with capital letter 403 # We're looking for a sequence of letters which start with capital letter
399 # then a series of caps and finishes with either the end of the string or 404 # then a series of caps and finishes with either the end of the string or
400 # a capital letter. 405 # a capital letter.
401 # The [0-9] check is for names such as 2D or 3D 406 # The [0-9] check is for names such as 2D or 3D
402 # The following test cases should match as: 407 # The following test cases should match as:
403 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 408 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
404 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 409 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
405 # IFrameElement: (I)()(F)rameElement (no change) 410 # IFrameElement: (I)()(F)rameElement (no change)
406 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 411 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/src/KeyCode.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698