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

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

Issue 23829002: Checkpoint in changes to match push (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: We were missing onReadyStateChange Created 7 years, 3 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/htmleventgenerator.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 typed_array_renames = { 9 typed_array_renames = {
10 'ArrayBuffer': 'ByteBuffer', 10 'ArrayBuffer': 'ByteBuffer',
(...skipping 10 matching lines...) Expand all
21 'Uint32Array': 'Uint32List', 21 'Uint32Array': 'Uint32List',
22 } 22 }
23 23
24 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', 24 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames',
25 dict({ 25 dict({
26 'Attr': '_Attr', 26 'Attr': '_Attr',
27 'CDATASection': 'CDataSection', 27 'CDATASection': 'CDataSection',
28 'Clipboard': 'DataTransfer', 28 'Clipboard': 'DataTransfer',
29 'Database': 'SqlDatabase', # Avoid conflict with Index DB's Database. 29 'Database': 'SqlDatabase', # Avoid conflict with Index DB's Database.
30 'DatabaseSync': 'SqlDatabaseSync', 30 'DatabaseSync': 'SqlDatabaseSync',
31 'DOMApplicationCache': 'ApplicationCache',
32 'DOMFileSystem': 'FileSystem', 31 'DOMFileSystem': 'FileSystem',
33 'WebKitPoint': '_DomPoint', 32 'WebKitPoint': '_DomPoint',
34 'Entity': '_Entity', # Not sure if we want to expose this yet, may conflict with other libs. 33 'Entity': '_Entity', # Not sure if we want to expose this yet, may conflict with other libs.
35 'EntryCallback': '_EntryCallback', 34 'EntryCallback': '_EntryCallback',
36 'EntriesCallback': '_EntriesCallback', 35 'EntriesCallback': '_EntriesCallback',
37 'ErrorCallback': '_ErrorCallback', 36 'ErrorCallback': '_ErrorCallback',
38 'FileCallback': '_FileCallback', 37 'FileCallback': '_FileCallback',
39 'FileSystemCallback': '_FileSystemCallback', 38 'FileSystemCallback': '_FileSystemCallback',
40 'FileWriterCallback': '_FileWriterCallback', 39 'FileWriterCallback': '_FileWriterCallback',
41 'HTMLDocument' : 'HtmlDocument', 40 'HTMLDocument' : 'HtmlDocument',
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 'TouchEvent.initTouchEvent', 310 'TouchEvent.initTouchEvent',
312 'UIEvent.charCode', 311 'UIEvent.charCode',
313 'UIEvent.initUIEvent', 312 'UIEvent.initUIEvent',
314 'UIEvent.keyCode', 313 'UIEvent.keyCode',
315 'UIEvent.layerX', 314 'UIEvent.layerX',
316 'UIEvent.layerY', 315 'UIEvent.layerY',
317 'UIEvent.pageX', 316 'UIEvent.pageX',
318 'UIEvent.pageY', 317 'UIEvent.pageY',
319 'WebGLRenderingContext.texImage2D', 318 'WebGLRenderingContext.texImage2D',
320 'WheelEvent.initWebKitWheelEvent', 319 'WheelEvent.initWebKitWheelEvent',
321 'WheelEvent.wheelDeltaX', 320 'WheelEvent.deltaX',
322 'WheelEvent.wheelDeltaY', 321 'WheelEvent.deltaY',
323 'Window.createImageBitmap', 322 'Window.createImageBitmap',
324 'Window.getComputedStyle', 323 'Window.getComputedStyle',
325 'Window.moveTo', 324 'Window.moveTo',
326 'Window.clearTimeout', 325 'Window.clearTimeout',
327 'Window.clearInterval', 326 'Window.clearInterval',
328 'Window.setTimeout', 327 'Window.setTimeout',
329 'Window.setInterval', 328 'Window.setInterval',
330 ]) 329 ])
331 330
332 # Members from the standard dom that exist in the dart:html library with 331 # Members from the standard dom that exist in the dart:html library with
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 'ImageBitmapFactories.createImageBitmap(HTMLVideoElement video)' : 'createImag eBitmap2', 387 'ImageBitmapFactories.createImageBitmap(HTMLVideoElement video)' : 'createImag eBitmap2',
389 'ImageBitmapFactories.createImageBitmap(HTMLVideoElement video, long sx, long sy, long sw, long sh)' : 'createImageBitmap3', 388 'ImageBitmapFactories.createImageBitmap(HTMLVideoElement video, long sx, long sy, long sw, long sh)' : 'createImageBitmap3',
390 'ImageBitmapFactories.createImageBitmap(CanvasRenderingContext2D context)' : ' createImageBitmap4', 389 'ImageBitmapFactories.createImageBitmap(CanvasRenderingContext2D context)' : ' createImageBitmap4',
391 'ImageBitmapFactories.createImageBitmap(CanvasRenderingContext2D context, long sx, long sy, long sw, long sh)' : 'createImageBitmap5', 390 'ImageBitmapFactories.createImageBitmap(CanvasRenderingContext2D context, long sx, long sy, long sw, long sh)' : 'createImageBitmap5',
392 'ImageBitmapFactories.createImageBitmap(HTMLCanvasElement canvas)' : 'createIm ageBitmap6', 391 'ImageBitmapFactories.createImageBitmap(HTMLCanvasElement canvas)' : 'createIm ageBitmap6',
393 'ImageBitmapFactories.createImageBitmap(HTMLCanvasElement canvas, long sx, lon g sy, long sw, long sh)' : 'createImageBitmap7', 392 'ImageBitmapFactories.createImageBitmap(HTMLCanvasElement canvas, long sx, lon g sy, long sw, long sh)' : 'createImageBitmap7',
394 'ImageBitmapFactories.createImageBitmap(ImageData data)' : 'createImageBitmap8 ', 393 'ImageBitmapFactories.createImageBitmap(ImageData data)' : 'createImageBitmap8 ',
395 'ImageBitmapFactories.createImageBitmap(ImageData data, long sx, long sy, long sw, long sh)' : 'createImageBitmap9', 394 'ImageBitmapFactories.createImageBitmap(ImageData data, long sx, long sy, long sw, long sh)' : 'createImageBitmap9',
396 'ImageBitmapFactories.createImageBitmap(ImageBitmap bitmap)' : 'createImageBit map10', 395 'ImageBitmapFactories.createImageBitmap(ImageBitmap bitmap)' : 'createImageBit map10',
397 'ImageBitmapFactories.createImageBitmap(ImageBitmap bitmap, long sx, long sy, long sw, long sh)' : 'createImageBitmap11', 396 'ImageBitmapFactories.createImageBitmap(ImageBitmap bitmap, long sx, long sy, long sw, long sh)' : 'createImageBitmap11',
397 'ImageBitmapFactories.createImageBitmap(Blob blob)' : 'createImageBitmap12',
398 'ImageBitmapFactories.createImageBitmap(Blob blob, long sx, long sy, long sw, long sh)' : 'createImageBitmap13',
398 'RTCDataChannel.send(ArrayBuffer data)': 'sendByteBuffer', 399 'RTCDataChannel.send(ArrayBuffer data)': 'sendByteBuffer',
399 'RTCDataChannel.send(ArrayBufferView data)': 'sendTypedData', 400 'RTCDataChannel.send(ArrayBufferView data)': 'sendTypedData',
400 'RTCDataChannel.send(Blob data)': 'sendBlob', 401 'RTCDataChannel.send(Blob data)': 'sendBlob',
401 'RTCDataChannel.send(DOMString data)': 'sendString', 402 'RTCDataChannel.send(DOMString data)': 'sendString',
402 'SourceBuffer.appendBuffer(ArrayBufferView data)': 'appendBufferView', 403 'SourceBuffer.appendBuffer(ArrayBufferView data)': 'appendBufferView',
403 'URL.createObjectURL(MediaSource source)': 404 'URL.createObjectURL(MediaSource source)':
404 'createObjectUrlFromSource', 405 'createObjectUrlFromSource',
405 'URL.createObjectURL(WebKitMediaSource source)': 406 'URL.createObjectURL(WebKitMediaSource source)':
406 '_createObjectUrlFromWebKitSource', 407 '_createObjectUrlFromWebKitSource',
407 'URL.createObjectURL(MediaStream stream)': 'createObjectUrlFromStream', 408 'URL.createObjectURL(MediaStream stream)': 'createObjectUrlFromStream',
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 898
898 # We're looking for a sequence of letters which start with capital letter 899 # We're looking for a sequence of letters which start with capital letter
899 # then a series of caps and finishes with either the end of the string or 900 # then a series of caps and finishes with either the end of the string or
900 # a capital letter. 901 # a capital letter.
901 # The [0-9] check is for names such as 2D or 3D 902 # The [0-9] check is for names such as 2D or 3D
902 # The following test cases should match as: 903 # The following test cases should match as:
903 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 904 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
904 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 905 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
905 # IFrameElement: (I)()(F)rameElement (no change) 906 # IFrameElement: (I)()(F)rameElement (no change)
906 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 907 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tools/dom/scripts/htmleventgenerator.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698