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

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

Issue 24427003: Removed HttpRequestProgressEvent (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
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 typed_array_renames = { 9 typed_array_renames = {
10 'ArrayBuffer': 'ByteBuffer', 10 'ArrayBuffer': 'ByteBuffer',
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 'RTCErrorCallback': '_RtcErrorCallback', 53 'RTCErrorCallback': '_RtcErrorCallback',
54 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', 54 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback',
55 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. 55 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts.
56 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. 56 'SVGElement': 'SvgElement', # Manual to avoid name conflicts.
57 'SVGGradientElement': '_GradientElement', 57 'SVGGradientElement': '_GradientElement',
58 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. 58 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts.
59 'Stream': 'FileStream', 59 'Stream': 'FileStream',
60 'StringCallback': '_StringCallback', 60 'StringCallback': '_StringCallback',
61 'WebGLVertexArrayObjectOES': 'VertexArrayObject', 61 'WebGLVertexArrayObjectOES': 'VertexArrayObject',
62 'XMLHttpRequest': 'HttpRequest', 62 'XMLHttpRequest': 'HttpRequest',
63 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent',
64 'XMLHttpRequestUpload': 'HttpRequestUpload', 63 'XMLHttpRequestUpload': 'HttpRequestUpload',
65 }, **typed_array_renames)) 64 }, **typed_array_renames))
66 65
67 # Interfaces that are suppressed, but need to still exist for Dartium and to 66 # Interfaces that are suppressed, but need to still exist for Dartium and to
68 # properly wrap DOM objects if/when encountered. 67 # properly wrap DOM objects if/when encountered.
69 _removed_html_interfaces = [ 68 _removed_html_interfaces = [
70 'CSSPrimitiveValue', 69 'CSSPrimitiveValue',
71 'CSSValue', 70 'CSSValue',
72 'Counter', 71 'Counter',
73 'DOMFileSystemSync', # Workers 72 'DOMFileSystemSync', # Workers
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 893
895 # We're looking for a sequence of letters which start with capital letter 894 # We're looking for a sequence of letters which start with capital letter
896 # then a series of caps and finishes with either the end of the string or 895 # then a series of caps and finishes with either the end of the string or
897 # a capital letter. 896 # a capital letter.
898 # The [0-9] check is for names such as 2D or 3D 897 # The [0-9] check is for names such as 2D or 3D
899 # The following test cases should match as: 898 # The following test cases should match as:
900 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 899 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
901 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 900 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
902 # IFrameElement: (I)()(F)rameElement (no change) 901 # IFrameElement: (I)()(F)rameElement (no change)
903 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 902 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698