OLD | NEW |
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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 'transactionList', | 372 'transactionList', |
373 'IDBDatabase.transaction(DOMString storeName, DOMString mode)': | 373 'IDBDatabase.transaction(DOMString storeName, DOMString mode)': |
374 'transactionStore', | 374 'transactionStore', |
375 'RTCDataChannel.send(ArrayBuffer data)': 'sendByteBuffer', | 375 'RTCDataChannel.send(ArrayBuffer data)': 'sendByteBuffer', |
376 'RTCDataChannel.send(ArrayBufferView data)': 'sendTypedData', | 376 'RTCDataChannel.send(ArrayBufferView data)': 'sendTypedData', |
377 'RTCDataChannel.send(Blob data)': 'sendBlob', | 377 'RTCDataChannel.send(Blob data)': 'sendBlob', |
378 'RTCDataChannel.send(DOMString data)': 'sendString', | 378 'RTCDataChannel.send(DOMString data)': 'sendString', |
379 'SourceBuffer.appendBuffer(ArrayBufferView view)': 'appendBufferView', | 379 'SourceBuffer.appendBuffer(ArrayBufferView view)': 'appendBufferView', |
380 'URL.createObjectURL(MediaSource source)': | 380 'URL.createObjectURL(MediaSource source)': |
381 'createObjectUrlFromSource', | 381 'createObjectUrlFromSource', |
| 382 'URL.createObjectURL(WebKitMediaSource source)': |
| 383 '_createObjectUrlFromWebKitSource', |
382 'URL.createObjectURL(MediaStream stream)': 'createObjectUrlFromStream', | 384 'URL.createObjectURL(MediaStream stream)': 'createObjectUrlFromStream', |
383 'URL.createObjectURL(Blob blob)': 'createObjectUrlFromBlob', | 385 'URL.createObjectURL(Blob blob)': 'createObjectUrlFromBlob', |
384 'WebGLRenderingContext.texImage2D(unsigned long target, long level, ' | 386 'WebGLRenderingContext.texImage2D(unsigned long target, long level, ' |
385 'unsigned long internalformat, unsigned long format, unsigned long ' | 387 'unsigned long internalformat, unsigned long format, unsigned long ' |
386 'type, ImageData pixels)': 'texImage2DImageData', | 388 'type, ImageData pixels)': 'texImage2DImageData', |
387 'WebGLRenderingContext.texImage2D(unsigned long target, long level, ' | 389 'WebGLRenderingContext.texImage2D(unsigned long target, long level, ' |
388 'unsigned long internalformat, unsigned long format, unsigned long ' | 390 'unsigned long internalformat, unsigned long format, unsigned long ' |
389 'type, HTMLImageElement image)': 'texImage2DImage', | 391 'type, HTMLImageElement image)': 'texImage2DImage', |
390 'WebGLRenderingContext.texImage2D(unsigned long target, long level, ' | 392 'WebGLRenderingContext.texImage2D(unsigned long target, long level, ' |
391 'unsigned long internalformat, unsigned long format, unsigned long ' | 393 'unsigned long internalformat, unsigned long format, unsigned long ' |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 | 860 |
859 # We're looking for a sequence of letters which start with capital letter | 861 # We're looking for a sequence of letters which start with capital letter |
860 # then a series of caps and finishes with either the end of the string or | 862 # then a series of caps and finishes with either the end of the string or |
861 # a capital letter. | 863 # a capital letter. |
862 # The [0-9] check is for names such as 2D or 3D | 864 # The [0-9] check is for names such as 2D or 3D |
863 # The following test cases should match as: | 865 # The following test cases should match as: |
864 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 866 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
865 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 867 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
866 # IFrameElement: (I)()(F)rameElement (no change) | 868 # IFrameElement: (I)()(F)rameElement (no change) |
867 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 869 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |