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

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

Issue 661603003: Revert "Stop suppressing generation of bindings with Promise. Add some tests for DOM APIs that answ… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | no next file » | 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 typed_array_renames = { 9 typed_array_renames = {
10 'ArrayBuffer': 'ByteBuffer', 10 'ArrayBuffer': 'ByteBuffer',
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 'MutationObserver', 181 'MutationObserver',
182 ]) 182 ])
183 183
184 # Members from the standard dom that should not be exposed publicly in dart:html 184 # Members from the standard dom that should not be exposed publicly in dart:html
185 # but need to be exposed internally to implement dart:html on top of a standard 185 # but need to be exposed internally to implement dart:html on top of a standard
186 # browser. They are exposed simply by placing an underscore in front of the 186 # browser. They are exposed simply by placing an underscore in front of the
187 # name. 187 # name.
188 private_html_members = monitored.Set('htmlrenamer.private_html_members', [ 188 private_html_members = monitored.Set('htmlrenamer.private_html_members', [
189 'AudioContext.decodeAudioData', 189 'AudioContext.decodeAudioData',
190 'AudioNode.connect', 190 'AudioNode.connect',
191 'Cache.add',
192 'Cache.delete',
193 'Cache.keys',
194 'Cache.match',
195 'Cache.matchAll',
196 'Cache.put',
197 'CanvasRenderingContext2D.arc', 191 'CanvasRenderingContext2D.arc',
198 'CanvasRenderingContext2D.drawImage', 192 'CanvasRenderingContext2D.drawImage',
199 'CanvasRenderingContext2D.getLineDash', 193 'CanvasRenderingContext2D.getLineDash',
200 'CSSStyleDeclaration.getPropertyValue', 194 'CSSStyleDeclaration.getPropertyValue',
201 'CSSStyleDeclaration.setProperty', 195 'CSSStyleDeclaration.setProperty',
202 'CSSStyleDeclaration.var', 196 'CSSStyleDeclaration.var',
203 'CompositionEvent.initCompositionEvent', 197 'CompositionEvent.initCompositionEvent',
204 'CustomEvent.detail', 198 'CustomEvent.detail',
205 'CustomEvent.initCustomEvent', 199 'CustomEvent.initCustomEvent',
206 'DeviceOrientationEvent.initDeviceOrientationEvent', 200 'DeviceOrientationEvent.initDeviceOrientationEvent',
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 'IDBObjectStore.add', 290 'IDBObjectStore.add',
297 'IDBObjectStore.clear', 291 'IDBObjectStore.clear',
298 'IDBObjectStore.count', 292 'IDBObjectStore.count',
299 'IDBObjectStore.createIndex', 293 'IDBObjectStore.createIndex',
300 'IDBObjectStore.delete', 294 'IDBObjectStore.delete',
301 'IDBObjectStore.get', 295 'IDBObjectStore.get',
302 'IDBObjectStore.openCursor', 296 'IDBObjectStore.openCursor',
303 'IDBObjectStore.put', 297 'IDBObjectStore.put',
304 'KeyboardEvent.initKeyboardEvent', 298 'KeyboardEvent.initKeyboardEvent',
305 'KeyboardEvent.keyIdentifier', 299 'KeyboardEvent.keyIdentifier',
306 'MediaKeys.createSession',
307 'MediaKeySession.update',
308 'MessageEvent.initMessageEvent', 300 'MessageEvent.initMessageEvent',
309 'MouseEvent.initMouseEvent', 301 'MouseEvent.initMouseEvent',
310 'MouseEvent.clientX', 302 'MouseEvent.clientX',
311 'MouseEvent.clientY', 303 'MouseEvent.clientY',
312 'MouseEvent.movementX', 304 'MouseEvent.movementX',
313 'MouseEvent.movementY', 305 'MouseEvent.movementY',
314 'MouseEvent.webkitMovementX', 306 'MouseEvent.webkitMovementX',
315 'MouseEvent.webkitMovementY', 307 'MouseEvent.webkitMovementY',
316 'MouseEvent.offsetX', 308 'MouseEvent.offsetX',
317 'MouseEvent.offsetY', 309 'MouseEvent.offsetY',
(...skipping 10 matching lines...) Expand all
328 'ParentNode.children', 320 'ParentNode.children',
329 'ParentNode.firstElementChild', 321 'ParentNode.firstElementChild',
330 'ParentNode.lastElementChild', 322 'ParentNode.lastElementChild',
331 'RTCPeerConnection.createAnswer', 323 'RTCPeerConnection.createAnswer',
332 'RTCPeerConnection.createOffer', 324 'RTCPeerConnection.createOffer',
333 'RTCPeerConnection.getStats', 325 'RTCPeerConnection.getStats',
334 'Screen.availHeight', 326 'Screen.availHeight',
335 'Screen.availLeft', 327 'Screen.availLeft',
336 'Screen.availTop', 328 'Screen.availTop',
337 'Screen.availWidth', 329 'Screen.availWidth',
338 'ServiceWorkerGlobalScope.fetch', 330 'ShadowRoot.applyAuthorStyles',
339 'ShadowRoot.resetStyleInheritance', 331 'ShadowRoot.resetStyleInheritance',
340 'Storage.clear', 332 'Storage.clear',
341 'Storage.getItem', 333 'Storage.getItem',
342 'Storage.key', 334 'Storage.key',
343 'Storage.length', 335 'Storage.length',
344 'Storage.removeItem', 336 'Storage.removeItem',
345 'Storage.setItem', 337 'Storage.setItem',
346 'StorageEvent.initStorageEvent', 338 'StorageEvent.initStorageEvent',
347 'SubtleCrypto.encrypt',
348 'SubtleCrypto.decrypt',
349 'SubtleCrypto.sign',
350 'SubtleCrypto.digest',
351 'SubtleCrypto.importKey',
352 'SubtleCrypto.unwrapKey',
353 'ShadowRoot.applyAuthorStyles',
354
355 'TextEvent.initTextEvent', 339 'TextEvent.initTextEvent',
356 # TODO(leafp): These have been converted from int to double in Chrome 37. 340 # TODO(leafp): These have been converted from int to double in Chrome 37.
357 # client, page, and screen were already special cased, adding radiusX/radiusY. 341 # client, page, and screen were already special cased, adding radiusX/radiusY.
358 # See impl_Touch.darttemplate for impedance matching code 342 # See impl_Touch.darttemplate for impedance matching code
359 'Touch.clientX', 343 'Touch.clientX',
360 'Touch.clientY', 344 'Touch.clientY',
361 'Touch.pageX', 345 'Touch.pageX',
362 'Touch.pageY', 346 'Touch.pageY',
363 'Touch.screenX', 347 'Touch.screenX',
364 'Touch.screenY', 348 'Touch.screenY',
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 1004
1021 # We're looking for a sequence of letters which start with capital letter 1005 # We're looking for a sequence of letters which start with capital letter
1022 # then a series of caps and finishes with either the end of the string or 1006 # then a series of caps and finishes with either the end of the string or
1023 # a capital letter. 1007 # a capital letter.
1024 # The [0-9] check is for names such as 2D or 3D 1008 # The [0-9] check is for names such as 2D or 3D
1025 # The following test cases should match as: 1009 # The following test cases should match as:
1026 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 1010 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
1027 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 1011 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
1028 # IFrameElement: (I)()(F)rameElement (no change) 1012 # IFrameElement: (I)()(F)rameElement (no change)
1029 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 1013 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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698