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

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

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

Powered by Google App Engine
This is Rietveld 408576698