| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 'StorageEvent', # 45 Roll hide default constructor use Dart's custom | 215 'StorageEvent', # 45 Roll hide default constructor use Dart's custom |
| 216 'UIEvent', # 45 Roll hide default constructor use Dart's custom | 216 'UIEvent', # 45 Roll hide default constructor use Dart's custom |
| 217 'WheelEvent', # 45 Roll hide default constructor use Dart's custom | 217 'WheelEvent', # 45 Roll hide default constructor use Dart's custom |
| 218 ]) | 218 ]) |
| 219 | 219 |
| 220 # Members from the standard dom that should not be exposed publicly in dart:html | 220 # Members from the standard dom that should not be exposed publicly in dart:html |
| 221 # but need to be exposed internally to implement dart:html on top of a standard | 221 # but need to be exposed internally to implement dart:html on top of a standard |
| 222 # browser. They are exposed simply by placing an underscore in front of the | 222 # browser. They are exposed simply by placing an underscore in front of the |
| 223 # name. | 223 # name. |
| 224 private_html_members = monitored.Set('htmlrenamer.private_html_members', [ | 224 private_html_members = monitored.Set('htmlrenamer.private_html_members', [ |
| 225 'AudioContext.decodeAudioData', | |
| 226 'AudioNode.connect', | 225 'AudioNode.connect', |
| 227 'Cache.add', | 226 'Cache.add', |
| 228 'Cache.delete', | 227 'Cache.delete', |
| 229 'Cache.keys', | 228 'Cache.keys', |
| 230 'Cache.match', | 229 'Cache.match', |
| 231 'Cache.matchAll', | 230 'Cache.matchAll', |
| 232 'Cache.put', | 231 'Cache.put', |
| 233 'CanvasRenderingContext2D.arc', | 232 'CanvasRenderingContext2D.arc', |
| 234 'CanvasRenderingContext2D.drawImage', | 233 'CanvasRenderingContext2D.drawImage', |
| 235 'CanvasRenderingContext2D.getLineDash', | 234 'CanvasRenderingContext2D.getLineDash', |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 # dart:html. These could be expressed in the IDL instead but expressing this | 526 # dart:html. These could be expressed in the IDL instead but expressing this |
| 528 # as a simple table instead is more concise. | 527 # as a simple table instead is more concise. |
| 529 # Syntax is: ClassName.(get\:|set\:|call\:|on\:)?MemberName | 528 # Syntax is: ClassName.(get\:|set\:|call\:|on\:)?MemberName |
| 530 # Using get: and set: is optional and should only be used when a getter needs | 529 # Using get: and set: is optional and should only be used when a getter needs |
| 531 # to be suppressed but not the setter, etc. | 530 # to be suppressed but not the setter, etc. |
| 532 # Prepending ClassName with = will only match against direct class, not for | 531 # Prepending ClassName with = will only match against direct class, not for |
| 533 # subclasses. | 532 # subclasses. |
| 534 # TODO(jacobr): cleanup and augment this list. | 533 # TODO(jacobr): cleanup and augment this list. |
| 535 removed_html_members = monitored.Set('htmlrenamer.removed_html_members', [ | 534 removed_html_members = monitored.Set('htmlrenamer.removed_html_members', [ |
| 536 'Attr.textContent', # Not needed as it is the same as Node.textContent. | 535 'Attr.textContent', # Not needed as it is the same as Node.textContent. |
| 536 'AudioContext.decodeAudioData', |
| 537 'AudioBufferSourceNode.looping', # TODO(vsm): Use deprecated IDL annotation | 537 'AudioBufferSourceNode.looping', # TODO(vsm): Use deprecated IDL annotation |
| 538 'CSSStyleDeclaration.getPropertyCSSValue', | 538 'CSSStyleDeclaration.getPropertyCSSValue', |
| 539 'CanvasRenderingContext2D.clearShadow', | 539 'CanvasRenderingContext2D.clearShadow', |
| 540 'CanvasRenderingContext2D.drawImageFromRect', | 540 'CanvasRenderingContext2D.drawImageFromRect', |
| 541 'CanvasRenderingContext2D.setAlpha', | 541 'CanvasRenderingContext2D.setAlpha', |
| 542 'CanvasRenderingContext2D.setCompositeOperation', | 542 'CanvasRenderingContext2D.setCompositeOperation', |
| 543 'CanvasRenderingContext2D.setFillColor', | 543 'CanvasRenderingContext2D.setFillColor', |
| 544 'CanvasRenderingContext2D.setLineCap', | 544 'CanvasRenderingContext2D.setLineCap', |
| 545 'CanvasRenderingContext2D.setLineJoin', | 545 'CanvasRenderingContext2D.setLineJoin', |
| 546 'CanvasRenderingContext2D.setLineWidth', | 546 'CanvasRenderingContext2D.setLineWidth', |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 | 1101 |
| 1102 # We're looking for a sequence of letters which start with capital letter | 1102 # We're looking for a sequence of letters which start with capital letter |
| 1103 # then a series of caps and finishes with either the end of the string or | 1103 # then a series of caps and finishes with either the end of the string or |
| 1104 # a capital letter. | 1104 # a capital letter. |
| 1105 # The [0-9] check is for names such as 2D or 3D | 1105 # The [0-9] check is for names such as 2D or 3D |
| 1106 # The following test cases should match as: | 1106 # The following test cases should match as: |
| 1107 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 1107 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 1108 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 1108 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 1109 # IFrameElement: (I)()(F)rameElement (no change) | 1109 # IFrameElement: (I)()(F)rameElement (no change) |
| 1110 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 1110 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |