| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 'RTCErrorCallback': '_RtcErrorCallback', | 49 'RTCErrorCallback': '_RtcErrorCallback', |
| 50 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', | 50 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', |
| 51 'StringCallback': '_StringCallback', | 51 'StringCallback': '_StringCallback', |
| 52 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. | 52 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. |
| 53 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. | 53 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. |
| 54 'SVGException': 'SvgException', # Manual of avoid conflict with Exception. | 54 'SVGException': 'SvgException', # Manual of avoid conflict with Exception. |
| 55 'SVGGradientElement': '_GradientElement', | 55 'SVGGradientElement': '_GradientElement', |
| 56 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. | 56 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. |
| 57 'WebGLVertexArrayObjectOES': 'VertexArrayObject', | 57 'WebGLVertexArrayObjectOES': 'VertexArrayObject', |
| 58 'XMLHttpRequest': 'HttpRequest', | 58 'XMLHttpRequest': 'HttpRequest', |
| 59 'XMLHttpRequestException': 'HttpRequestException', | |
| 60 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent', | 59 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent', |
| 61 'XMLHttpRequestUpload': 'HttpRequestUpload', | 60 'XMLHttpRequestUpload': 'HttpRequestUpload', |
| 62 }, **typed_array_renames)) | 61 }, **typed_array_renames)) |
| 63 | 62 |
| 64 # Interfaces that are suppressed, but need to still exist for Dartium and to | 63 # Interfaces that are suppressed, but need to still exist for Dartium and to |
| 65 # properly wrap DOM objects if/when encountered. | 64 # properly wrap DOM objects if/when encountered. |
| 66 _removed_html_interfaces = [ | 65 _removed_html_interfaces = [ |
| 67 'CSSPrimitiveValue', | 66 'CSSPrimitiveValue', |
| 68 'CSSValue', | 67 'CSSValue', |
| 69 'Counter', | 68 'Counter', |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 | 768 |
| 770 # We're looking for a sequence of letters which start with capital letter | 769 # We're looking for a sequence of letters which start with capital letter |
| 771 # then a series of caps and finishes with either the end of the string or | 770 # then a series of caps and finishes with either the end of the string or |
| 772 # a capital letter. | 771 # a capital letter. |
| 773 # The [0-9] check is for names such as 2D or 3D | 772 # The [0-9] check is for names such as 2D or 3D |
| 774 # The following test cases should match as: | 773 # The following test cases should match as: |
| 775 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 774 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 776 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 775 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 777 # IFrameElement: (I)()(F)rameElement (no change) | 776 # IFrameElement: (I)()(F)rameElement (no change) |
| 778 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 777 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |