OLD | NEW |
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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 'Performance.webkitGetEntries', | 746 'Performance.webkitGetEntries', |
747 'Performance.webkitGetEntriesByName', | 747 'Performance.webkitGetEntriesByName', |
748 'Performance.webkitGetEntriesByType', | 748 'Performance.webkitGetEntriesByType', |
749 'Performance.webkitMark', | 749 'Performance.webkitMark', |
750 'Performance.webkitMeasure', | 750 'Performance.webkitMeasure', |
751 'ShadowRoot.getElementsByTagNameNS', | 751 'ShadowRoot.getElementsByTagNameNS', |
752 'SVGElement.getPresentationAttribute', | 752 'SVGElement.getPresentationAttribute', |
753 'SVGElementInstance.on:wheel', | 753 'SVGElementInstance.on:wheel', |
754 'WheelEvent.wheelDelta', | 754 'WheelEvent.wheelDelta', |
755 'Window.on:wheel', | 755 'Window.on:wheel', |
| 756 'WindowEventHandlers.on:beforeUnload', |
756 'WorkerGlobalScope.webkitIndexedDB', | 757 'WorkerGlobalScope.webkitIndexedDB', |
757 # TODO(jacobr): should these be removed? | 758 # TODO(jacobr): should these be removed? |
758 'Document.close', | 759 'Document.close', |
759 'Document.hasFocus', | 760 'Document.hasFocus', |
760 ]) | 761 ]) |
761 | 762 |
762 # Manual dart: library name lookup. | 763 # Manual dart: library name lookup. |
763 _library_names = monitored.Dict('htmlrenamer._library_names', { | 764 _library_names = monitored.Dict('htmlrenamer._library_names', { |
764 'ANGLEInstancedArrays': 'web_gl', | 765 'ANGLEInstancedArrays': 'web_gl', |
765 'Database': 'web_sql', | 766 'Database': 'web_sql', |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 | 964 |
964 # We're looking for a sequence of letters which start with capital letter | 965 # 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 | 966 # then a series of caps and finishes with either the end of the string or |
966 # a capital letter. | 967 # a capital letter. |
967 # The [0-9] check is for names such as 2D or 3D | 968 # The [0-9] check is for names such as 2D or 3D |
968 # The following test cases should match as: | 969 # The following test cases should match as: |
969 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 970 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
970 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 971 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
971 # IFrameElement: (I)()(F)rameElement (no change) | 972 # IFrameElement: (I)()(F)rameElement (no change) |
972 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 973 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |