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

Side by Side Diff: sdk/lib/html/scripts/htmlrenamer.py

Issue 11620009: Removing unsupported types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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/html/idl/dart/dart.idl ('k') | tests/html/css_test.dart » ('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 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 14 matching lines...) Expand all
25 'WebGLVertexArrayObjectOES': 'WebGLVertexArrayObject', 25 'WebGLVertexArrayObjectOES': 'WebGLVertexArrayObject',
26 'WebKitAnimation': 'Animation', 26 'WebKitAnimation': 'Animation',
27 'WebKitAnimationEvent': 'AnimationEvent', 27 'WebKitAnimationEvent': 'AnimationEvent',
28 'WebKitBlobBuilder': 'BlobBuilder', 28 'WebKitBlobBuilder': 'BlobBuilder',
29 'WebKitCSSKeyframeRule': 'CssKeyframeRule', 29 'WebKitCSSKeyframeRule': 'CssKeyframeRule',
30 'WebKitCSSKeyframesRule': 'CssKeyframesRule', 30 'WebKitCSSKeyframesRule': 'CssKeyframesRule',
31 'WebKitCSSMatrix': 'CssMatrix', 31 'WebKitCSSMatrix': 'CssMatrix',
32 'WebKitCSSTransformValue': 'CssTransformValue', 32 'WebKitCSSTransformValue': 'CssTransformValue',
33 'WebKitFlags': 'Flags', 33 'WebKitFlags': 'Flags',
34 'WebKitLoseContext': 'LoseContext', 34 'WebKitLoseContext': 'LoseContext',
35 'WebKitPoint': 'Point',
36 'WebKitTransitionEvent': 'TransitionEvent', 35 'WebKitTransitionEvent': 'TransitionEvent',
37 'XMLHttpRequest': 'HttpRequest', 36 'XMLHttpRequest': 'HttpRequest',
38 'XMLHttpRequestException': 'HttpRequestException', 37 'XMLHttpRequestException': 'HttpRequestException',
39 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent', 38 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent',
40 'XMLHttpRequestUpload': 'HttpRequestUpload', 39 'XMLHttpRequestUpload': 'HttpRequestUpload',
41 } 40 }
42 41
43 # Members from the standard dom that should not be exposed publicly in dart:html 42 # Members from the standard dom that should not be exposed publicly in dart:html
44 # but need to be exposed internally to implement dart:html on top of a standard 43 # but need to be exposed internally to implement dart:html on top of a standard
45 # browser. 44 # browser.
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 412
414 # We're looking for a sequence of letters which start with capital letter 413 # We're looking for a sequence of letters which start with capital letter
415 # then a series of caps and finishes with either the end of the string or 414 # then a series of caps and finishes with either the end of the string or
416 # a capital letter. 415 # a capital letter.
417 # The [0-9] check is for names such as 2D or 3D 416 # The [0-9] check is for names such as 2D or 3D
418 # The following test cases should match as: 417 # The following test cases should match as:
419 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 418 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
420 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 419 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
421 # IFrameElement: (I)()(F)rameElement (no change) 420 # IFrameElement: (I)()(F)rameElement (no change)
422 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 421 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « sdk/lib/html/idl/dart/dart.idl ('k') | tests/html/css_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698