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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 ]) | 174 ]) |
175 | 175 |
176 # Members from the standard dom that should not be exposed publicly in dart:html | 176 # Members from the standard dom that should not be exposed publicly in dart:html |
177 # but need to be exposed internally to implement dart:html on top of a standard | 177 # but need to be exposed internally to implement dart:html on top of a standard |
178 # browser. They are exposed simply by placing an underscore in front of the | 178 # browser. They are exposed simply by placing an underscore in front of the |
179 # name. | 179 # name. |
180 private_html_members = monitored.Set('htmlrenamer.private_html_members', [ | 180 private_html_members = monitored.Set('htmlrenamer.private_html_members', [ |
181 'AudioNode.connect', | 181 'AudioNode.connect', |
182 'CanvasRenderingContext2D.arc', | 182 'CanvasRenderingContext2D.arc', |
183 'CanvasRenderingContext2D.drawImage', | 183 'CanvasRenderingContext2D.drawImage', |
| 184 'CanvasRenderingContext2D.getLineDash', |
184 'CSSStyleDeclaration.getPropertyValue', | 185 'CSSStyleDeclaration.getPropertyValue', |
185 'CSSStyleDeclaration.setProperty', | 186 'CSSStyleDeclaration.setProperty', |
186 'CSSStyleDeclaration.var', | 187 'CSSStyleDeclaration.var', |
187 'CompositionEvent.initCompositionEvent', | 188 'CompositionEvent.initCompositionEvent', |
188 'CustomEvent.detail', | 189 'CustomEvent.detail', |
189 'CustomEvent.initCustomEvent', | 190 'CustomEvent.initCustomEvent', |
190 'DeviceOrientationEvent.initDeviceOrientationEvent', | 191 'DeviceOrientationEvent.initDeviceOrientationEvent', |
191 'Document.createElement', | 192 'Document.createElement', |
192 'Document.createEvent', | 193 'Document.createEvent', |
193 'Document.createNodeIterator', | 194 'Document.createNodeIterator', |
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 | 944 |
944 # We're looking for a sequence of letters which start with capital letter | 945 # We're looking for a sequence of letters which start with capital letter |
945 # then a series of caps and finishes with either the end of the string or | 946 # then a series of caps and finishes with either the end of the string or |
946 # a capital letter. | 947 # a capital letter. |
947 # The [0-9] check is for names such as 2D or 3D | 948 # The [0-9] check is for names such as 2D or 3D |
948 # The following test cases should match as: | 949 # The following test cases should match as: |
949 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 950 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
950 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 951 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
951 # IFrameElement: (I)()(F)rameElement (no change) | 952 # IFrameElement: (I)()(F)rameElement (no change) |
952 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 953 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |