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

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

Issue 1173403004: Changed to use JSInterop (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Re-gen'd somehow diffs stopped showing up in CL Created 5 years, 5 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
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | tools/dom/scripts/systemhtml.py » ('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 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 'MouseEvent.y', 780 'MouseEvent.y',
781 'Navigator.registerServiceWorker', 781 'Navigator.registerServiceWorker',
782 'Navigator.unregisterServiceWorker', 782 'Navigator.unregisterServiceWorker',
783 'Node.compareDocumentPosition', 783 'Node.compareDocumentPosition',
784 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', 784 'Node.get:DOCUMENT_POSITION_CONTAINED_BY',
785 'Node.get:DOCUMENT_POSITION_CONTAINS', 785 'Node.get:DOCUMENT_POSITION_CONTAINS',
786 'Node.get:DOCUMENT_POSITION_DISCONNECTED', 786 'Node.get:DOCUMENT_POSITION_DISCONNECTED',
787 'Node.get:DOCUMENT_POSITION_FOLLOWING', 787 'Node.get:DOCUMENT_POSITION_FOLLOWING',
788 'Node.get:DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC', 788 'Node.get:DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC',
789 'Node.get:DOCUMENT_POSITION_PRECEDING', 789 'Node.get:DOCUMENT_POSITION_PRECEDING',
790 'Node.get:childNodes',
790 'Node.get:prefix', 791 'Node.get:prefix',
791 'Node.hasAttributes', 792 'Node.hasAttributes',
792 'Node.isDefaultNamespace', 793 'Node.isDefaultNamespace',
793 'Node.isEqualNode', 794 'Node.isEqualNode',
794 'Node.isSameNode', 795 'Node.isSameNode',
795 'Node.isSupported', 796 'Node.isSupported',
796 'Node.lookupNamespaceURI', 797 'Node.lookupNamespaceURI',
797 'Node.lookupPrefix', 798 'Node.lookupPrefix',
798 'Node.normalize', 799 'Node.normalize',
799 'Node.set:nodeValue', 800 'Node.set:nodeValue',
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 1030
1030 # We're looking for a sequence of letters which start with capital letter 1031 # We're looking for a sequence of letters which start with capital letter
1031 # then a series of caps and finishes with either the end of the string or 1032 # then a series of caps and finishes with either the end of the string or
1032 # a capital letter. 1033 # a capital letter.
1033 # The [0-9] check is for names such as 2D or 3D 1034 # The [0-9] check is for names such as 2D or 3D
1034 # The following test cases should match as: 1035 # The following test cases should match as:
1035 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 1036 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
1036 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 1037 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
1037 # IFrameElement: (I)()(F)rameElement (no change) 1038 # IFrameElement: (I)()(F)rameElement (no change)
1038 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 1039 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698