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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent', | 52 'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent', |
53 'RTCErrorCallback': '_RtcErrorCallback', | 53 'RTCErrorCallback': '_RtcErrorCallback', |
54 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', | 54 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', |
55 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. | 55 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. |
56 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. | 56 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. |
57 'SVGGradientElement': '_GradientElement', | 57 'SVGGradientElement': '_GradientElement', |
58 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. | 58 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. |
59 'Stream': 'FileStream', | 59 'Stream': 'FileStream', |
60 'StringCallback': '_StringCallback', | 60 'StringCallback': '_StringCallback', |
61 'WebGLVertexArrayObjectOES': 'VertexArrayObject', | 61 'WebGLVertexArrayObjectOES': 'VertexArrayObject', |
| 62 'WindowTimers': '_WindowTimers', |
62 'XMLHttpRequest': 'HttpRequest', | 63 'XMLHttpRequest': 'HttpRequest', |
63 'XMLHttpRequestUpload': 'HttpRequestUpload', | 64 'XMLHttpRequestUpload': 'HttpRequestUpload', |
64 }, **typed_array_renames)) | 65 }, **typed_array_renames)) |
65 | 66 |
66 # Interfaces that are suppressed, but need to still exist for Dartium and to | 67 # Interfaces that are suppressed, but need to still exist for Dartium and to |
67 # properly wrap DOM objects if/when encountered. | 68 # properly wrap DOM objects if/when encountered. |
68 _removed_html_interfaces = [ | 69 _removed_html_interfaces = [ |
69 'CSSPrimitiveValue', | 70 'CSSPrimitiveValue', |
70 'CSSValue', | 71 'CSSValue', |
71 'Counter', | 72 'Counter', |
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 | 946 |
946 # We're looking for a sequence of letters which start with capital letter | 947 # We're looking for a sequence of letters which start with capital letter |
947 # then a series of caps and finishes with either the end of the string or | 948 # then a series of caps and finishes with either the end of the string or |
948 # a capital letter. | 949 # a capital letter. |
949 # The [0-9] check is for names such as 2D or 3D | 950 # The [0-9] check is for names such as 2D or 3D |
950 # The following test cases should match as: | 951 # The following test cases should match as: |
951 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 952 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
952 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 953 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
953 # IFrameElement: (I)()(F)rameElement (no change) | 954 # IFrameElement: (I)()(F)rameElement (no change) |
954 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 955 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |