Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: tools/dom/scripts/htmlrenamer.py

Issue 13725029: Fixing up a number of go.sh warnings (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/dom/scripts/htmleventgenerator.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 19 matching lines...) Expand all
30 'NavigatorUserMediaSuccessCallback': '_NavigatorUserMediaSuccessCallback', 30 'NavigatorUserMediaSuccessCallback': '_NavigatorUserMediaSuccessCallback',
31 'NotificationPermissionCallback': '_NotificationPermissionCallback', 31 'NotificationPermissionCallback': '_NotificationPermissionCallback',
32 'PositionCallback': '_PositionCallback', 32 'PositionCallback': '_PositionCallback',
33 'PositionErrorCallback': '_PositionErrorCallback', 33 'PositionErrorCallback': '_PositionErrorCallback',
34 'Rect': 'CssRect', 34 'Rect': 'CssRect',
35 'RGBColor': 'CssRgbColor', 35 'RGBColor': 'CssRgbColor',
36 'RTCDTMFSender': 'RtcDtmfSender', 36 'RTCDTMFSender': 'RtcDtmfSender',
37 'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent', 37 'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent',
38 'RTCErrorCallback': '_RtcErrorCallback', 38 'RTCErrorCallback': '_RtcErrorCallback',
39 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', 39 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback',
40 'StorageInfoErrorCallback': '_StorageInfoErrorCallback',
41 'StorageInfoUsageCallback': '_StorageInfoUsageCallback',
42 'StringCallback': '_StringCallback', 40 'StringCallback': '_StringCallback',
43 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. 41 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts.
44 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. 42 'SVGElement': 'SvgElement', # Manual to avoid name conflicts.
45 'SVGException': 'SvgException', # Manual of avoid conflict with Exception. 43 'SVGException': 'SvgException', # Manual of avoid conflict with Exception.
46 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. 44 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts.
47 'WebGLVertexArrayObjectOES': 'VertexArrayObject', 45 'WebGLVertexArrayObjectOES': 'VertexArrayObject',
48 'WebKitAnimationEvent': 'AnimationEvent', 46 'WebKitAnimationEvent': 'AnimationEvent',
49 'WebKitCSSKeyframeRule': 'CssKeyframeRule', 47 'WebKitCSSKeyframeRule': 'CssKeyframeRule',
50 'WebKitCSSKeyframesRule': 'CssKeyframesRule', 48 'WebKitCSSKeyframesRule': 'CssKeyframesRule',
51 'WebKitCSSMatrix': 'CssMatrix', 49 'WebKitCSSMatrix': 'CssMatrix',
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 'HTMLObjectElement.standby', 521 'HTMLObjectElement.standby',
524 'HTMLObjectElement.vspace', 522 'HTMLObjectElement.vspace',
525 'HTMLOptionElement.text', 523 'HTMLOptionElement.text',
526 'HTMLOptionsCollection.*', 524 'HTMLOptionsCollection.*',
527 'HTMLParagraphElement.align', 525 'HTMLParagraphElement.align',
528 'HTMLParamElement.type', 526 'HTMLParamElement.type',
529 'HTMLParamElement.valueType', 527 'HTMLParamElement.valueType',
530 'HTMLPreElement.width', 528 'HTMLPreElement.width',
531 'HTMLScriptElement.text', 529 'HTMLScriptElement.text',
532 'HTMLSelectElement.options', 530 'HTMLSelectElement.options',
533 'HTMLSelectElement.remove',
534 'HTMLSelectElement.selectedOptions', 531 'HTMLSelectElement.selectedOptions',
535 'HTMLTableCaptionElement.align', 532 'HTMLTableCaptionElement.align',
536 'HTMLTableCellElement.abbr', 533 'HTMLTableCellElement.abbr',
537 'HTMLTableCellElement.align', 534 'HTMLTableCellElement.align',
538 'HTMLTableCellElement.axis', 535 'HTMLTableCellElement.axis',
539 'HTMLTableCellElement.bgColor', 536 'HTMLTableCellElement.bgColor',
540 'HTMLTableCellElement.ch', 537 'HTMLTableCellElement.ch',
541 'HTMLTableCellElement.chOff', 538 'HTMLTableCellElement.chOff',
542 'HTMLTableCellElement.height', 539 'HTMLTableCellElement.height',
543 'HTMLTableCellElement.noWrap', 540 'HTMLTableCellElement.noWrap',
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 729
733 # We're looking for a sequence of letters which start with capital letter 730 # We're looking for a sequence of letters which start with capital letter
734 # then a series of caps and finishes with either the end of the string or 731 # then a series of caps and finishes with either the end of the string or
735 # a capital letter. 732 # a capital letter.
736 # The [0-9] check is for names such as 2D or 3D 733 # The [0-9] check is for names such as 2D or 3D
737 # The following test cases should match as: 734 # The following test cases should match as:
738 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 735 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
739 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 736 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
740 # IFrameElement: (I)()(F)rameElement (no change) 737 # IFrameElement: (I)()(F)rameElement (no change)
741 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 738 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tools/dom/scripts/htmleventgenerator.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698