| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 'SVGTRefElement', | 129 'SVGTRefElement', |
| 130 'SVGVKernElement', | 130 'SVGVKernElement', |
| 131 'SubtleCrypto', | 131 'SubtleCrypto', |
| 132 'WebKitCSSFilterValue', | 132 'WebKitCSSFilterValue', |
| 133 'WebKitCSSMatrix', | 133 'WebKitCSSMatrix', |
| 134 'WebKitCSSMixFunctionValue', | 134 'WebKitCSSMixFunctionValue', |
| 135 'WebKitCSSTransformValue', | 135 'WebKitCSSTransformValue', |
| 136 'WebKitMediaSource', | 136 'WebKitMediaSource', |
| 137 'WebKitNotification', | 137 'WebKitNotification', |
| 138 'WebGLRenderingContextBase', | 138 'WebGLRenderingContextBase', |
| 139 'WebGL2RenderingContextBase', |
| 139 'WebKitSourceBuffer', | 140 'WebKitSourceBuffer', |
| 140 'WebKitSourceBufferList', | 141 'WebKitSourceBufferList', |
| 141 'WorkerLocation', # Workers | 142 'WorkerLocation', # Workers |
| 142 'WorkerNavigator', # Workers | 143 'WorkerNavigator', # Workers |
| 143 'XMLHttpRequestProgressEvent', | 144 'XMLHttpRequestProgressEvent', |
| 144 ] | 145 ] |
| 145 | 146 |
| 146 for interface in _removed_html_interfaces: | 147 for interface in _removed_html_interfaces: |
| 147 html_interface_renames[interface] = '_' + interface | 148 html_interface_renames[interface] = '_' + interface |
| 148 | 149 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 170 'Window.webkitRequestFileSystem', | 171 'Window.webkitRequestFileSystem', |
| 171 'Window.webkitResolveLocalFileSystemURL', | 172 'Window.webkitResolveLocalFileSystemURL', |
| 172 'WorkerGlobalScope.webkitRequestFileSystem', | 173 'WorkerGlobalScope.webkitRequestFileSystem', |
| 173 'WorkerGlobalScope.webkitResolveLocalFileSystemURL', | 174 'WorkerGlobalScope.webkitResolveLocalFileSystemURL', |
| 174 ]) | 175 ]) |
| 175 | 176 |
| 176 # Classes where we have customized constructors, but we need to keep the old | 177 # Classes where we have customized constructors, but we need to keep the old |
| 177 # constructor for dispatch purposes. | 178 # constructor for dispatch purposes. |
| 178 custom_html_constructors = monitored.Set( | 179 custom_html_constructors = monitored.Set( |
| 179 'htmlrenamer.custom_html_constructors', [ | 180 'htmlrenamer.custom_html_constructors', [ |
| 181 'CompositionEvent', # 45 Roll hide default constructor use Dart's custom |
| 182 'CustomEvent', # 45 Roll hide default constructor use Dart's custom |
| 183 'Event', # 45 Roll hide default constructor use Dart's custom |
| 184 'HashChangeEvent', # 45 Roll hide default constructor use Dart's custom |
| 180 'HTMLAudioElement', | 185 'HTMLAudioElement', |
| 181 'HTMLOptionElement', | 186 'HTMLOptionElement', |
| 187 'KeyboardEvent', # 45 Roll hide default constructor use Dart's custom |
| 188 'MessageEvent', # 45 Roll hide default constructor use Dart's custom |
| 189 'MouseEvent', # 45 Roll hide default constructor use Dart's custom |
| 182 'MutationObserver', | 190 'MutationObserver', |
| 191 'StorageEvent', # 45 Roll hide default constructor use Dart's custom |
| 192 'UIEvent', # 45 Roll hide default constructor use Dart's custom |
| 193 'WheelEvent', # 45 Roll hide default constructor use Dart's custom |
| 183 ]) | 194 ]) |
| 184 | 195 |
| 185 # Members from the standard dom that should not be exposed publicly in dart:html | 196 # Members from the standard dom that should not be exposed publicly in dart:html |
| 186 # but need to be exposed internally to implement dart:html on top of a standard | 197 # but need to be exposed internally to implement dart:html on top of a standard |
| 187 # browser. They are exposed simply by placing an underscore in front of the | 198 # browser. They are exposed simply by placing an underscore in front of the |
| 188 # name. | 199 # name. |
| 189 private_html_members = monitored.Set('htmlrenamer.private_html_members', [ | 200 private_html_members = monitored.Set('htmlrenamer.private_html_members', [ |
| 190 'AudioContext.decodeAudioData', | 201 'AudioContext.decodeAudioData', |
| 191 'AudioNode.connect', | 202 'AudioNode.connect', |
| 192 'Cache.add', | 203 'Cache.add', |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 'Element.scrollIntoView', | 257 'Element.scrollIntoView', |
| 247 'Element.scrollIntoViewIfNeeded', | 258 'Element.scrollIntoViewIfNeeded', |
| 248 'Element.removeAttribute', | 259 'Element.removeAttribute', |
| 249 'Element.removeAttributeNS', | 260 'Element.removeAttributeNS', |
| 250 'Element.hasAttribute', | 261 'Element.hasAttribute', |
| 251 'Element.hasAttributeNS', | 262 'Element.hasAttributeNS', |
| 252 'Element.innerHTML', | 263 'Element.innerHTML', |
| 253 'Element.querySelectorAll', | 264 'Element.querySelectorAll', |
| 254 # TODO(vsm): These have been converted from int to double in Chrome 36. | 265 # TODO(vsm): These have been converted from int to double in Chrome 36. |
| 255 # Special case them so we run on 34, 35, and 36. | 266 # Special case them so we run on 34, 35, and 36. |
| 256 'Element.offsetLeft', | |
| 257 'Element.offsetTop', | |
| 258 'Element.offsetWidth', | |
| 259 'Element.offsetHeight', | |
| 260 'Element.clientLeft', | |
| 261 'Element.clientTop', | |
| 262 'Element.clientWidth', | |
| 263 'Element.clientHeight', | |
| 264 'Element.scrollLeft', | 267 'Element.scrollLeft', |
| 265 'Element.scrollTop', | 268 'Element.scrollTop', |
| 266 'Element.scrollWidth', | 269 'Element.scrollWidth', |
| 267 'Element.scrollHeight', | 270 'Element.scrollHeight', |
| 268 | 271 |
| 269 'Event.initEvent', | 272 'Event.initEvent', |
| 270 'EventTarget.addEventListener', | 273 'EventTarget.addEventListener', |
| 271 'EventTarget.removeEventListener', | 274 'EventTarget.removeEventListener', |
| 272 'FileReader.result', | 275 'FileReader.result', |
| 273 'Geolocation.clearWatch', | 276 'Geolocation.clearWatch', |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 'WindowTimers.setTimeout', | 400 'WindowTimers.setTimeout', |
| 398 'Window.moveTo', | 401 'Window.moveTo', |
| 399 'Window.requestAnimationFrame', | 402 'Window.requestAnimationFrame', |
| 400 'Window.setInterval', | 403 'Window.setInterval', |
| 401 'Window.setTimeout', | 404 'Window.setTimeout', |
| 402 ]) | 405 ]) |
| 403 | 406 |
| 404 # Members from the standard dom that exist in the dart:html library with | 407 # Members from the standard dom that exist in the dart:html library with |
| 405 # identical functionality but with cleaner names. | 408 # identical functionality but with cleaner names. |
| 406 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { | 409 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { |
| 410 'ConsoleBase.assert': 'assertCondition', |
| 407 'CSSKeyframesRule.insertRule': 'appendRule', | 411 'CSSKeyframesRule.insertRule': 'appendRule', |
| 408 'DirectoryEntry.getDirectory': '_getDirectory', | 412 'DirectoryEntry.getDirectory': '_getDirectory', |
| 409 'DirectoryEntry.getFile': '_getFile', | 413 'DirectoryEntry.getFile': '_getFile', |
| 410 'Document.createCDATASection': 'createCDataSection', | 414 'Document.createCDATASection': 'createCDataSection', |
| 411 'Document.defaultView': 'window', | 415 'Document.defaultView': 'window', |
| 412 'Window.CSS': 'css', | 416 'Window.CSS': 'css', |
| 413 'Window.webkitNotifications': 'notifications', | 417 'Window.webkitNotifications': 'notifications', |
| 414 'Window.webkitRequestFileSystem': '_requestFileSystem', | 418 'Window.webkitRequestFileSystem': '_requestFileSystem', |
| 415 'Window.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', | 419 'Window.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', |
| 416 'Navigator.webkitGetUserMedia': '_getUserMedia', | 420 'Navigator.webkitGetUserMedia': '_getUserMedia', |
| (...skipping 10 matching lines...) Expand all Loading... |
| 427 #'WorkerContext.webkitRequestFileSystem': '_requestFileSystem', | 431 #'WorkerContext.webkitRequestFileSystem': '_requestFileSystem', |
| 428 #'WorkerContext.webkitRequestFileSystemSync': '_requestFileSystemSync', | 432 #'WorkerContext.webkitRequestFileSystemSync': '_requestFileSystemSync', |
| 429 }) | 433 }) |
| 430 | 434 |
| 431 # Members that have multiple definitions, but their types are vary, so we rename | 435 # Members that have multiple definitions, but their types are vary, so we rename |
| 432 # them to make them distinct. | 436 # them to make them distinct. |
| 433 renamed_overloads = monitored.Dict('htmldartgenerator.renamed_overloads', { | 437 renamed_overloads = monitored.Dict('htmldartgenerator.renamed_overloads', { |
| 434 'AudioContext.createBuffer(ArrayBuffer buffer, boolean mixToMono)': | 438 'AudioContext.createBuffer(ArrayBuffer buffer, boolean mixToMono)': |
| 435 'createBufferFromBuffer', | 439 'createBufferFromBuffer', |
| 436 'CSS.supports(DOMString conditionText)': 'supportsCondition', | 440 'CSS.supports(DOMString conditionText)': 'supportsCondition', |
| 437 'CanvasRenderingContext2D.createPattern(HTMLImageElement image, ' | |
| 438 'DOMString repetitionType)': 'createPatternFromImage', | |
| 439 'DataTransferItemList.add(File file)': 'addFile', | 441 'DataTransferItemList.add(File file)': 'addFile', |
| 440 'DataTransferItemList.add(DOMString data, DOMString type)': 'addData', | 442 'DataTransferItemList.add(DOMString data, DOMString type)': 'addData', |
| 441 'FormData.append(DOMString name, Blob value, DOMString filename)': | 443 'FormData.append(DOMString name, Blob value, DOMString filename)': |
| 442 'appendBlob', | 444 'appendBlob', |
| 443 'RTCDataChannel.send(ArrayBuffer data)': 'sendByteBuffer', | 445 'RTCDataChannel.send(ArrayBuffer data)': 'sendByteBuffer', |
| 444 'RTCDataChannel.send(ArrayBufferView data)': 'sendTypedData', | 446 'RTCDataChannel.send(ArrayBufferView data)': 'sendTypedData', |
| 445 'RTCDataChannel.send(Blob data)': 'sendBlob', | 447 'RTCDataChannel.send(Blob data)': 'sendBlob', |
| 446 'RTCDataChannel.send(DOMString data)': 'sendString', | 448 'RTCDataChannel.send(DOMString data)': 'sendString', |
| 447 'SourceBuffer.appendBuffer(ArrayBufferView data)': 'appendTypedData', | 449 'SourceBuffer.appendBuffer(ArrayBufferView data)': 'appendTypedData', |
| 448 'URL.createObjectURL(MediaSource source)': | 450 'URL.createObjectURL(MediaSource source)': |
| (...skipping 30 matching lines...) Expand all Loading... |
| 479 'ArrayBuffer data, unsigned long usage)': 'bufferByteData', | 481 'ArrayBuffer data, unsigned long usage)': 'bufferByteData', |
| 480 'WebGLRenderingContextBase.bufferData(unsigned long target, ' | 482 'WebGLRenderingContextBase.bufferData(unsigned long target, ' |
| 481 'ArrayBufferView data, unsigned long usage)': 'bufferDataTyped', | 483 'ArrayBufferView data, unsigned long usage)': 'bufferDataTyped', |
| 482 'WebGLRenderingContextBase.bufferSubData(unsigned long target, ' | 484 'WebGLRenderingContextBase.bufferSubData(unsigned long target, ' |
| 483 'long long offset, ArrayBuffer data)': 'bufferSubByteData', | 485 'long long offset, ArrayBuffer data)': 'bufferSubByteData', |
| 484 'WebGLRenderingContextBase.bufferSubData(unsigned long target, ' | 486 'WebGLRenderingContextBase.bufferSubData(unsigned long target, ' |
| 485 'long long offset, ArrayBufferView data)': 'bufferSubDataTyped', | 487 'long long offset, ArrayBufferView data)': 'bufferSubDataTyped', |
| 486 'WebSocket.send(ArrayBuffer data)': 'sendByteBuffer', | 488 'WebSocket.send(ArrayBuffer data)': 'sendByteBuffer', |
| 487 'WebSocket.send(ArrayBufferView data)': 'sendTypedData', | 489 'WebSocket.send(ArrayBufferView data)': 'sendTypedData', |
| 488 'WebSocket.send(DOMString data)': 'sendString', | 490 'WebSocket.send(DOMString data)': 'sendString', |
| 489 'WebSocket.send(Blob data)': 'sendBlob' | 491 'WebSocket.send(Blob data)': 'sendBlob', |
| 492 'Window.setInterval(DOMString handler, long timeout, any arguments)': '_setInt
erval_String', |
| 493 'Window.setTimeout(DOMString handler, long timeout, any arguments)': '_setTime
out_String', |
| 494 'WindowTimers.setInterval(DOMString handler, long timeout, any arguments)': '_
setInterval_String', |
| 495 'WindowTimers.setTimeout(DOMString handler, long timeout, any arguments)': '_s
etTimeout_String', |
| 490 }) | 496 }) |
| 491 | 497 |
| 492 # Members that have multiple definitions, but their types are identical (only | 498 # Members that have multiple definitions, but their types are identical (only |
| 493 # number of arguments vary), so we do not rename them as a _raw method. | 499 # number of arguments vary), so we do not rename them as a _raw method. |
| 494 keep_overloaded_members = monitored.Set( | 500 keep_overloaded_members = monitored.Set( |
| 495 'htmldartgenerator.keep_overloaded_members', [ | 501 'htmldartgenerator.keep_overloaded_members', [ |
| 496 'AudioBufferSourceNode.start', | 502 'AudioBufferSourceNode.start', |
| 497 'CanvasRenderingContext2D.putImageData', | 503 'CanvasRenderingContext2D.putImageData', |
| 498 'CanvasRenderingContext2D.webkitPutImageDataHD', | 504 'CanvasRenderingContext2D.webkitPutImageDataHD', |
| 499 'DataTransferItemList.add', | 505 'DataTransferItemList.add', |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 'CanvasRenderingContext2D.drawImageFromRect', | 552 'CanvasRenderingContext2D.drawImageFromRect', |
| 547 'CanvasRenderingContext2D.setAlpha', | 553 'CanvasRenderingContext2D.setAlpha', |
| 548 'CanvasRenderingContext2D.setCompositeOperation', | 554 'CanvasRenderingContext2D.setCompositeOperation', |
| 549 'CanvasRenderingContext2D.setFillColor', | 555 'CanvasRenderingContext2D.setFillColor', |
| 550 'CanvasRenderingContext2D.setLineCap', | 556 'CanvasRenderingContext2D.setLineCap', |
| 551 'CanvasRenderingContext2D.setLineJoin', | 557 'CanvasRenderingContext2D.setLineJoin', |
| 552 'CanvasRenderingContext2D.setLineWidth', | 558 'CanvasRenderingContext2D.setLineWidth', |
| 553 'CanvasRenderingContext2D.setMiterLimit', | 559 'CanvasRenderingContext2D.setMiterLimit', |
| 554 'CanvasRenderingContext2D.setShadow', | 560 'CanvasRenderingContext2D.setShadow', |
| 555 'CanvasRenderingContext2D.setStrokeColor', | 561 'CanvasRenderingContext2D.setStrokeColor', |
| 562 # Disable the webKit version, imageSmoothingEnabled is exposed. |
| 563 'CanvasRenderingContext2D.webkitImageSmoothingEnabled', |
| 556 'CharacterData.remove', | 564 'CharacterData.remove', |
| 565 'ChildNode.replaceWith', |
| 557 'Window.call:blur', | 566 'Window.call:blur', |
| 558 'Window.call:focus', | 567 'Window.call:focus', |
| 559 'Window.clientInformation', | 568 'Window.clientInformation', |
| 560 'Window.createImageBitmap', | 569 'Window.createImageBitmap', |
| 561 'Window.get:frames', | 570 'Window.get:frames', |
| 562 'Window.get:length', | 571 'Window.get:length', |
| 563 'Window.on:beforeUnload', | 572 'Window.on:beforeUnload', |
| 564 'Window.on:webkitTransitionEnd', | 573 'Window.on:webkitTransitionEnd', |
| 565 'Window.pagePopupController', | 574 'Window.pagePopupController', |
| 566 'Window.prompt', | 575 'Window.prompt', |
| 567 'Window.webkitCancelAnimationFrame', | 576 'Window.webkitCancelAnimationFrame', |
| 568 'Window.webkitCancelRequestAnimationFrame', | 577 'Window.webkitCancelRequestAnimationFrame', |
| 569 'Window.webkitIndexedDB', | 578 'Window.webkitIndexedDB', |
| 570 'Window.webkitRequestAnimationFrame', | 579 'Window.webkitRequestAnimationFrame', |
| 571 'Document.alinkColor', | 580 'Document.alinkColor', |
| 572 'Document.all', | 581 'Document.all', |
| 582 'Document.append', |
| 573 'Document.applets', | 583 'Document.applets', |
| 574 'Document.bgColor', | 584 'Document.bgColor', |
| 575 'Document.clear', | 585 'Document.clear', |
| 576 'Document.createAttribute', | 586 'Document.createAttribute', |
| 577 'Document.createAttributeNS', | 587 'Document.createAttributeNS', |
| 578 'Document.createComment', | 588 'Document.createComment', |
| 579 'Document.createExpression', | 589 'Document.createExpression', |
| 580 'Document.createNSResolver', | 590 'Document.createNSResolver', |
| 581 'Document.createProcessingInstruction', | 591 'Document.createProcessingInstruction', |
| 582 'Document.designMode', | 592 'Document.designMode', |
| (...skipping 15 matching lines...) Expand all Loading... |
| 598 'Document.get:scripts', | 608 'Document.get:scripts', |
| 599 'Document.get:xmlEncoding', | 609 'Document.get:xmlEncoding', |
| 600 'Document.getElementsByTagNameNS', | 610 'Document.getElementsByTagNameNS', |
| 601 'Document.getOverrideStyle', | 611 'Document.getOverrideStyle', |
| 602 'Document.getSelection', | 612 'Document.getSelection', |
| 603 'Document.images', | 613 'Document.images', |
| 604 'Document.linkColor', | 614 'Document.linkColor', |
| 605 'Document.location', | 615 'Document.location', |
| 606 'Document.on:wheel', | 616 'Document.on:wheel', |
| 607 'Document.open', | 617 'Document.open', |
| 618 'Document.prepend', |
| 608 'Document.register', | 619 'Document.register', |
| 609 'Document.set:domain', | 620 'Document.set:domain', |
| 610 'Document.vlinkColor', | 621 'Document.vlinkColor', |
| 611 'Document.webkitCurrentFullScreenElement', | 622 'Document.webkitCurrentFullScreenElement', |
| 612 'Document.webkitFullScreenKeyboardInputAllowed', | 623 'Document.webkitFullScreenKeyboardInputAllowed', |
| 613 'Document.write', | 624 'Document.write', |
| 614 'Document.writeln', | 625 'Document.writeln', |
| 615 'Document.xmlStandalone', | 626 'Document.xmlStandalone', |
| 616 'Document.xmlVersion', | 627 'Document.xmlVersion', |
| 617 'DocumentFragment.children', | 628 'DocumentFragment.children', |
| (...skipping 18 matching lines...) Expand all Loading... |
| 636 'DOMException.NO_MODIFICATION_ALLOWED_ERR', | 647 'DOMException.NO_MODIFICATION_ALLOWED_ERR', |
| 637 'DOMException.QUOTA_EXCEEDED_ERR', | 648 'DOMException.QUOTA_EXCEEDED_ERR', |
| 638 'DOMException.SECURITY_ERR', | 649 'DOMException.SECURITY_ERR', |
| 639 'DOMException.SYNTAX_ERR', | 650 'DOMException.SYNTAX_ERR', |
| 640 'DOMException.TIMEOUT_ERR', | 651 'DOMException.TIMEOUT_ERR', |
| 641 'DOMException.TYPE_MISMATCH_ERR', | 652 'DOMException.TYPE_MISMATCH_ERR', |
| 642 'DOMException.URL_MISMATCH_ERR', | 653 'DOMException.URL_MISMATCH_ERR', |
| 643 'DOMException.VALIDATION_ERR', | 654 'DOMException.VALIDATION_ERR', |
| 644 'DOMException.WRONG_DOCUMENT_ERR', | 655 'DOMException.WRONG_DOCUMENT_ERR', |
| 645 'Element.accessKey', | 656 'Element.accessKey', |
| 657 'Element.append', |
| 646 'Element.dataset', | 658 'Element.dataset', |
| 647 'Element.get:classList', | 659 'Element.get:classList', |
| 648 'Element.getAttributeNode', | 660 'Element.getAttributeNode', |
| 649 'Element.getAttributeNodeNS', | 661 'Element.getAttributeNodeNS', |
| 650 'Element.getElementsByTagNameNS', | 662 'Element.getElementsByTagNameNS', |
| 651 'Element.innerText', | 663 'Element.innerText', |
| 664 # TODO(terry): All offset* attributes are in both HTMLElement and Element |
| 665 # (it's a Chrome bug with a FIXME note to correct - sometime). |
| 666 # Until corrected these Element attributes must be ignored. |
| 667 'Element.offsetParent', |
| 668 'Element.offsetTop', |
| 669 'Element.offsetLeft', |
| 670 'Element.offsetWidth', |
| 671 'Element.offsetHeight', |
| 652 'Element.on:wheel', | 672 'Element.on:wheel', |
| 653 'Element.outerText', | 673 'Element.outerText', |
| 674 'Element.prepend', |
| 654 'Element.removeAttributeNode', | 675 'Element.removeAttributeNode', |
| 655 'Element.set:outerHTML', | 676 'Element.set:outerHTML', |
| 656 'Element.setAttributeNode', | 677 'Element.setAttributeNode', |
| 657 'Element.setAttributeNodeNS', | 678 'Element.setAttributeNodeNS', |
| 658 'Element.webkitCreateShadowRoot', | 679 'Element.webkitCreateShadowRoot', |
| 659 'Element.webkitMatchesSelector', | 680 'Element.webkitMatchesSelector', |
| 660 'Element.webkitPseudo', | 681 'Element.webkitPseudo', |
| 661 'Element.webkitShadowRoot', | 682 'Element.webkitShadowRoot', |
| 662 '=Event.returnValue', # Only suppress on Event, allow for BeforeUnloadEvnt. | 683 '=Event.returnValue', # Only suppress on Event, allow for BeforeUnloadEvnt. |
| 663 'Event.srcElement', | 684 'Event.srcElement', |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 'Node.isSameNode', | 818 'Node.isSameNode', |
| 798 'Node.isSupported', | 819 'Node.isSupported', |
| 799 'Node.lookupNamespaceURI', | 820 'Node.lookupNamespaceURI', |
| 800 'Node.lookupPrefix', | 821 'Node.lookupPrefix', |
| 801 'Node.normalize', | 822 'Node.normalize', |
| 802 'Node.set:nodeValue', | 823 'Node.set:nodeValue', |
| 803 'NodeFilter.acceptNode', | 824 'NodeFilter.acceptNode', |
| 804 'NodeIterator.expandEntityReferences', | 825 'NodeIterator.expandEntityReferences', |
| 805 'NodeIterator.filter', | 826 'NodeIterator.filter', |
| 806 'NodeList.item', | 827 'NodeList.item', |
| 828 'ParentNode.append', |
| 829 'ParentNode.prepend', |
| 807 'Performance.webkitClearMarks', | 830 'Performance.webkitClearMarks', |
| 808 'Performance.webkitClearMeasures', | 831 'Performance.webkitClearMeasures', |
| 809 'Performance.webkitGetEntries', | 832 'Performance.webkitGetEntries', |
| 810 'Performance.webkitGetEntriesByName', | 833 'Performance.webkitGetEntriesByName', |
| 811 'Performance.webkitGetEntriesByType', | 834 'Performance.webkitGetEntriesByType', |
| 812 'Performance.webkitMark', | 835 'Performance.webkitMark', |
| 813 'Performance.webkitMeasure', | 836 'Performance.webkitMeasure', |
| 814 'ShadowRoot.getElementsByTagNameNS', | 837 'ShadowRoot.getElementsByTagNameNS', |
| 815 'SVGElement.getPresentationAttribute', | 838 'SVGElement.getPresentationAttribute', |
| 816 'SVGElementInstance.on:wheel', | 839 'SVGElementInstance.on:wheel', |
| 817 'Touch.get:webkitRadiusX', | 840 'Touch.get:webkitRadiusX', |
| 818 'Touch.get:webkitRadiusY', | 841 'Touch.get:webkitRadiusY', |
| 819 'Touch.get:webkitForce', | 842 'Touch.get:webkitForce', |
| 843 'Touch.get:webkitRotationAngle', |
| 820 'WheelEvent.wheelDelta', | 844 'WheelEvent.wheelDelta', |
| 821 'WheelEvent.wheelDeltaX', | 845 'WheelEvent.wheelDeltaX', |
| 822 'WheelEvent.wheelDeltaY', | 846 'WheelEvent.wheelDeltaY', |
| 823 'Window.on:wheel', | 847 'Window.on:wheel', |
| 824 'WindowEventHandlers.on:beforeUnload', | 848 'WindowEventHandlers.on:beforeUnload', |
| 825 'WorkerGlobalScope.webkitIndexedDB', | 849 'WorkerGlobalScope.webkitIndexedDB', |
| 826 'XMLHttpRequest.open', | 850 'XMLHttpRequest.open', |
| 827 # TODO(jacobr): should these be removed? | 851 # TODO(jacobr): should these be removed? |
| 828 'Document.close', | 852 'Document.close', |
| 829 'Document.hasFocus', | 853 'Document.hasFocus', |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 862 if any(interface.id in ['Element', 'Document'] | 886 if any(interface.id in ['Element', 'Document'] |
| 863 for interface in self._database.Hierarchy(interface)): | 887 for interface in self._database.Hierarchy(interface)): |
| 864 return interface.id[len('HTML'):] | 888 return interface.id[len('HTML'):] |
| 865 return self._DartifyName(interface.javascript_binding_name) | 889 return self._DartifyName(interface.javascript_binding_name) |
| 866 | 890 |
| 867 def RenameInterfaceId(self, interface_id): | 891 def RenameInterfaceId(self, interface_id): |
| 868 if interface_id in html_interface_renames: | 892 if interface_id in html_interface_renames: |
| 869 return html_interface_renames[interface_id] | 893 return html_interface_renames[interface_id] |
| 870 return None; | 894 return None; |
| 871 | 895 |
| 896 def isPrivate(self, interface, member): |
| 897 return self._FindMatch(interface, member, '', private_html_members) |
| 872 | 898 |
| 873 def RenameMember(self, interface_name, member_node, member, member_prefix='', | 899 def RenameMember(self, interface_name, member_node, member, member_prefix='', |
| 874 dartify_name=True): | 900 dartify_name=True): |
| 875 """ | 901 """ |
| 876 Returns the name of the member in the HTML library or None if the member is | 902 Returns the name of the member in the HTML library or None if the member is |
| 877 suppressed in the HTML library | 903 suppressed in the HTML library |
| 878 """ | 904 """ |
| 879 interface = self._database.GetInterface(interface_name) | 905 interface = self._database.GetInterface(interface_name) |
| 880 | 906 |
| 881 if not member: | 907 if not member: |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 | 1059 |
| 1034 # We're looking for a sequence of letters which start with capital letter | 1060 # We're looking for a sequence of letters which start with capital letter |
| 1035 # then a series of caps and finishes with either the end of the string or | 1061 # then a series of caps and finishes with either the end of the string or |
| 1036 # a capital letter. | 1062 # a capital letter. |
| 1037 # The [0-9] check is for names such as 2D or 3D | 1063 # The [0-9] check is for names such as 2D or 3D |
| 1038 # The following test cases should match as: | 1064 # The following test cases should match as: |
| 1039 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 1065 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 1040 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 1066 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 1041 # IFrameElement: (I)()(F)rameElement (no change) | 1067 # IFrameElement: (I)()(F)rameElement (no change) |
| 1042 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 1068 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |