| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 'RTCDTMFSender': 'RtcDtmfSender', | 53 'RTCDTMFSender': 'RtcDtmfSender', |
| 54 'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent', | 54 'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent', |
| 55 'RTCErrorCallback': '_RtcErrorCallback', | 55 'RTCErrorCallback': '_RtcErrorCallback', |
| 56 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', | 56 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', |
| 57 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. | 57 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. |
| 58 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. | 58 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. |
| 59 'SVGGradientElement': '_GradientElement', | 59 'SVGGradientElement': '_GradientElement', |
| 60 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. | 60 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. |
| 61 'Stream': 'FileStream', | 61 'Stream': 'FileStream', |
| 62 'StringCallback': '_StringCallback', | 62 'StringCallback': '_StringCallback', |
| 63 'WebGLVertexArrayObjectOES': 'VertexArrayObject', | 63 'WebGL2RenderingContext': 'RenderingContext2', |
| 64 'WebGL2RenderingContextBase': 'RenderingContextBase2', |
| 64 'WindowTimers': '_WindowTimers', | 65 'WindowTimers': '_WindowTimers', |
| 65 'XMLHttpRequest': 'HttpRequest', | 66 'XMLHttpRequest': 'HttpRequest', |
| 66 'XMLHttpRequestUpload': 'HttpRequestUpload', | 67 'XMLHttpRequestUpload': 'HttpRequestUpload', |
| 67 'XMLHttpRequestEventTarget': 'HttpRequestEventTarget', | 68 'XMLHttpRequestEventTarget': 'HttpRequestEventTarget', |
| 68 }, **typed_array_renames)) | 69 }, **typed_array_renames)) |
| 69 | 70 |
| 70 # Interfaces that are suppressed, but need to still exist for Dartium and to | 71 # Interfaces that are suppressed, but need to still exist for Dartium and to |
| 71 # properly wrap DOM objects if/when encountered. | 72 # properly wrap DOM objects if/when encountered. |
| 72 _removed_html_interfaces = [ | 73 _removed_html_interfaces = [ |
| 73 'Cache', # TODO: Symbol conflicts with Angular: dartbug.com/20937 | 74 'Cache', # TODO: Symbol conflicts with Angular: dartbug.com/20937 |
| (...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1032 | 1033 |
| 1033 # We're looking for a sequence of letters which start with capital letter | 1034 # We're looking for a sequence of letters which start with capital letter |
| 1034 # then a series of caps and finishes with either the end of the string or | 1035 # then a series of caps and finishes with either the end of the string or |
| 1035 # a capital letter. | 1036 # a capital letter. |
| 1036 # The [0-9] check is for names such as 2D or 3D | 1037 # The [0-9] check is for names such as 2D or 3D |
| 1037 # The following test cases should match as: | 1038 # The following test cases should match as: |
| 1038 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 1039 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 1039 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 1040 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 1040 # IFrameElement: (I)()(F)rameElement (no change) | 1041 # IFrameElement: (I)()(F)rameElement (no change) |
| 1041 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 1042 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |