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

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

Issue 12775010: Added the CanvasImageSource interface, which all types that a canvas can draw (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed nits. Created 7 years, 9 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 | « tests/html/canvasrenderingcontext2d_test.dart ('k') | tools/dom/src/CanvasImageSource.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 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 'StorageInfo.requestQuota', 119 'StorageInfo.requestQuota',
120 'WorkerContext.webkitResolveLocalFileSystemURL', 120 'WorkerContext.webkitResolveLocalFileSystemURL',
121 'WorkerContext.webkitRequestFileSystem', 121 'WorkerContext.webkitRequestFileSystem',
122 ]) 122 ])
123 123
124 # Members from the standard dom that should not be exposed publicly in dart:html 124 # Members from the standard dom that should not be exposed publicly in dart:html
125 # but need to be exposed internally to implement dart:html on top of a standard 125 # but need to be exposed internally to implement dart:html on top of a standard
126 # browser. 126 # browser.
127 _private_html_members = monitored.Set('htmlrenamer._private_html_members', [ 127 _private_html_members = monitored.Set('htmlrenamer._private_html_members', [
128 'CanvasRenderingContext2D.arc', 128 'CanvasRenderingContext2D.arc',
129 'CanvasRenderingContext2D.drawImage',
129 'CompositionEvent.initCompositionEvent', 130 'CompositionEvent.initCompositionEvent',
130 'CustomEvent.initCustomEvent', 131 'CustomEvent.initCustomEvent',
131 'DeviceOrientationEvent.initDeviceOrientationEvent', 132 'DeviceOrientationEvent.initDeviceOrientationEvent',
132 'Document.createElement', 133 'Document.createElement',
133 'Document.createElementNS', 134 'Document.createElementNS',
134 'Document.createEvent', 135 'Document.createEvent',
135 'Document.createRange', 136 'Document.createRange',
136 'Document.createTextNode', 137 'Document.createTextNode',
137 'Document.createTouch', 138 'Document.createTouch',
138 'Document.createTouchList', 139 'Document.createTouchList',
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 704
704 # We're looking for a sequence of letters which start with capital letter 705 # We're looking for a sequence of letters which start with capital letter
705 # then a series of caps and finishes with either the end of the string or 706 # then a series of caps and finishes with either the end of the string or
706 # a capital letter. 707 # a capital letter.
707 # The [0-9] check is for names such as 2D or 3D 708 # The [0-9] check is for names such as 2D or 3D
708 # The following test cases should match as: 709 # The following test cases should match as:
709 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 710 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
710 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 711 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
711 # IFrameElement: (I)()(F)rameElement (no change) 712 # IFrameElement: (I)()(F)rameElement (no change)
712 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 713 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tests/html/canvasrenderingcontext2d_test.dart ('k') | tools/dom/src/CanvasImageSource.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698