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

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

Issue 12212200: "Reverting 18531" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
« no previous file with comments | « tests/html/window_open_test.dart ('k') | tools/dom/src/Timer.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 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 'DOMWindow.getComputedStyle', 187 'DOMWindow.getComputedStyle',
188 ]) 188 ])
189 189
190 # Members from the standard dom that exist in the dart:html library with 190 # Members from the standard dom that exist in the dart:html library with
191 # identical functionality but with cleaner names. 191 # identical functionality but with cleaner names.
192 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { 192 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', {
193 'Document.createCDATASection': 'createCDataSection', 193 'Document.createCDATASection': 'createCDataSection',
194 'Document.defaultView': 'window', 194 'Document.defaultView': 'window',
195 'DOMURL.createObjectURL': 'createObjectUrl', 195 'DOMURL.createObjectURL': 'createObjectUrl',
196 'DOMURL.revokeObjectURL': 'revokeObjectUrl', 196 'DOMURL.revokeObjectURL': 'revokeObjectUrl',
197 'DOMWindow.clearTimeout': '_clearTimeout',
198 'DOMWindow.clearInterval': '_clearInterval',
199 'DOMWindow.setTimeout': '_setTimeout',
200 'DOMWindow.setInterval': '_setInterval',
201 'DOMWindow.webkitConvertPointFromNodeToPage': 'convertPointFromNodeToPage', 197 'DOMWindow.webkitConvertPointFromNodeToPage': 'convertPointFromNodeToPage',
202 'DOMWindow.webkitConvertPointFromPageToNode': 'convertPointFromPageToNode', 198 'DOMWindow.webkitConvertPointFromPageToNode': 'convertPointFromPageToNode',
203 'DOMWindow.webkitNotifications': 'notifications', 199 'DOMWindow.webkitNotifications': 'notifications',
204 'DOMWindow.webkitRequestFileSystem': 'requestFileSystem', 200 'DOMWindow.webkitRequestFileSystem': 'requestFileSystem',
205 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', 201 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl',
206 'DOMWindow.webkitRequestFileSystem': 'requestFileSystem', 202 'DOMWindow.webkitRequestFileSystem': 'requestFileSystem',
207 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', 203 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl',
208 'Element.webkitCreateShadowRoot': 'createShadowRoot', 204 'Element.webkitCreateShadowRoot': 'createShadowRoot',
209 'Element.webkitMatchesSelector' : 'matches', 205 'Element.webkitMatchesSelector' : 'matches',
210 'Navigator.webkitGetUserMedia': '_getUserMedia', 206 'Navigator.webkitGetUserMedia': '_getUserMedia',
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 592
597 # We're looking for a sequence of letters which start with capital letter 593 # We're looking for a sequence of letters which start with capital letter
598 # then a series of caps and finishes with either the end of the string or 594 # then a series of caps and finishes with either the end of the string or
599 # a capital letter. 595 # a capital letter.
600 # The [0-9] check is for names such as 2D or 3D 596 # The [0-9] check is for names such as 2D or 3D
601 # The following test cases should match as: 597 # The following test cases should match as:
602 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 598 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
603 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 599 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
604 # IFrameElement: (I)()(F)rameElement (no change) 600 # IFrameElement: (I)()(F)rameElement (no change)
605 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 601 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tests/html/window_open_test.dart ('k') | tools/dom/src/Timer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698