| 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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 'Touch.radiusX', | 373 'Touch.radiusX', |
| 374 'Touch.radiusY', | 374 'Touch.radiusY', |
| 375 'TouchEvent.initTouchEvent', | 375 'TouchEvent.initTouchEvent', |
| 376 'UIEvent.charCode', | 376 'UIEvent.charCode', |
| 377 'UIEvent.initUIEvent', | 377 'UIEvent.initUIEvent', |
| 378 'UIEvent.keyCode', | 378 'UIEvent.keyCode', |
| 379 'UIEvent.layerX', | 379 'UIEvent.layerX', |
| 380 'UIEvent.layerY', | 380 'UIEvent.layerY', |
| 381 'UIEvent.pageX', | 381 'UIEvent.pageX', |
| 382 'UIEvent.pageY', | 382 'UIEvent.pageY', |
| 383 'UIEvent.which', |
| 383 'WheelEvent.initWebKitWheelEvent', | 384 'WheelEvent.initWebKitWheelEvent', |
| 384 'WheelEvent.deltaX', | 385 'WheelEvent.deltaX', |
| 385 'WheelEvent.deltaY', | 386 'WheelEvent.deltaY', |
| 386 'WorkerGlobalScope.webkitNotifications', | 387 'WorkerGlobalScope.webkitNotifications', |
| 387 'Window.getComputedStyle', | 388 'Window.getComputedStyle', |
| 388 'Window.clearInterval', | 389 'Window.clearInterval', |
| 389 'Window.clearTimeout', | 390 'Window.clearTimeout', |
| 390 # TODO(tll): These have been converted from int to double in Chrome 39 for | 391 # TODO(tll): These have been converted from int to double in Chrome 39 for |
| 391 # subpixel precision. Special case for backward compatibility. | 392 # subpixel precision. Special case for backward compatibility. |
| 392 'Window.scrollX', | 393 'Window.scrollX', |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 'HTMLTableRowElement.chOff', | 790 'HTMLTableRowElement.chOff', |
| 790 'HTMLTableRowElement.vAlign', | 791 'HTMLTableRowElement.vAlign', |
| 791 'HTMLTableSectionElement.align', | 792 'HTMLTableSectionElement.align', |
| 792 'HTMLTableSectionElement.ch', | 793 'HTMLTableSectionElement.ch', |
| 793 'HTMLTableSectionElement.chOff', | 794 'HTMLTableSectionElement.chOff', |
| 794 'HTMLTableSectionElement.vAlign', | 795 'HTMLTableSectionElement.vAlign', |
| 795 'HTMLTitleElement.text', | 796 'HTMLTitleElement.text', |
| 796 'HTMLUListElement.compact', | 797 'HTMLUListElement.compact', |
| 797 'HTMLUListElement.type', | 798 'HTMLUListElement.type', |
| 798 'IDBDatabase.transaction', # We do this in a template without the generated
implementation at all. | 799 'IDBDatabase.transaction', # We do this in a template without the generated
implementation at all. |
| 800 'KeyboardEvent.charCode', |
| 801 'KeyboardEvent.keyCode', |
| 802 'KeyboardEvent.which', |
| 799 'Location.valueOf', | 803 'Location.valueOf', |
| 800 'MessageEvent.data', | 804 'MessageEvent.data', |
| 801 'MessageEvent.ports', | 805 'MessageEvent.ports', |
| 802 'MessageEvent.webkitInitMessageEvent', | 806 'MessageEvent.webkitInitMessageEvent', |
| 803 'MouseEvent.x', | 807 'MouseEvent.x', |
| 804 'MouseEvent.y', | 808 'MouseEvent.y', |
| 805 'Navigator.registerServiceWorker', | 809 'Navigator.registerServiceWorker', |
| 806 'Navigator.unregisterServiceWorker', | 810 'Navigator.unregisterServiceWorker', |
| 807 'Navigator.isProtocolHandlerRegistered', | 811 'Navigator.isProtocolHandlerRegistered', |
| 808 'Navigator.unregisterProtocolHandler', | 812 'Navigator.unregisterProtocolHandler', |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 | 1062 |
| 1059 # We're looking for a sequence of letters which start with capital letter | 1063 # We're looking for a sequence of letters which start with capital letter |
| 1060 # then a series of caps and finishes with either the end of the string or | 1064 # then a series of caps and finishes with either the end of the string or |
| 1061 # a capital letter. | 1065 # a capital letter. |
| 1062 # The [0-9] check is for names such as 2D or 3D | 1066 # The [0-9] check is for names such as 2D or 3D |
| 1063 # The following test cases should match as: | 1067 # The following test cases should match as: |
| 1064 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 1068 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 1065 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 1069 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 1066 # IFrameElement: (I)()(F)rameElement (no change) | 1070 # IFrameElement: (I)()(F)rameElement (no change) |
| 1067 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 1071 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |