10 'ArrayBuffer':
'ByteBuffer',
11 'ArrayBufferView':
'TypedData',
12 'DataView':
'ByteData',
13 'Float32Array':
'Float32List',
14 'Float64Array':
'Float64List',
15 'Int8Array':
'Int8List',
16 'Int16Array':
'Int16List',
17 'Int32Array':
'Int32List',
18 'Uint8Array':
'Uint8List',
19 'Uint8ClampedArray':
'Uint8ClampedList',
20 'Uint16Array':
'Uint16List',
21 'Uint32Array':
'Uint32List',
25 'htmlrenamer.html_interface_renames',
53 '_FileSystemCallback',
55 '_FileWriterCallback',
70 'NavigatorUserMediaErrorCallback':
71 '_NavigatorUserMediaErrorCallback',
72 'NavigatorUserMediaSuccessCallback':
73 '_NavigatorUserMediaSuccessCallback',
74 'NotificationPermissionCallback':
75 '_NotificationPermissionCallback',
80 'PositionErrorCallback':
81 '_PositionErrorCallback',
88 'RTCDTMFToneChangeEvent':
89 'RtcDtmfToneChangeEvent',
92 'RTCSessionDescriptionCallback':
93 '_RtcSessionDescriptionCallback',
106 'WebGL2RenderingContext':
108 'WebGL2RenderingContextBase':
109 'RenderingContextBase2',
114 'XMLHttpRequestUpload':
116 'XMLHttpRequestEventTarget':
117 'HttpRequestEventTarget',
119 **typed_array_renames))
123_gen_callback_interfaces = [
'NodeFilter']
126def generateCallbackInterface(id):
127 return id
in _gen_callback_interfaces
132_removed_html_interfaces = [
134 'BluetoothAdvertisingData',
135 'BluetoothCharacteristicProperties',
137 'BluetoothRemoteGATTCharacteristic',
138 'BluetoothRemoteGATTServer',
139 'BluetoothRemoteGATTService',
151 'DirectoryEntrySync',
152 'DirectoryReaderSync',
160 'HTMLBaseFontElement',
161 'HTMLDirectoryElement',
164 'HTMLFrameSetElement',
165 'HTMLMarqueeElement',
169 'MojoInterfaceInterceptor',
170 'MojoInterfaceRequestEvent',
174 'PagePopupController',
179 'SQLTransactionSync',
180 'SQLTransactionSyncCallback',
181 'SVGAltGlyphDefElement',
182 'SVGAltGlyphItemElement',
183 'SVGAnimateColorElement',
185 'SVGComponentTransferFunctionElement',
187 'SVGFEDropShadowElement',
189 'SVGFontFaceElement',
190 'SVGFontFaceFormatElement',
191 'SVGFontFaceNameElement',
192 'SVGFontFaceSrcElement',
193 'SVGFontFaceUriElement',
195 'SVGGlyphRefElement',
199 'SVGMissingGlyphElement',
204 'USBAlternateInterface',
206 'USBConnectionEvent',
209 'USBInTransferResult',
211 'USBIsochronousInTransferPacket',
212 'USBIsochronousInTransferResult',
213 'USBIsochronousOutTransferPacket',
214 'USBIsochronousOutTransferResult',
215 'USBOutTransferResult',
216 'WebKitCSSFilterValue',
218 'WebKitCSSMixFunctionValue',
219 'WebKitCSSTransformValue',
221 'WebKitNotification',
222 'WebGLRenderingContextBase',
223 'WebGL2RenderingContextBase',
224 'WebKitSourceBuffer',
225 'WebKitSourceBufferList',
229 'XMLHttpRequestProgressEvent',
231 'ResourceProgressEvent',
234for interface
in _removed_html_interfaces:
235 html_interface_renames[interface] =
'_' + interface
238 'htmlrenamer.converted_to_future_members', [
239 'Database.changeVersion',
240 'Database.readTransaction',
241 'DataTransferItem.getAsString',
242 'DirectoryEntry.getDirectory',
243 'DirectoryEntry.getFile',
244 'DirectoryEntry.removeRecursively',
250 'FileEntry.createWriter',
252 'FontLoader.notifyWhenFontsReady',
253 'MediaStreamTrack.getSources',
254 'Notification.requestPermission',
255 'SQLTransaction.executeSql',
256 'StorageInfo.requestQuota',
257 'StorageQuota.requestQuota',
258 'Window.webkitRequestFileSystem',
259 'Window.webkitResolveLocalFileSystemURL',
260 'WorkerGlobalScope.webkitRequestFileSystem',
261 'WorkerGlobalScope.webkitResolveLocalFileSystemURL',
266 'ddcextensions.ddc_extensions', {
268 'getDirectory': [
''],
270 'applyExtension(\'FileEntry\', value);',
271 'applyExtension(\'webkitFileSystemFileEntry\', value);',
272 'applyExtension(\'FileSystemFileEntry\', value);',
277 'applyExtension(\'Metadata\', value);',
280 'applyExtension(\'Entry\', value);',
281 'applyExtension(\'webkitFileSystemEntry\', value);',
282 'applyExtension(\'FileSystemEntry\', value);',
286 'createWriter': [
'applyExtension(\'FileWriter\', value);'],
287 'file': [
'applyExtension(\'File\', value);']
291 'applyExtension(\'SQLResultSet\', resultSet);'
292 'applyExtension(\'SQLResultSetRowList\', resultSet.rows);'
296 'webkitRequestFileSystem': [
297 'applyExtension(\'DOMFileSystem\', value);',
298 'applyExtension(\'WebKitFileSystem\', value);',
299 'applyExtension(\'webkitFileSystem\', value);',
300 'applyExtension(\'FileSystem\', value);',
301 'applyExtension(\'DirectoryEntry\', value.root);',
302 'applyExtension(\'webkitFileSystemDirectoryEntry\', value.root);',
303 'applyExtension(\'FileSystemDirectoryEntry\', value.root);',
310def GetDDC_Extension(interface, operationName):
311 if interface.id
in ddc_extensions:
312 entry = ddc_extensions[interface.id]
313 if operationName
in entry:
314 return entry[operationName]
321 'htmlrenamer.custom_html_constructors',
343 'htmlrenamer.private_html_members',
352 'CanvasRenderingContext2D.arc',
353 'CanvasRenderingContext2D.drawImage',
354 'CanvasRenderingContext2D.getLineDash',
355 'Crypto.getRandomValues',
356 'CSSStyleDeclaration.getPropertyValue',
357 'CSSStyleDeclaration.setProperty',
358 'CSSStyleDeclaration.var',
359 'CompositionEvent.initCompositionEvent',
360 'CustomEvent.detail',
361 'CustomEvent.initCustomEvent',
362 'DataTransferItem.webkitGetAsEntry',
363 'DeviceOrientationEvent.initDeviceOrientationEvent',
364 'DirectoryEntry.createReader',
365 'DirectoryReader.readEntries',
366 'Document.createElement',
367 'Document.createElementNS',
368 'Document.createEvent',
369 'Document.createNodeIterator',
370 'Document.createTextNode',
371 'Document.createTouch',
372 'Document.createTouchList',
373 'Document.createTreeWalker',
374 'Document.querySelectorAll',
375 'DocumentFragment.querySelectorAll',
379 'Document.caretRangeFromPoint',
380 'Document.elementFromPoint',
381 'Document.getCSSCanvasContext',
383 'Document.lastModified',
384 'Document.preferredStylesheetSet',
386 'Document.selectedStylesheetSet',
387 'Document.styleSheets',
389 'Document.webkitCancelFullScreen',
390 'Document.webkitExitFullscreen',
392 'Document.webkitFullscreenElement',
393 'Document.webkitFullscreenEnabled',
394 'Document.webkitHidden',
395 'Document.webkitIsFullScreen',
396 'Document.webkitVisibilityState',
398 'Document.visibilityState',
400 'Element.childElementCount',
401 'Element.firstElementChild',
402 'Element.getClientRects',
403 'Element.getElementsByTagName',
404 'Element.insertAdjacentHTML',
405 'Element.scrollIntoView',
406 'Element.getAttribute',
407 'Element.getAttributeNS',
408 'Element.hasAttribute',
409 'Element.hasAttributeNS',
410 'Element.removeAttribute',
411 'Element.removeAttributeNS',
412 'Element.setAttribute',
413 'Element.setAttributeNS',
415 'Element.querySelectorAll',
418 'Element.scrollLeft',
420 'Element.scrollWidth',
421 'Element.scrollHeight',
423 'EventTarget.addEventListener',
424 'EventTarget.removeEventListener',
426 'Geolocation.clearWatch',
427 'Geolocation.getCurrentPosition',
428 'Geolocation.watchPosition',
429 'HashChangeEvent.initHashChangeEvent',
430 'HTMLCanvasElement.toDataURL',
431 'HTMLTableElement.createCaption',
432 'HTMLTableElement.createTFoot',
433 'HTMLTableElement.createTHead',
434 'HTMLTableElement.createTBody',
435 'HTMLTableElement.insertRow',
436 'HTMLTableElement.rows',
437 'HTMLTableElement.tBodies',
438 'HTMLTableRowElement.cells',
439 'HTMLTableRowElement.insertCell',
440 'HTMLTableSectionElement.insertRow',
441 'HTMLTableSectionElement.rows',
444 'IDBDatabase.createObjectStore',
445 'IDBFactory.deleteDatabase',
446 'IDBFactory.webkitGetDatabaseNames',
451 'IDBIndex.openCursor',
452 'IDBIndex.openKeyCursor',
453 'IDBObjectStore.add',
454 'IDBObjectStore.clear',
455 'IDBObjectStore.count',
456 'IDBObjectStore.createIndex',
457 'IDBObjectStore.delete',
458 'IDBObjectStore.get',
459 'IDBObjectStore.openCursor',
460 'IDBObjectStore.put',
461 'KeyboardEvent.initKeyboardEvent',
462 'KeyboardEvent.keyIdentifier',
463 'MediaKeys.createSession',
464 'MediaKeySession.update',
465 'MessageEvent.initMessageEvent',
467 'MouseEvent.initMouseEvent',
468 'MouseEvent.clientX',
469 'MouseEvent.clientY',
470 'MouseEvent.movementX',
471 'MouseEvent.movementY',
472 'MouseEvent.offsetX',
473 'MouseEvent.offsetY',
474 'MouseEvent.screenX',
475 'MouseEvent.screenY',
476 'MutationObserver.observe',
477 'Navigator.getGamepads',
483 'ParentNode.childElementCount',
484 'ParentNode.children',
485 'ParentNode.firstElementChild',
486 'ParentNode.lastElementChild',
487 'ParentNode.querySelectorAll',
488 'Range.getClientRects',
489 'Screen.availHeight',
493 'ShadowRoot.resetStyleInheritance',
498 'Storage.removeItem',
500 'StorageEvent.initStorageEvent',
501 'SubtleCrypto.encrypt',
502 'SubtleCrypto.decrypt',
504 'SubtleCrypto.digest',
505 'SubtleCrypto.importKey',
506 'SubtleCrypto.unwrapKey',
507 'ShadowRoot.applyAuthorStyles',
508 'SpeechSynthesis.getVoices',
509 'TextEvent.initTextEvent',
521 'UIEvent.initUIEvent',
527 'KeyboardEvent.charCode',
528 'KeyboardEvent.keyCode',
529 'KeyboardEvent.which',
530 'WebGLRenderingContext.readPixels',
531 'WebGL2RenderingContext.readPixels',
532 'WheelEvent.initWebKitWheelEvent',
535 'WorkerGlobalScope.webkitNotifications',
536 'Window.getComputedStyle',
537 'Window.clearInterval',
538 'Window.clearTimeout',
541 'Window.pageXOffset',
542 'Window.pageYOffset',
545 'WindowTimers.clearInterval',
546 'WindowTimers.clearTimeout',
547 'WindowTimers.setInterval',
548 'WindowTimers.setTimeout',
550 'Window.requestAnimationFrame',
551 'Window.setInterval',
558 'htmlrenamer.renamed_html_members',
560 'ConsoleBase.assert':
'assertCondition',
561 'CSSKeyframesRule.insertRule':
'appendRule',
562 'DirectoryEntry.getDirectory':
'_getDirectory',
563 'DirectoryEntry.getFile':
'_getFile',
564 'Document.createCDATASection':
'createCDataSection',
565 'Document.defaultView':
'window',
567 'Window.webkitNotifications':
'notifications',
568 'Window.webkitRequestFileSystem':
'_requestFileSystem',
569 'Window.webkitResolveLocalFileSystemURL':
'resolveLocalFileSystemUrl',
570 'Navigator.webkitGetUserMedia':
'_getUserMedia',
571 'Node.appendChild':
'append',
572 'Node.cloneNode':
'clone',
573 'Node.nextSibling':
'nextNode',
574 'Node.parentElement':
'parent',
575 'Node.previousSibling':
'previousNode',
576 'Node.textContent':
'text',
577 'SVGElement.className':
'_svgClassName',
578 'SVGStopElement.offset':
'gradientOffset',
579 'URL.createObjectURL':
'createObjectUrl',
580 'URL.revokeObjectURL':
'revokeObjectUrl',
586 'OfflineAudioContext.suspend':
'suspendFor',
592 'htmldartgenerator.renamed_overloads', {
593 'AudioContext.createBuffer(ArrayBuffer buffer, boolean mixToMono)':
594 'createBufferFromBuffer',
595 'CSS.supports(DOMString conditionText)':
597 'DataTransferItemList.add(File file)':
599 'DataTransferItemList.add(DOMString data, DOMString type)':
601 'FormData.append(DOMString name, Blob value, DOMString filename)':
603 'RTCDataChannel.send(ArrayBuffer data)':
605 'RTCDataChannel.send(ArrayBufferView data)':
607 'RTCDataChannel.send(Blob data)':
609 'RTCDataChannel.send(DOMString data)':
611 'SourceBuffer.appendBuffer(ArrayBufferView data)':
613 'URL.createObjectURL(MediaSource source)':
614 'createObjectUrlFromSource',
615 'URL.createObjectURL(WebKitMediaSource source)':
616 '_createObjectUrlFromWebKitSource',
617 'URL.createObjectURL(MediaStream stream)':
618 'createObjectUrlFromStream',
619 'URL.createObjectURL(Blob blob)':
620 'createObjectUrlFromBlob',
621 'WebSocket.send(ArrayBuffer data)':
623 'WebSocket.send(ArrayBufferView data)':
625 'WebSocket.send(DOMString data)':
627 'WebSocket.send(Blob data)':
629 'Window.setInterval(DOMString handler, long timeout, any arguments)':
630 '_setInterval_String',
631 'Window.setTimeout(DOMString handler, long timeout, any arguments)':
632 '_setTimeout_String',
633 'WindowTimers.setInterval(DOMString handler, long timeout, any arguments)':
634 '_setInterval_String',
635 'WindowTimers.setTimeout(DOMString handler, long timeout, any arguments)':
636 '_setTimeout_String',
642 'htmldartgenerator.keep_overloaded_members', [
643 'CanvasRenderingContext2D.putImageData',
644 'CanvasRenderingContext2D.webkitPutImageDataHD',
645 'DataTransferItemList.add',
'Document.createElement',
646 'Document.createElementNS',
'HTMLInputElement.setRangeText',
647 'HTMLTextAreaElement.setRangeText',
'IDBDatabase.transaction',
648 'RTCDataChannel.send',
'URL.createObjectURL',
'WebSocket.send',
649 'XMLHttpRequest.send'
654 'htmldartgenerator.overloaded_and_renamed', [
655 'CanvasRenderingContext2D.clip',
656 'CanvasRenderingContext2D.drawFocusIfNeeded',
657 'CanvasRenderingContext2D.fill',
658 'CanvasRenderingContext2D.isPointInPath',
659 'CanvasRenderingContext2D.isPointInStroke',
660 'CanvasRenderingContext2D.stroke',
661 'Navigator.sendBeacon',
665def convertedFutureMembers(member):
666 return member
in convert_to_future_members
669for member
in convert_to_future_members:
670 if member
in renamed_html_members:
671 renamed_html_members[member] =
'_' + renamed_html_members[member]
673 renamed_html_members[member] =
'_' + member[member.find(
'.') + 1:]
685 'htmlrenamer.removed_html_members',
688 'AudioContext.decodeAudioData',
689 'AudioBufferSourceNode.looping',
690 'CSSStyleDeclaration.getPropertyCSSValue',
691 'HTMLCanvasElement.toBlob',
692 'CanvasRenderingContext2D.clearShadow',
693 'CanvasRenderingContext2D.drawImageFromRect',
694 'CanvasRenderingContext2D.setAlpha',
695 'CanvasRenderingContext2D.setCompositeOperation',
696 'CanvasRenderingContext2D.setFillColor',
697 'CanvasRenderingContext2D.setLineCap',
698 'CanvasRenderingContext2D.setLineJoin',
699 'CanvasRenderingContext2D.setLineWidth',
700 'CanvasRenderingContext2D.setMiterLimit',
701 'CanvasRenderingContext2D.setShadow',
702 'CanvasRenderingContext2D.setStrokeColor',
704 'CanvasRenderingContext2D.webkitImageSmoothingEnabled',
705 'CharacterData.remove',
706 'ChildNode.replaceWith',
707 'CSSStyleDeclaration.__getter__',
708 'CSSStyleDeclaration.__setter__',
711 'Window.clientInformation',
712 'Window.createImageBitmap',
715 'Window.openDatabase',
716 'Window.on:beforeUnload',
717 'Window.on:webkitTransitionEnd',
718 'Window.pagePopupController',
720 'Window.webkitCancelAnimationFrame',
721 'Window.webkitCancelRequestAnimationFrame',
722 'Window.webkitIndexedDB',
723 'Window.webkitRequestAnimationFrame',
724 'Document.alinkColor',
730 'Document.createAttribute',
731 'Document.createAttributeNS',
732 'Document.createComment',
733 'Document.createExpression',
734 'Document.createNSResolver',
735 'Document.createProcessingInstruction',
736 'Document.designMode',
741 'Document.get:anchors',
742 'Document.get:characterSet',
743 'Document.get:compatMode',
744 'Document.get:defaultCharset',
745 'Document.get:doctype',
746 'Document.get:documentURI',
747 'Document.get:embeds',
748 'Document.get:forms',
749 'Document.get:inputEncoding',
750 'Document.get:links',
751 'Document.get:plugins',
752 'Document.get:scripts',
753 'Document.get:xmlEncoding',
754 'Document.getElementsByTagNameNS',
755 'Document.getOverrideStyle',
756 'Document.getSelection',
758 'Document.linkColor',
764 'Document.set:domain',
765 'Document.vlinkColor',
766 'Document.webkitCurrentFullScreenElement',
767 'Document.webkitFullScreenKeyboardInputAllowed',
770 'Document.xmlStandalone',
771 'Document.xmlVersion',
772 'DocumentFragment.children',
775 'DOMException.ABORT_ERR',
776 'DOMException.DATA_CLONE_ERR',
777 'DOMException.DOMSTRING_SIZE_ERR',
778 'DOMException.HIERARCHY_REQUEST_ERR',
779 'DOMException.INDEX_SIZE_ERR',
780 'DOMException.INUSE_ATTRIBUTE_ERR',
781 'DOMException.INVALID_ACCESS_ERR',
782 'DOMException.INVALID_CHARACTER_ERR',
783 'DOMException.INVALID_MODIFICATION_ERR',
784 'DOMException.INVALID_NODE_TYPE_ERR',
785 'DOMException.INVALID_STATE_ERR',
786 'DOMException.NAMESPACE_ERR',
787 'DOMException.NETWORK_ERR',
788 'DOMException.NOT_FOUND_ERR',
789 'DOMException.NOT_SUPPORTED_ERR',
790 'DOMException.NO_DATA_ALLOWED_ERR',
791 'DOMException.NO_MODIFICATION_ALLOWED_ERR',
792 'DOMException.QUOTA_EXCEEDED_ERR',
793 'DOMException.SECURITY_ERR',
794 'DOMException.SYNTAX_ERR',
795 'DOMException.TIMEOUT_ERR',
796 'DOMException.TYPE_MISMATCH_ERR',
797 'DOMException.URL_MISMATCH_ERR',
798 'DOMException.VALIDATION_ERR',
799 'DOMException.WRONG_DOCUMENT_ERR',
804 'Element.get:classList',
805 'Element.getAttributeNode',
806 'Element.getAttributeNodeNS',
807 'Element.getElementsByTagNameNS',
812 'Element.offsetParent',
814 'Element.offsetLeft',
815 'Element.offsetWidth',
816 'Element.offsetHeight',
819 'Element.removeAttributeNode',
820 'Element.set:outerHTML',
821 'Element.setApplyScroll',
822 'Element.setAttributeNode',
823 'Element.setAttributeNodeNS',
824 'Element.setDistributeScroll',
825 'Element.webkitCreateShadowRoot',
826 'Element.webkitMatchesSelector',
827 'Element.webkitPseudo',
828 'Element.webkitShadowRoot',
829 '=Event.returnValue',
835 'HTMLAnchorElement.charset',
836 'HTMLAnchorElement.coords',
837 'HTMLAnchorElement.rev',
838 'HTMLAnchorElement.shape',
839 'HTMLAnchorElement.text',
840 'HTMLAppletElement.*',
841 'HTMLAreaElement.noHref',
842 'HTMLBRElement.clear',
843 'HTMLBaseFontElement.*',
844 'HTMLBodyElement.aLink',
845 'HTMLBodyElement.background',
846 'HTMLBodyElement.bgColor',
847 'HTMLBodyElement.link',
848 'HTMLBodyElement.on:beforeUnload',
849 'HTMLBodyElement.text',
850 'HTMLBodyElement.vLink',
851 'HTMLDListElement.compact',
852 'HTMLDirectoryElement.*',
853 'HTMLDivElement.align',
855 'HTMLFormControlsCollection.__getter__',
856 'HTMLFormElement.get:elements',
857 'HTMLFrameElement.*',
858 'HTMLFrameSetElement.*',
859 'HTMLHRElement.align',
860 'HTMLHRElement.noShade',
861 'HTMLHRElement.size',
862 'HTMLHRElement.width',
863 'HTMLHeadElement.profile',
864 'HTMLHeadingElement.align',
865 'HTMLHtmlElement.manifest',
866 'HTMLHtmlElement.version',
867 'HTMLIFrameElement.align',
868 'HTMLIFrameElement.frameBorder',
869 'HTMLIFrameElement.longDesc',
870 'HTMLIFrameElement.marginHeight',
871 'HTMLIFrameElement.marginWidth',
872 'HTMLIFrameElement.scrolling',
873 'HTMLImageElement.align',
874 'HTMLImageElement.hspace',
875 'HTMLImageElement.longDesc',
876 'HTMLImageElement.name',
877 'HTMLImageElement.vspace',
878 'HTMLInputElement.align',
879 'HTMLLegendElement.align',
880 'HTMLLinkElement.charset',
881 'HTMLLinkElement.rev',
882 'HTMLLinkElement.target',
883 'HTMLMarqueeElement.*',
884 'HTMLMenuElement.compact',
885 'HTMLMetaElement.scheme',
886 'HTMLOListElement.compact',
887 'HTMLObjectElement.align',
888 'HTMLObjectElement.archive',
889 'HTMLObjectElement.border',
890 'HTMLObjectElement.codeBase',
891 'HTMLObjectElement.codeType',
892 'HTMLObjectElement.declare',
893 'HTMLObjectElement.hspace',
894 'HTMLObjectElement.standby',
895 'HTMLObjectElement.vspace',
896 'HTMLOptionElement.text',
897 'HTMLOptionsCollection.*',
898 'HTMLParagraphElement.align',
899 'HTMLParamElement.type',
900 'HTMLParamElement.valueType',
901 'HTMLPreElement.width',
902 'HTMLScriptElement.text',
903 'HTMLSelectElement.options',
904 'HTMLSelectElement.selectedOptions',
905 'HTMLTableCaptionElement.align',
906 'HTMLTableCellElement.abbr',
907 'HTMLTableCellElement.align',
908 'HTMLTableCellElement.axis',
909 'HTMLTableCellElement.bgColor',
910 'HTMLTableCellElement.ch',
911 'HTMLTableCellElement.chOff',
912 'HTMLTableCellElement.height',
913 'HTMLTableCellElement.noWrap',
914 'HTMLTableCellElement.scope',
915 'HTMLTableCellElement.vAlign',
916 'HTMLTableCellElement.width',
917 'HTMLTableColElement.align',
918 'HTMLTableColElement.ch',
919 'HTMLTableColElement.chOff',
920 'HTMLTableColElement.vAlign',
921 'HTMLTableColElement.width',
922 'HTMLTableElement.align',
923 'HTMLTableElement.bgColor',
924 'HTMLTableElement.cellPadding',
925 'HTMLTableElement.cellSpacing',
926 'HTMLTableElement.frame',
927 'HTMLTableElement.rules',
928 'HTMLTableElement.summary',
929 'HTMLTableElement.width',
930 'HTMLTableRowElement.align',
931 'HTMLTableRowElement.bgColor',
932 'HTMLTableRowElement.ch',
933 'HTMLTableRowElement.chOff',
934 'HTMLTableRowElement.vAlign',
935 'HTMLTableSectionElement.align',
936 'HTMLTableSectionElement.ch',
937 'HTMLTableSectionElement.chOff',
938 'HTMLTableSectionElement.vAlign',
939 'HTMLTitleElement.text',
940 'HTMLUListElement.compact',
941 'HTMLUListElement.type',
942 'IDBDatabase.transaction',
945 'MouseEvent.webkitMovementX',
946 'MouseEvent.webkitMovementY',
949 'Navigator.bluetooth',
950 'Navigator.isProtocolHandlerRegistered',
951 'Navigator.unregisterProtocolHandler',
953 'Node.compareDocumentPosition',
954 'Node.get:DOCUMENT_POSITION_CONTAINED_BY',
955 'Node.get:DOCUMENT_POSITION_CONTAINS',
956 'Node.get:DOCUMENT_POSITION_DISCONNECTED',
957 'Node.get:DOCUMENT_POSITION_FOLLOWING',
958 'Node.get:DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC',
959 'Node.get:DOCUMENT_POSITION_PRECEDING',
960 'Node.get:childNodes',
962 'Node.hasAttributes',
963 'Node.isDefaultNamespace',
967 'Node.lookupNamespaceURI',
970 'Node.set:nodeValue',
971 'NodeFilter.acceptNode',
972 'NodeIterator.expandEntityReferences',
973 'NodeIterator.filter',
976 'ParentNode.prepend',
977 'RTCPeerConnection.generateCertificate',
978 'ShadowRoot.getElementsByTagNameNS',
979 'SVGElement.getPresentationAttribute',
980 'SVGElementInstance.on:wheel',
981 'Touch.get:webkitRadiusX',
982 'Touch.get:webkitRadiusY',
983 'Touch.get:webkitForce',
984 'Touch.get:webkitRotationAngle',
985 'WheelEvent.wheelDelta',
986 'WheelEvent.wheelDeltaX',
987 'WheelEvent.wheelDeltaY',
989 'WindowEventHandlers.on:beforeUnload',
990 'WorkerGlobalScope.webkitIndexedDB',
991 'XMLHttpRequest.open',
999 'htmlrenamer._library_names', {
1000 'ANGLEInstancedArrays':
'web_gl',
1001 'CHROMIUMSubscribeUniform':
'web_gl',
1002 'Database':
'web_sql',
1003 'Navigator':
'html',
1005 'AnalyserNode':
'web_audio',
1006 'AudioBufferCallback':
'web_audio',
1007 'AudioBuffer':
'web_audio',
1008 'AudioBufferSourceNode':
'web_audio',
1009 'AudioContext':
'web_audio',
1010 'AudioDestinationNode':
'web_audio',
1011 'AudioElement':
'web_audio',
1012 'AudioListener':
'web_audio',
1013 'AudioNode':
'web_audio',
1014 'AudioParam':
'web_audio',
1015 'AudioParamMap':
'web_audio',
1016 'AudioProcessingEvent':
'web_audio',
1017 'AudioScheduledSourceNode':
'web_audio',
1018 'AudioSourceNode':
'web_audio',
1019 'AudioTrack':
'web_audio',
1020 'AudioTrackList':
'web_audio',
1021 'AudioWorkletGlobalScope':
'web_audio',
1022 'AudioWorkletNode':
'web_audio',
1023 'AudioWorkletProcessor':
'web_audio',
1024 'BaseAudioContext':
'web_audio',
1025 'BiquadFilterNode':
'web_audio',
1026 'ChannelMergerNode':
'web_audio',
1027 'ChannelSplitterNode':
'web_audio',
1028 'ConstantSourceNode':
'web_audio',
1029 'ConvolverNode':
'web_audio',
1030 'DelayNode':
'web_audio',
1031 'DynamicsCompressorNode':
'web_audio',
1032 'GainNode':
'web_audio',
1033 'IIRFilterNode':
'web_audio',
1034 'MediaElementAudioSourceNode':
'web_audio',
1035 'MediaStreamAudioDestinationNode':
'web_audio',
1036 'MediaStreamAudioSourceNode':
'web_audio',
1037 'OfflineAudioCompletionEvent':
'web_audio',
1038 'OfflineAudioContext':
'web_audio',
1039 'OscillatorNode':
'web_audio',
1040 'PannerNode':
'web_audio',
1041 'PeriodicWave':
'web_audio',
1042 'ScriptProcessorNode':
'web_audio',
1043 'StereoPannerNode':
'web_audio',
1044 'WaveShaperNode':
'web_audio',
1045 'WindowWebAudio':
'web_audio',
1049 'htmlrenamer._library_names', {
1050 'ANGLEInstancedArrays':
'WebGl',
1051 'CHROMIUMSubscribeUniform':
'WebGl',
1052 'Database':
'WebSql',
1053 'Navigator':
'Html',
1055 'AnalyserNode':
'WebAudio',
1056 'AudioBufferCallback':
'WebAudio',
1057 'AudioBuffer':
'WebAudio',
1058 'AudioBufferSourceNode':
'WebAudio',
1059 'AudioContext':
'WebAudio',
1060 'AudioDestinationNode':
'WebAudio',
1061 'AudioListener':
'WebAudio',
1062 'AudioNode':
'WebAudio',
1063 'AudioParam':
'WebAudio',
1064 'AudioProcessingEvent':
'WebAudio',
1065 'AudioSourceNode':
'WebAudio',
1066 'BiquadFilterNode':
'WebAudio',
1067 'ChannelMergerNode':
'WebAudio',
1068 'ChannelSplitterNode':
'WebAudio',
1069 'ConvolverNode':
'WebAudio',
1070 'DelayNode':
'WebAudio',
1071 'DynamicsCompressorNode':
'WebAudio',
1072 'GainNode':
'WebAudio',
1073 'IIRFilterNode':
'WebAudio',
1074 'MediaElementAudioSourceNode':
'WebAudio',
1075 'MediaStreamAudioDestinationNode':
'WebAudio',
1076 'MediaStreamAudioSourceNode':
'WebAudio',
1077 'OfflineAudioCompletionEvent':
'WebAudio',
1078 'OfflineAudioContext':
'WebAudio',
1079 'OscillatorNode':
'WebAudio',
1080 'PannerNode':
'WebAudio',
1081 'PeriodicWave':
'WebAudio',
1082 'ScriptProcessorNode':
'WebAudio',
1083 'StereoPannerNode':
'WebAudio',
1084 'WaveShaperNode':
'WebAudio',
1085 'WindowWebAudio':
'WebAudio',
1089class HtmlRenamer(object):
1091 def __init__(self, database, metadata):
1092 self._database = database
1093 self._metadata = metadata
1095 def RenameInterface(self, interface):
1096 if 'Callback' in interface.ext_attrs:
1097 if interface.id
in _removed_html_interfaces:
1100 candidate = self.RenameInterfaceId(interface.id)
1104 if interface.id.startswith(
'HTML'):
1105 if any(interface.id
in [
'Element',
'Document']
1106 for interface
in self._database.Hierarchy(interface)):
1107 return interface.id[
len(
'HTML'):]
1108 return self._DartifyName(interface.javascript_binding_name)
1110 def RenameInterfaceId(self, interface_id):
1111 if interface_id
in html_interface_renames:
1112 return html_interface_renames[interface_id]
1115 def isPrivate(self, interface, member):
1116 return self._FindMatch(interface, member,
'', private_html_members)
1118 def RenameMember(self,
1125 Returns the name of the member in the HTML library
or None if the member
is
1126 suppressed
in the HTML library
1128 interface = self._database.GetInterface(interface_name)
1131 if 'ImplementedAs' in member_node.ext_attrs:
1132 member = member_node.ext_attrs[
'ImplementedAs']
1134 if self.ShouldSuppressMember(interface, member, member_prefix):
1137 if 'CheckSecurity' in member_node.ext_attrs:
1140 name = self._FindMatch(interface, member, member_prefix,
1141 renamed_html_members)
1143 target_name = renamed_html_members[name]
if name
else member
1144 if self._FindMatch(interface, member, member_prefix,
1145 private_html_members):
1146 if not target_name.startswith(
'_'):
1147 target_name =
'_' + target_name
1149 if not name
and target_name.startswith(
'webkit'):
1150 target_name = member[
len(
'webkit'):]
1151 target_name = target_name[:1].
lower() + target_name[1:]
1154 target_name = self._DartifyMemberName(target_name)
1157 def ShouldSuppressMember(self, interface, member, member_prefix=''):
1158 """ Returns true if the member should be suppressed."""
1159 if self._FindMatch(interface, member, member_prefix,
1160 removed_html_members):
1162 if interface.id
in _removed_html_interfaces:
1164 metadata_member = member
1165 if member_prefix ==
'on:':
1166 metadata_member =
'on' + metadata_member.lower()
1167 if self._metadata.IsSuppressed(interface, metadata_member):
1171 def ShouldSuppressInterface(self, interface):
1172 """ Returns true if the interface should be suppressed."""
1173 if interface.id
in _removed_html_interfaces:
1176 def _FindMatch(self, interface, member, member_prefix, candidates):
1178 def find_match(interface_id):
1179 member_name = interface_id +
'.' + member
1180 if member_name
in candidates:
1182 member_name = interface_id +
'.' + member_prefix + member
1183 if member_name
in candidates:
1185 member_name = interface_id +
'.*'
1186 if member_name
in candidates:
1190 match = find_match(
'=%s' % interface.id)
1194 for interface
in self._database.Hierarchy(interface):
1195 match = find_match(interface.id)
1199 def GetLibraryName(self, interface):
1201 if interface.id
in _library_names:
1202 return _library_names[interface.id]
1208 if interface.id.startswith(
"IDB"):
1210 if interface.id.startswith(
"SQL"):
1212 if interface.id.startswith(
"SVG"):
1214 if interface.id.startswith(
"WebGL")
or interface.id.startswith(
"OES") \
1215 or interface.id.startswith(
"EXT") \
1216 or interface.id ==
"WebGL":
1219 if interface.id
in typed_array_renames:
1224 def GetLibraryId(self, interface):
1226 if interface.id
in _library_ids:
1227 return _library_ids[interface.id]
1233 if interface.id.startswith(
"IDB"):
1235 if interface.id.startswith(
"SQL"):
1237 if interface.id.startswith(
"SVG"):
1239 if interface.id.startswith(
"WebGL")
or interface.id.startswith(
"OES") \
1240 or interface.id.startswith(
"EXT") \
1241 or interface.id ==
'WebGL':
1244 if interface.id
in typed_array_renames:
1249 def DartifyTypeName(self, type_name):
1250 """Converts a DOM name to a Dart-friendly class name. """
1252 if type_name
in html_interface_renames:
1253 return html_interface_renames[type_name]
1255 return self._DartifyName(type_name)
1257 def _DartifyName(self, dart_name):
1259 name = re.sub(
r'^SVG',
'', dart_name)
1260 name = re.sub(
r'^IDB',
'', name)
1263 name = re.sub(
r'^WebGL',
'', name)
1264 name = re.sub(
r'^WebKit',
'', name)
1266 return self._CamelCaseName(name)
1268 def _DartifyMemberName(self, member_name):
1270 name = re.sub(
r'OES$',
'', member_name)
1271 return self._CamelCaseName(name)
1273 def _CamelCaseName(self, name):
1276 return match.group(1) + match.group(2).
lower() + match.group(3)
1286 return re.sub(
r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
static uint64_t toLower(uint64_t n)
SIT bool any(const Vec< 1, T > &x)