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

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

Issue 23151005: Move _HTMLElement to HtmlElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regen dart:html Created 7 years, 4 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 typed_array_renames = { 9 typed_array_renames = {
10 'ArrayBuffer': 'ByteBuffer', 10 'ArrayBuffer': 'ByteBuffer',
(...skipping 21 matching lines...) Expand all
32 'DOMFileSystem': 'FileSystem', 32 'DOMFileSystem': 'FileSystem',
33 'WebKitPoint': '_DomPoint', 33 'WebKitPoint': '_DomPoint',
34 'Entity': '_Entity', # Not sure if we want to expose this yet, may conflict with other libs. 34 'Entity': '_Entity', # Not sure if we want to expose this yet, may conflict with other libs.
35 'EntryCallback': '_EntryCallback', 35 'EntryCallback': '_EntryCallback',
36 'EntriesCallback': '_EntriesCallback', 36 'EntriesCallback': '_EntriesCallback',
37 'ErrorCallback': '_ErrorCallback', 37 'ErrorCallback': '_ErrorCallback',
38 'FileCallback': '_FileCallback', 38 'FileCallback': '_FileCallback',
39 'FileSystemCallback': '_FileSystemCallback', 39 'FileSystemCallback': '_FileSystemCallback',
40 'FileWriterCallback': '_FileWriterCallback', 40 'FileWriterCallback': '_FileWriterCallback',
41 'HTMLDocument' : 'HtmlDocument', 41 'HTMLDocument' : 'HtmlDocument',
42 'HTMLElement' : 'HtmlElement',
43 'HTMLHtmlElement' : 'HtmlHtmlElement',
42 'IDBFactory': 'IdbFactory', # Manual to avoid name conflicts. 44 'IDBFactory': 'IdbFactory', # Manual to avoid name conflicts.
43 'Key': 'CryptoKey', 45 'Key': 'CryptoKey',
44 'NamedNodeMap': '_NamedNodeMap', 46 'NamedNodeMap': '_NamedNodeMap',
45 'NavigatorUserMediaErrorCallback': '_NavigatorUserMediaErrorCallback', 47 'NavigatorUserMediaErrorCallback': '_NavigatorUserMediaErrorCallback',
46 'NavigatorUserMediaSuccessCallback': '_NavigatorUserMediaSuccessCallback', 48 'NavigatorUserMediaSuccessCallback': '_NavigatorUserMediaSuccessCallback',
47 'NotificationPermissionCallback': '_NotificationPermissionCallback', 49 'NotificationPermissionCallback': '_NotificationPermissionCallback',
48 'PositionCallback': '_PositionCallback', 50 'PositionCallback': '_PositionCallback',
49 'PositionErrorCallback': '_PositionErrorCallback', 51 'PositionErrorCallback': '_PositionErrorCallback',
50 'RTCDTMFSender': 'RtcDtmfSender', 52 'RTCDTMFSender': 'RtcDtmfSender',
51 'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent', 53 'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent',
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 866
865 # We're looking for a sequence of letters which start with capital letter 867 # We're looking for a sequence of letters which start with capital letter
866 # then a series of caps and finishes with either the end of the string or 868 # then a series of caps and finishes with either the end of the string or
867 # a capital letter. 869 # a capital letter.
868 # The [0-9] check is for names such as 2D or 3D 870 # The [0-9] check is for names such as 2D or 3D
869 # The following test cases should match as: 871 # The following test cases should match as:
870 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 872 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
871 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 873 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
872 # IFrameElement: (I)()(F)rameElement (no change) 874 # IFrameElement: (I)()(F)rameElement (no change)
873 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 875 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | tools/dom/templates/html/dart2js/html_dart2js.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698