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

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

Issue 166213002: Version 1.2.0-dev.5.7 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 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 | « tools/dom/dom.json ('k') | tools/dom/src/EventStreamProvider.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 typed_array_renames = { 9 typed_array_renames = {
10 'ArrayBuffer': 'ByteBuffer', 10 'ArrayBuffer': 'ByteBuffer',
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 'CDataSection', 71 'CDataSection',
72 'CSSPrimitiveValue', 72 'CSSPrimitiveValue',
73 'CSSUnknownRule', 73 'CSSUnknownRule',
74 'CSSValue', 74 'CSSValue',
75 'Counter', 75 'Counter',
76 'DOMFileSystemSync', # Workers 76 'DOMFileSystemSync', # Workers
77 'DatabaseSync', # Workers 77 'DatabaseSync', # Workers
78 'DataView', # Typed arrays 78 'DataView', # Typed arrays
79 'DirectoryEntrySync', # Workers 79 'DirectoryEntrySync', # Workers
80 'DirectoryReaderSync', # Workers 80 'DirectoryReaderSync', # Workers
81 'DocumentType',
81 'EntrySync', # Workers 82 'EntrySync', # Workers
82 'FileEntrySync', # Workers 83 'FileEntrySync', # Workers
83 'FileReaderSync', # Workers 84 'FileReaderSync', # Workers
84 'FileWriterSync', # Workers 85 'FileWriterSync', # Workers
85 'HTMLAllCollection', 86 'HTMLAllCollection',
86 'HTMLAppletElement', 87 'HTMLAppletElement',
87 'HTMLBaseFontElement', 88 'HTMLBaseFontElement',
88 'HTMLDirectoryElement', 89 'HTMLDirectoryElement',
89 'HTMLFontElement', 90 'HTMLFontElement',
90 'HTMLFrameElement', 91 'HTMLFrameElement',
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 'HTMLBodyElement.background', 621 'HTMLBodyElement.background',
621 'HTMLBodyElement.bgColor', 622 'HTMLBodyElement.bgColor',
622 'HTMLBodyElement.link', 623 'HTMLBodyElement.link',
623 'HTMLBodyElement.on:beforeUnload', 624 'HTMLBodyElement.on:beforeUnload',
624 'HTMLBodyElement.text', 625 'HTMLBodyElement.text',
625 'HTMLBodyElement.vLink', 626 'HTMLBodyElement.vLink',
626 'HTMLDListElement.compact', 627 'HTMLDListElement.compact',
627 'HTMLDirectoryElement.*', 628 'HTMLDirectoryElement.*',
628 'HTMLDivElement.align', 629 'HTMLDivElement.align',
629 'HTMLFontElement.*', 630 'HTMLFontElement.*',
631 'HTMLFormControlsCollection.__getter__',
630 'HTMLFormElement.get:elements', 632 'HTMLFormElement.get:elements',
631 'HTMLFrameElement.*', 633 'HTMLFrameElement.*',
632 'HTMLFrameSetElement.*', 634 'HTMLFrameSetElement.*',
633 'HTMLHRElement.align', 635 'HTMLHRElement.align',
634 'HTMLHRElement.noShade', 636 'HTMLHRElement.noShade',
635 'HTMLHRElement.size', 637 'HTMLHRElement.size',
636 'HTMLHRElement.width', 638 'HTMLHRElement.width',
637 'HTMLHeadElement.profile', 639 'HTMLHeadElement.profile',
638 'HTMLHeadingElement.align', 640 'HTMLHeadingElement.align',
639 'HTMLHtmlElement.manifest', 641 'HTMLHtmlElement.manifest',
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 'Performance.webkitGetEntries', 748 'Performance.webkitGetEntries',
747 'Performance.webkitGetEntriesByName', 749 'Performance.webkitGetEntriesByName',
748 'Performance.webkitGetEntriesByType', 750 'Performance.webkitGetEntriesByType',
749 'Performance.webkitMark', 751 'Performance.webkitMark',
750 'Performance.webkitMeasure', 752 'Performance.webkitMeasure',
751 'ShadowRoot.getElementsByTagNameNS', 753 'ShadowRoot.getElementsByTagNameNS',
752 'SVGElement.getPresentationAttribute', 754 'SVGElement.getPresentationAttribute',
753 'SVGElementInstance.on:wheel', 755 'SVGElementInstance.on:wheel',
754 'WheelEvent.wheelDelta', 756 'WheelEvent.wheelDelta',
755 'Window.on:wheel', 757 'Window.on:wheel',
758 'WindowEventHandlers.on:beforeUnload',
756 'WorkerGlobalScope.webkitIndexedDB', 759 'WorkerGlobalScope.webkitIndexedDB',
757 # TODO(jacobr): should these be removed? 760 # TODO(jacobr): should these be removed?
758 'Document.close', 761 'Document.close',
759 'Document.hasFocus', 762 'Document.hasFocus',
760 ]) 763 ])
761 764
762 # Manual dart: library name lookup. 765 # Manual dart: library name lookup.
763 _library_names = monitored.Dict('htmlrenamer._library_names', { 766 _library_names = monitored.Dict('htmlrenamer._library_names', {
764 'ANGLEInstancedArrays': 'web_gl', 767 'ANGLEInstancedArrays': 'web_gl',
765 'Database': 'web_sql', 768 'Database': 'web_sql',
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 966
964 # We're looking for a sequence of letters which start with capital letter 967 # We're looking for a sequence of letters which start with capital letter
965 # then a series of caps and finishes with either the end of the string or 968 # then a series of caps and finishes with either the end of the string or
966 # a capital letter. 969 # a capital letter.
967 # The [0-9] check is for names such as 2D or 3D 970 # The [0-9] check is for names such as 2D or 3D
968 # The following test cases should match as: 971 # The following test cases should match as:
969 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 972 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
970 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 973 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
971 # IFrameElement: (I)()(F)rameElement (no change) 974 # IFrameElement: (I)()(F)rameElement (no change)
972 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 975 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tools/dom/dom.json ('k') | tools/dom/src/EventStreamProvider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698