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

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: 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 'Storage.getItem', 123 'Storage.getItem',
124 'Storage.key', 124 'Storage.key',
125 'Storage.length', 125 'Storage.length',
126 'Storage.removeItem', 126 'Storage.removeItem',
127 'Storage.setItem', 127 'Storage.setItem',
128 'UIEvent.charCode', 128 'UIEvent.charCode',
129 'UIEvent.initUIEvent', 129 'UIEvent.initUIEvent',
130 'UIEvent.keyCode', 130 'UIEvent.keyCode',
131 'WheelEvent.wheelDeltaX', 131 'WheelEvent.wheelDeltaX',
132 'WheelEvent.wheelDeltaY', 132 'WheelEvent.wheelDeltaY',
133 'WheelEvent.initWebKitWheelEvent',
133 'DOMWindow.getComputedStyle', 134 'DOMWindow.getComputedStyle',
134 ]) 135 ])
135 136
136 # Members from the standard dom that exist in the dart:html library with 137 # Members from the standard dom that exist in the dart:html library with
137 # identical functionality but with cleaner names. 138 # identical functionality but with cleaner names.
138 _renamed_html_members = monitored.Dict('htmlrenamer._renamed_html_members', { 139 _renamed_html_members = monitored.Dict('htmlrenamer._renamed_html_members', {
139 'DOMURL.createObjectURL': 'createObjectUrl', 140 'DOMURL.createObjectURL': 'createObjectUrl',
140 'DOMURL.revokeObjectURL': 'revokeObjectUrl', 141 'DOMURL.revokeObjectURL': 'revokeObjectUrl',
141 'DOMWindow.webkitNotifications': 'notifications', 142 'DOMWindow.webkitNotifications': 'notifications',
142 'DOMWindow.webkitRequestFileSystem': 'requestFileSystem', 143 'DOMWindow.webkitRequestFileSystem': 'requestFileSystem',
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 517
517 # We're looking for a sequence of letters which start with capital letter 518 # We're looking for a sequence of letters which start with capital letter
518 # then a series of caps and finishes with either the end of the string or 519 # then a series of caps and finishes with either the end of the string or
519 # a capital letter. 520 # a capital letter.
520 # The [0-9] check is for names such as 2D or 3D 521 # The [0-9] check is for names such as 2D or 3D
521 # The following test cases should match as: 522 # The following test cases should match as:
522 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 523 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
523 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 524 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
524 # IFrameElement: (I)()(F)rameElement (no change) 525 # IFrameElement: (I)()(F)rameElement (no change)
525 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 526 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698