| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 'WindowTimers': '_WindowTimers', |
| 63 'XMLHttpRequest': 'HttpRequest', | 63 'XMLHttpRequest': 'HttpRequest', |
| 64 'XMLHttpRequestUpload': 'HttpRequestUpload', | 64 'XMLHttpRequestUpload': 'HttpRequestUpload', |
| 65 'XMLHttpRequestEventTarget': 'HttpRequestEventTarget', |
| 65 }, **typed_array_renames)) | 66 }, **typed_array_renames)) |
| 66 | 67 |
| 67 # Interfaces that are suppressed, but need to still exist for Dartium and to | 68 # Interfaces that are suppressed, but need to still exist for Dartium and to |
| 68 # properly wrap DOM objects if/when encountered. | 69 # properly wrap DOM objects if/when encountered. |
| 69 _removed_html_interfaces = [ | 70 _removed_html_interfaces = [ |
| 70 'CDataSection', | 71 'CDataSection', |
| 71 'CSSPrimitiveValue', | 72 'CSSPrimitiveValue', |
| 72 'CSSUnknownRule', | 73 'CSSUnknownRule', |
| 73 'CSSValue', | 74 'CSSValue', |
| 74 'Counter', | 75 'Counter', |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 944 | 945 |
| 945 # We're looking for a sequence of letters which start with capital letter | 946 # We're looking for a sequence of letters which start with capital letter |
| 946 # then a series of caps and finishes with either the end of the string or | 947 # then a series of caps and finishes with either the end of the string or |
| 947 # a capital letter. | 948 # a capital letter. |
| 948 # The [0-9] check is for names such as 2D or 3D | 949 # The [0-9] check is for names such as 2D or 3D |
| 949 # The following test cases should match as: | 950 # The following test cases should match as: |
| 950 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 951 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 951 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 952 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 952 # IFrameElement: (I)()(F)rameElement (no change) | 953 # IFrameElement: (I)()(F)rameElement (no change) |
| 953 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 954 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |