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

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

Issue 12114014: Renaming Clipboard to DataTransfer (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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/dart2js_KeyEvent.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',
11 'Clipboard': 'DataTransfer',
11 'DOMApplicationCache': 'ApplicationCache', 12 'DOMApplicationCache': 'ApplicationCache',
12 'DOMCoreException': 'DomException', 13 'DOMCoreException': 'DomException',
13 'DOMFileSystem': 'FileSystem', 14 'DOMFileSystem': 'FileSystem',
14 'DOMFileSystemSync': 'FileSystemSync', 15 'DOMFileSystemSync': 'FileSystemSync',
15 'DOMFormData': 'FormData', 16 'DOMFormData': 'FormData',
16 'DOMURL': 'Url', 17 'DOMURL': 'Url',
17 'DOMWindow': 'Window', 18 'DOMWindow': 'Window',
18 'HTMLAppletElement' : '_AppletElement', 19 'HTMLAppletElement' : '_AppletElement',
19 'HTMLBaseFontElement' : '_BaseFontElement', 20 'HTMLBaseFontElement' : '_BaseFontElement',
20 'HTMLDirectoryElement' : '_DirectoryElement', 21 'HTMLDirectoryElement' : '_DirectoryElement',
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 547
547 # We're looking for a sequence of letters which start with capital letter 548 # We're looking for a sequence of letters which start with capital letter
548 # then a series of caps and finishes with either the end of the string or 549 # then a series of caps and finishes with either the end of the string or
549 # a capital letter. 550 # a capital letter.
550 # The [0-9] check is for names such as 2D or 3D 551 # The [0-9] check is for names such as 2D or 3D
551 # The following test cases should match as: 552 # The following test cases should match as:
552 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 553 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
553 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 554 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
554 # IFrameElement: (I)()(F)rameElement (no change) 555 # IFrameElement: (I)()(F)rameElement (no change)
555 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 556 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') | tools/dom/src/dart2js_KeyEvent.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698