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

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

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