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

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

Issue 12049097: Adding supported checks for CssMatrix and Point. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/generator.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 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. 30 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts.
31 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. 31 'SVGElement': 'SvgElement', # Manual to avoid name conflicts.
32 'SVGException': 'SvgException', # Manual of avoid conflict with Exception. 32 'SVGException': 'SvgException', # Manual of avoid conflict with Exception.
33 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. 33 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts.
34 'WebGLVertexArrayObjectOES': 'WebGLVertexArrayObject', 34 'WebGLVertexArrayObjectOES': 'WebGLVertexArrayObject',
35 'WebKitAnimationEvent': 'AnimationEvent', 35 'WebKitAnimationEvent': 'AnimationEvent',
36 'WebKitCSSKeyframeRule': 'CssKeyframeRule', 36 'WebKitCSSKeyframeRule': 'CssKeyframeRule',
37 'WebKitCSSKeyframesRule': 'CssKeyframesRule', 37 'WebKitCSSKeyframesRule': 'CssKeyframesRule',
38 'WebKitCSSMatrix': 'CssMatrix', 38 'WebKitCSSMatrix': 'CssMatrix',
39 'WebKitCSSTransformValue': 'CssTransformValue', 39 'WebKitCSSTransformValue': 'CssTransformValue',
40 'WebKitPoint': 'Point', 40 'WebKitPoint': 'DomPoint',
41 'WebKitTransitionEvent': 'TransitionEvent', 41 'WebKitTransitionEvent': 'TransitionEvent',
42 'XMLHttpRequest': 'HttpRequest', 42 'XMLHttpRequest': 'HttpRequest',
43 'XMLHttpRequestException': 'HttpRequestException', 43 'XMLHttpRequestException': 'HttpRequestException',
44 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent', 44 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent',
45 'XMLHttpRequestUpload': 'HttpRequestUpload', 45 'XMLHttpRequestUpload': 'HttpRequestUpload',
46 }) 46 })
47 47
48 # Members from the standard dom that should not be exposed publicly in dart:html 48 # Members from the standard dom that should not be exposed publicly in dart:html
49 # but need to be exposed internally to implement dart:html on top of a standard 49 # but need to be exposed internally to implement dart:html on top of a standard
50 # browser. 50 # browser.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 'WheelEvent.wheelDeltaY', 147 'WheelEvent.wheelDeltaY',
148 'WheelEvent.initWebKitWheelEvent', 148 'WheelEvent.initWebKitWheelEvent',
149 'DOMWindow.getComputedStyle', 149 'DOMWindow.getComputedStyle',
150 ]) 150 ])
151 151
152 # Members from the standard dom that exist in the dart:html library with 152 # Members from the standard dom that exist in the dart:html library with
153 # identical functionality but with cleaner names. 153 # identical functionality but with cleaner names.
154 _renamed_html_members = monitored.Dict('htmlrenamer._renamed_html_members', { 154 _renamed_html_members = monitored.Dict('htmlrenamer._renamed_html_members', {
155 'DOMURL.createObjectURL': 'createObjectUrl', 155 'DOMURL.createObjectURL': 'createObjectUrl',
156 'DOMURL.revokeObjectURL': 'revokeObjectUrl', 156 'DOMURL.revokeObjectURL': 'revokeObjectUrl',
157 'DOMWindow.webkitConvertPointFromNodeToPage': 'convertPointFromNodeToPage',
158 'DOMWindow.webkitConvertPointFromPageToNode': 'convertPointFromPageToNode',
157 'DOMWindow.webkitNotifications': 'notifications', 159 'DOMWindow.webkitNotifications': 'notifications',
158 'DOMWindow.webkitRequestFileSystem': 'requestFileSystem', 160 'DOMWindow.webkitRequestFileSystem': 'requestFileSystem',
159 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', 161 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl',
160 'DOMWindow.webkitRequestFileSystem': 'requestFileSystem', 162 'DOMWindow.webkitRequestFileSystem': 'requestFileSystem',
161 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', 163 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl',
162 'Document.createCDATASection': 'createCDataSection', 164 'Document.createCDATASection': 'createCDataSection',
163 'Document.defaultView': 'window', 165 'Document.defaultView': 'window',
164 'Element.scrollIntoViewIfNeeded': 'scrollIntoView', 166 'Element.scrollIntoViewIfNeeded': 'scrollIntoView',
165 'Element.webkitCreateShadowRoot': 'createShadowRoot', 167 'Element.webkitCreateShadowRoot': 'createShadowRoot',
166 'Element.webkitMatchesSelector' : 'matches', 168 'Element.webkitMatchesSelector' : 'matches',
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 546
545 # We're looking for a sequence of letters which start with capital letter 547 # We're looking for a sequence of letters which start with capital letter
546 # then a series of caps and finishes with either the end of the string or 548 # then a series of caps and finishes with either the end of the string or
547 # a capital letter. 549 # a capital letter.
548 # The [0-9] check is for names such as 2D or 3D 550 # The [0-9] check is for names such as 2D or 3D
549 # The following test cases should match as: 551 # The following test cases should match as:
550 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 552 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
551 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 553 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
552 # IFrameElement: (I)()(F)rameElement (no change) 554 # IFrameElement: (I)()(F)rameElement (no change)
553 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 555 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698