| 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 re | 5 import re |
| 6 | 6 |
| 7 html_interface_renames = { | 7 html_interface_renames = { |
| 8 'CDATASection': 'CDataSection', | 8 'CDATASection': 'CDataSection', |
| 9 'DOMApplicationCache': 'ApplicationCache', | 9 'DOMApplicationCache': 'ApplicationCache', |
| 10 'DOMCoreException': 'DomException', | 10 'DOMCoreException': 'DomException', |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 'WebKitFlags': 'Flags', | 31 'WebKitFlags': 'Flags', |
| 32 'WebKitLoseContext': 'LoseContext', | 32 'WebKitLoseContext': 'LoseContext', |
| 33 'WebKitPoint': 'Point', | 33 'WebKitPoint': 'Point', |
| 34 'WebKitTransitionEvent': 'TransitionEvent', | 34 'WebKitTransitionEvent': 'TransitionEvent', |
| 35 'XMLHttpRequest': 'HttpRequest', | 35 'XMLHttpRequest': 'HttpRequest', |
| 36 'XMLHttpRequestException': 'HttpRequestException', | 36 'XMLHttpRequestException': 'HttpRequestException', |
| 37 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent', | 37 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent', |
| 38 'XMLHttpRequestUpload': 'HttpRequestUpload', | 38 'XMLHttpRequestUpload': 'HttpRequestUpload', |
| 39 } | 39 } |
| 40 | 40 |
| 41 html_interface_removes = { | 41 html_interface_removes = [ |
| 42 'AppletElement', | 42 'AppletElement', |
| 43 } | 43 ] |
| 44 | 44 |
| 45 # Members from the standard dom that should not be exposed publicly in dart:html | 45 # Members from the standard dom that should not be exposed publicly in dart:html |
| 46 # but need to be exposed internally to implement dart:html on top of a standard | 46 # but need to be exposed internally to implement dart:html on top of a standard |
| 47 # browser. | 47 # browser. |
| 48 _private_html_members = set([ | 48 _private_html_members = set([ |
| 49 'CustomEvent.initCustomEvent', | 49 'CustomEvent.initCustomEvent', |
| 50 'Document.createElement', | 50 'Document.createElement', |
| 51 'Document.createElementNS', | 51 'Document.createElementNS', |
| 52 'Document.createEvent', | 52 'Document.createEvent', |
| 53 'Document.createRange', | 53 'Document.createRange', |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 | 510 |
| 511 # We're looking for a sequence of letters which start with capital letter | 511 # We're looking for a sequence of letters which start with capital letter |
| 512 # then a series of caps and finishes with either the end of the string or | 512 # then a series of caps and finishes with either the end of the string or |
| 513 # a capital letter. | 513 # a capital letter. |
| 514 # The [0-9] check is for names such as 2D or 3D | 514 # The [0-9] check is for names such as 2D or 3D |
| 515 # The following test cases should match as: | 515 # The following test cases should match as: |
| 516 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 516 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 517 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 517 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 518 # IFrameElement: (I)()(F)rameElement (no change) | 518 # IFrameElement: (I)()(F)rameElement (no change) |
| 519 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 519 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |