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

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

Issue 138003019: Fix for bug 14923 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 'WorkerLocation', # Workers 133 'WorkerLocation', # Workers
134 'WorkerNavigator', # Workers 134 'WorkerNavigator', # Workers
135 'XMLHttpRequestProgressEvent', 135 'XMLHttpRequestProgressEvent',
136 ] 136 ]
137 137
138 for interface in _removed_html_interfaces: 138 for interface in _removed_html_interfaces:
139 html_interface_renames[interface] = '_' + interface 139 html_interface_renames[interface] = '_' + interface
140 140
141 convert_to_future_members = monitored.Set( 141 convert_to_future_members = monitored.Set(
142 'htmlrenamer.converted_to_future_members', [ 142 'htmlrenamer.converted_to_future_members', [
143 'AudioContext.decodeAudioData',
144 'DataTransferItem.getAsString', 143 'DataTransferItem.getAsString',
145 'DirectoryEntry.getDirectory', 144 'DirectoryEntry.getDirectory',
146 'DirectoryEntry.getFile', 145 'DirectoryEntry.getFile',
147 'DirectoryEntry.removeRecursively', 146 'DirectoryEntry.removeRecursively',
148 'DirectoryReader.readEntries', 147 'DirectoryReader.readEntries',
149 'Entry.copyTo', 148 'Entry.copyTo',
150 'Entry.getMetadata', 149 'Entry.getMetadata',
151 'Entry.getParent', 150 'Entry.getParent',
152 'Entry.moveTo', 151 'Entry.moveTo',
153 'Entry.remove', 152 'Entry.remove',
(...skipping 19 matching lines...) Expand all
173 'htmlrenamer.custom_html_constructors', [ 172 'htmlrenamer.custom_html_constructors', [
174 'HTMLOptionElement', 173 'HTMLOptionElement',
175 'MutationObserver', 174 'MutationObserver',
176 ]) 175 ])
177 176
178 # Members from the standard dom that should not be exposed publicly in dart:html 177 # Members from the standard dom that should not be exposed publicly in dart:html
179 # but need to be exposed internally to implement dart:html on top of a standard 178 # but need to be exposed internally to implement dart:html on top of a standard
180 # browser. They are exposed simply by placing an underscore in front of the 179 # browser. They are exposed simply by placing an underscore in front of the
181 # name. 180 # name.
182 private_html_members = monitored.Set('htmlrenamer.private_html_members', [ 181 private_html_members = monitored.Set('htmlrenamer.private_html_members', [
182 'AudioContext.decodeAudioData',
183 'AudioNode.connect', 183 'AudioNode.connect',
184 'CanvasRenderingContext2D.arc', 184 'CanvasRenderingContext2D.arc',
185 'CanvasRenderingContext2D.drawImage', 185 'CanvasRenderingContext2D.drawImage',
186 'CanvasRenderingContext2D.getLineDash', 186 'CanvasRenderingContext2D.getLineDash',
187 'CSSStyleDeclaration.getPropertyValue', 187 'CSSStyleDeclaration.getPropertyValue',
188 'CSSStyleDeclaration.setProperty', 188 'CSSStyleDeclaration.setProperty',
189 'CSSStyleDeclaration.var', 189 'CSSStyleDeclaration.var',
190 'CompositionEvent.initCompositionEvent', 190 'CompositionEvent.initCompositionEvent',
191 'CustomEvent.detail', 191 'CustomEvent.detail',
192 'CustomEvent.initCustomEvent', 192 'CustomEvent.initCustomEvent',
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 961
962 # We're looking for a sequence of letters which start with capital letter 962 # We're looking for a sequence of letters which start with capital letter
963 # then a series of caps and finishes with either the end of the string or 963 # then a series of caps and finishes with either the end of the string or
964 # a capital letter. 964 # a capital letter.
965 # The [0-9] check is for names such as 2D or 3D 965 # The [0-9] check is for names such as 2D or 3D
966 # The following test cases should match as: 966 # The following test cases should match as:
967 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 967 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
968 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 968 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
969 # IFrameElement: (I)()(F)rameElement (no change) 969 # IFrameElement: (I)()(F)rameElement (no change)
970 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 970 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « sdk/lib/web_audio/dartium/web_audio_dartium.dart ('k') | tools/dom/templates/html/impl/impl_AudioContext.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698