Chromium Code Reviews| 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 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', { | 9 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', { |
| 10 'CDATASection': 'CDataSection', | 10 'CDATASection': 'CDataSection', |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 'HTMLDocument' : 'HtmlDocument', | 27 'HTMLDocument' : 'HtmlDocument', |
| 28 'IDBFactory': 'IdbFactory', # Manual to avoid name conflicts. | 28 'IDBFactory': 'IdbFactory', # Manual to avoid name conflicts. |
| 29 'NamedNodeMap': '_NamedNodeMap', | 29 'NamedNodeMap': '_NamedNodeMap', |
| 30 'NavigatorUserMediaErrorCallback': '_NavigatorUserMediaErrorCallback', | 30 'NavigatorUserMediaErrorCallback': '_NavigatorUserMediaErrorCallback', |
| 31 'NavigatorUserMediaSuccessCallback': '_NavigatorUserMediaSuccessCallback', | 31 'NavigatorUserMediaSuccessCallback': '_NavigatorUserMediaSuccessCallback', |
| 32 'NotificationPermissionCallback': '_NotificationPermissionCallback', | 32 'NotificationPermissionCallback': '_NotificationPermissionCallback', |
| 33 'PositionCallback': '_PositionCallback', | 33 'PositionCallback': '_PositionCallback', |
| 34 'PositionErrorCallback': '_PositionErrorCallback', | 34 'PositionErrorCallback': '_PositionErrorCallback', |
| 35 'Rect': 'CssRect', | 35 'Rect': 'CssRect', |
| 36 'RGBColor': 'CssRgbColor', | 36 'RGBColor': 'CssRgbColor', |
| 37 'RTCDTMFSender': 'RtcDtmfSender', | |
|
blois
2013/03/20 22:43:35
The bug covers RtcdtmfToneChangeEvent too!
| |
| 37 'RTCErrorCallback': '_RtcErrorCallback', | 38 'RTCErrorCallback': '_RtcErrorCallback', |
| 38 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', | 39 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', |
| 39 'StorageInfoErrorCallback': '_StorageInfoErrorCallback', | 40 'StorageInfoErrorCallback': '_StorageInfoErrorCallback', |
| 40 'StorageInfoUsageCallback': '_StorageInfoUsageCallback', | 41 'StorageInfoUsageCallback': '_StorageInfoUsageCallback', |
| 41 'StringCallback': '_StringCallback', | 42 'StringCallback': '_StringCallback', |
| 42 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. | 43 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. |
| 43 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. | 44 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. |
| 44 'SVGException': 'SvgException', # Manual of avoid conflict with Exception. | 45 'SVGException': 'SvgException', # Manual of avoid conflict with Exception. |
| 45 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. | 46 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. |
| 46 'WebGLVertexArrayObjectOES': 'WebGLVertexArrayObject', | 47 'WebGLVertexArrayObjectOES': 'WebGLVertexArrayObject', |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 716 | 717 |
| 717 # We're looking for a sequence of letters which start with capital letter | 718 # We're looking for a sequence of letters which start with capital letter |
| 718 # then a series of caps and finishes with either the end of the string or | 719 # then a series of caps and finishes with either the end of the string or |
| 719 # a capital letter. | 720 # a capital letter. |
| 720 # The [0-9] check is for names such as 2D or 3D | 721 # The [0-9] check is for names such as 2D or 3D |
| 721 # The following test cases should match as: | 722 # The following test cases should match as: |
| 722 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 723 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 723 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 724 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 724 # IFrameElement: (I)()(F)rameElement (no change) | 725 # IFrameElement: (I)()(F)rameElement (no change) |
| 725 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 726 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |