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

Side by Side Diff: tools/dom/scripts/htmlrenamer.py

Issue 11931009: Adding support for the MouseWheel event in Streams. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding more dynamic checking for which init function to use. Created 7 years, 11 months 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
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 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 'Storage.getItem', 124 'Storage.getItem',
125 'Storage.key', 125 'Storage.key',
126 'Storage.length', 126 'Storage.length',
127 'Storage.removeItem', 127 'Storage.removeItem',
128 'Storage.setItem', 128 'Storage.setItem',
129 'UIEvent.charCode', 129 'UIEvent.charCode',
130 'UIEvent.initUIEvent', 130 'UIEvent.initUIEvent',
131 'UIEvent.keyCode', 131 'UIEvent.keyCode',
132 'WheelEvent.wheelDeltaX', 132 'WheelEvent.wheelDeltaX',
133 'WheelEvent.wheelDeltaY', 133 'WheelEvent.wheelDeltaY',
134 'WheelEvent.initWebKitWheelEvent',
134 'DOMWindow.getComputedStyle', 135 'DOMWindow.getComputedStyle',
135 ]) 136 ])
136 137
137 # Members from the standard dom that exist in the dart:html library with 138 # Members from the standard dom that exist in the dart:html library with
138 # identical functionality but with cleaner names. 139 # identical functionality but with cleaner names.
139 _renamed_html_members = monitored.Dict('htmlrenamer._renamed_html_members', { 140 _renamed_html_members = monitored.Dict('htmlrenamer._renamed_html_members', {
140 'DOMURL.createObjectURL': 'createObjectUrl', 141 'DOMURL.createObjectURL': 'createObjectUrl',
141 'DOMURL.revokeObjectURL': 'revokeObjectUrl', 142 'DOMURL.revokeObjectURL': 'revokeObjectUrl',
142 'DOMWindow.webkitRequestFileSystem': 'requestFileSystem', 143 'DOMWindow.webkitRequestFileSystem': 'requestFileSystem',
143 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', 144 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl',
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 489
489 # We're looking for a sequence of letters which start with capital letter 490 # We're looking for a sequence of letters which start with capital letter
490 # then a series of caps and finishes with either the end of the string or 491 # then a series of caps and finishes with either the end of the string or
491 # a capital letter. 492 # a capital letter.
492 # The [0-9] check is for names such as 2D or 3D 493 # The [0-9] check is for names such as 2D or 3D
493 # The following test cases should match as: 494 # The following test cases should match as:
494 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 495 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
495 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 496 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
496 # IFrameElement: (I)()(F)rameElement (no change) 497 # IFrameElement: (I)()(F)rameElement (no change)
497 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 498 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698