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

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

Issue 13467020: Renaming WebGLVertexArrayObject (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 | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | no next file » | 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 27 matching lines...) Expand all
38 'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent', 38 'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent',
39 'RTCErrorCallback': '_RtcErrorCallback', 39 'RTCErrorCallback': '_RtcErrorCallback',
40 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', 40 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback',
41 'StorageInfoErrorCallback': '_StorageInfoErrorCallback', 41 'StorageInfoErrorCallback': '_StorageInfoErrorCallback',
42 'StorageInfoUsageCallback': '_StorageInfoUsageCallback', 42 'StorageInfoUsageCallback': '_StorageInfoUsageCallback',
43 'StringCallback': '_StringCallback', 43 'StringCallback': '_StringCallback',
44 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. 44 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts.
45 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. 45 'SVGElement': 'SvgElement', # Manual to avoid name conflicts.
46 'SVGException': 'SvgException', # Manual of avoid conflict with Exception. 46 'SVGException': 'SvgException', # Manual of avoid conflict with Exception.
47 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. 47 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts.
48 'WebGLVertexArrayObjectOES': 'WebGLVertexArrayObject', 48 'WebGLVertexArrayObjectOES': 'VertexArrayObject',
49 'WebKitAnimationEvent': 'AnimationEvent', 49 'WebKitAnimationEvent': 'AnimationEvent',
50 'WebKitCSSKeyframeRule': 'CssKeyframeRule', 50 'WebKitCSSKeyframeRule': 'CssKeyframeRule',
51 'WebKitCSSKeyframesRule': 'CssKeyframesRule', 51 'WebKitCSSKeyframesRule': 'CssKeyframesRule',
52 'WebKitCSSMatrix': 'CssMatrix', 52 'WebKitCSSMatrix': 'CssMatrix',
53 'WebKitCSSTransformValue': 'CssTransformValue', 53 'WebKitCSSTransformValue': 'CssTransformValue',
54 'WebKitPoint': 'DomPoint', 54 'WebKitPoint': 'DomPoint',
55 'WebKitTransitionEvent': '_WebKitTransitionEvent', 55 'WebKitTransitionEvent': '_WebKitTransitionEvent',
56 'XMLHttpRequest': 'HttpRequest', 56 'XMLHttpRequest': 'HttpRequest',
57 'XMLHttpRequestException': 'HttpRequestException', 57 'XMLHttpRequestException': 'HttpRequestException',
58 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent', 58 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent',
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 713
714 # We're looking for a sequence of letters which start with capital letter 714 # We're looking for a sequence of letters which start with capital letter
715 # then a series of caps and finishes with either the end of the string or 715 # then a series of caps and finishes with either the end of the string or
716 # a capital letter. 716 # a capital letter.
717 # The [0-9] check is for names such as 2D or 3D 717 # The [0-9] check is for names such as 2D or 3D
718 # The following test cases should match as: 718 # The following test cases should match as:
719 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 719 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
720 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 720 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
721 # IFrameElement: (I)()(F)rameElement (no change) 721 # IFrameElement: (I)()(F)rameElement (no change)
722 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 722 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698