Native method name mismatch cleanups for Dartium 36 roll.

BUG=
R=efortuna@google.com, leafp@google.com

Review URL: https://codereview.chromium.org//321043003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37142 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
jacobr@google.com
2014-06-09 22:31:05 +00:00
parent 0ef376e2bd
commit c4e40bb34d
9 changed files with 134 additions and 505 deletions
+7 -119
View File
@@ -127,8 +127,6 @@ Native_TimedItem_localTime_Getter(mthis) native "TimedItem_localTime_Getter";
Native_TimedItem_player_Getter(mthis) native "TimedItem_player_Getter";
Native_TimedItem_specified_Getter(mthis) native "TimedItem_specified_Getter";
Native_TimedItem_startTime_Getter(mthis) native "TimedItem_startTime_Getter";
// Generated overload resolver
@@ -217,10 +215,6 @@ Native_Attr_value_Setter(mthis, value) native "Attr_value_Setter";
Native_AudioBuffer_duration_Getter(mthis) native "AudioBuffer_duration_Getter";
Native_AudioBuffer_gain_Getter(mthis) native "AudioBuffer_gain_Getter";
Native_AudioBuffer_gain_Setter(mthis, value) native "AudioBuffer_gain_Setter";
Native_AudioBuffer_length_Getter(mthis) native "AudioBuffer_length_Getter";
Native_AudioBuffer_numberOfChannels_Getter(mthis) native "AudioBuffer_numberOfChannels_Getter";
@@ -233,8 +227,6 @@ Native_AudioBufferSourceNode_buffer_Getter(mthis) native "AudioBufferSourceNode_
Native_AudioBufferSourceNode_buffer_Setter(mthis, value) native "AudioBufferSourceNode_buffer_Setter";
Native_AudioBufferSourceNode_gain_Getter(mthis) native "AudioBufferSourceNode_gain_Getter";
Native_AudioBufferSourceNode_loop_Getter(mthis) native "AudioBufferSourceNode_loop_Getter";
Native_AudioBufferSourceNode_loop_Setter(mthis, value) native "AudioBufferSourceNode_loop_Setter";
@@ -249,8 +241,6 @@ Native_AudioBufferSourceNode_loopStart_Setter(mthis, value) native "AudioBufferS
Native_AudioBufferSourceNode_playbackRate_Getter(mthis) native "AudioBufferSourceNode_playbackRate_Getter";
Native_AudioBufferSourceNode_playbackState_Getter(mthis) native "AudioBufferSourceNode_playbackState_Getter";
Native_AudioBufferSourceNode_noteGrainOn_Callback(mthis, when, grainOffset, grainDuration) native "AudioBufferSourceNode_noteGrainOn_Callback_RESOLVER_STRING_3_double_double_double";
Native_AudioBufferSourceNode_noteOff_Callback(mthis, when) native "AudioBufferSourceNode_noteOff_Callback_RESOLVER_STRING_1_double";
@@ -304,8 +294,6 @@ Native_AudioContext_AudioContext() {
Native_AudioContext__create_1constructorCallback() native "AudioContext_constructorCallback_RESOLVER_STRING_0_";
Native_AudioContext_activeSourceCount_Getter(mthis) native "AudioContext_activeSourceCount_Getter";
Native_AudioContext_currentTime_Getter(mthis) native "AudioContext_currentTime_Getter";
Native_AudioContext_destination_Getter(mthis) native "AudioContext_destination_Getter";
@@ -320,8 +308,6 @@ Native_AudioContext_createBiquadFilter_Callback(mthis) native "AudioContext_crea
Native_AudioContext_createBuffer_Callback(mthis, numberOfChannels, numberOfFrames, sampleRate) native "AudioContext_createBuffer_Callback_RESOLVER_STRING_3_unsigned long_unsigned long_float";
Native_AudioContext_createBufferFromBuffer_Callback(mthis, buffer, mixToMono) native "AudioContext_createBuffer_Callback_RESOLVER_STRING_2_ArrayBuffer_boolean";
Native_AudioContext_createBufferSource_Callback(mthis) native "AudioContext_createBufferSource_Callback_RESOLVER_STRING_0_";
// Generated overload resolver
@@ -362,41 +348,10 @@ Native_AudioContext__createDelay_1_Callback(mthis, maxDelayTime) native "AudioCo
Native_AudioContext__createDelay_2_Callback(mthis) native "AudioContext_createDelay_Callback_RESOLVER_STRING_0_";
// Generated overload resolver
Native_AudioContext_createDelayNode(mthis, maxDelayTime) {
if (maxDelayTime != null) {
return Native_AudioContext__createDelayNode_1_Callback(mthis, maxDelayTime);
}
return Native_AudioContext__createDelayNode_2_Callback(mthis);
}
Native_AudioContext__createDelayNode_1_Callback(mthis, maxDelayTime) native "AudioContext_createDelayNode_Callback_RESOLVER_STRING_1_double";
Native_AudioContext__createDelayNode_2_Callback(mthis) native "AudioContext_createDelayNode_Callback_RESOLVER_STRING_0_";
Native_AudioContext_createDynamicsCompressor_Callback(mthis) native "AudioContext_createDynamicsCompressor_Callback_RESOLVER_STRING_0_";
Native_AudioContext_createGain_Callback(mthis) native "AudioContext_createGain_Callback_RESOLVER_STRING_0_";
Native_AudioContext_createGainNode_Callback(mthis) native "AudioContext_createGainNode_Callback_RESOLVER_STRING_0_";
// Generated overload resolver
Native_AudioContext_createJavaScriptNode(mthis, bufferSize, numberOfInputChannels, numberOfOutputChannels) {
if (numberOfOutputChannels != null) {
return Native_AudioContext__createJavaScriptNode_1_Callback(mthis, bufferSize, numberOfInputChannels, numberOfOutputChannels);
}
if (numberOfInputChannels != null) {
return Native_AudioContext__createJavaScriptNode_2_Callback(mthis, bufferSize, numberOfInputChannels);
}
return Native_AudioContext__createJavaScriptNode_3_Callback(mthis, bufferSize);
}
Native_AudioContext__createJavaScriptNode_1_Callback(mthis, bufferSize, numberOfInputChannels, numberOfOutputChannels) native "AudioContext_createJavaScriptNode_Callback_RESOLVER_STRING_3_unsigned long_unsigned long_unsigned long";
Native_AudioContext__createJavaScriptNode_2_Callback(mthis, bufferSize, numberOfInputChannels) native "AudioContext_createJavaScriptNode_Callback_RESOLVER_STRING_2_unsigned long_unsigned long";
Native_AudioContext__createJavaScriptNode_3_Callback(mthis, bufferSize) native "AudioContext_createJavaScriptNode_Callback_RESOLVER_STRING_1_unsigned long";
Native_AudioContext_createMediaElementSource_Callback(mthis, mediaElement) native "AudioContext_createMediaElementSource_Callback_RESOLVER_STRING_1_HTMLMediaElement";
Native_AudioContext_createMediaStreamDestination_Callback(mthis) native "AudioContext_createMediaStreamDestination_Callback_RESOLVER_STRING_0_";
@@ -475,8 +430,6 @@ Native_AudioParam_linearRampToValueAtTime_Callback(mthis, value, time) native "A
Native_AudioParam_setTargetAtTime_Callback(mthis, target, time, timeConstant) native "AudioParam_setTargetAtTime_Callback_RESOLVER_STRING_3_float_double_double";
Native_AudioParam_setTargetValueAtTime_Callback(mthis, targetValue, time, timeConstant) native "AudioParam_setTargetValueAtTime_Callback_RESOLVER_STRING_3_float_double_double";
Native_AudioParam_setValueAtTime_Callback(mthis, value, time) native "AudioParam_setValueAtTime_Callback_RESOLVER_STRING_2_float_double";
Native_AudioParam_setValueCurveAtTime_Callback(mthis, values, time, duration) native "AudioParam_setValueCurveAtTime_Callback";
@@ -517,8 +470,6 @@ Native_AutocompleteErrorEvent_reason_Getter(mthis) native "AutocompleteErrorEven
Native_BarProp_visible_Getter(mthis) native "BarProp_visible_Getter";
Native_BeforeLoadEvent_url_Getter(mthis) native "BeforeLoadEvent_url_Getter";
Native_BeforeUnloadEvent_returnValue_Getter(mthis) native "BeforeUnloadEvent_returnValue_Getter";
Native_BeforeUnloadEvent_returnValue_Setter(mthis, value) native "BeforeUnloadEvent_returnValue_Setter";
@@ -765,10 +716,6 @@ Native_CanvasGradient_addColorStop_Callback(mthis, offset, color) native "Canvas
Native_CanvasRenderingContext_canvas_Getter(mthis) native "CanvasRenderingContext2D_canvas_Getter";
Native_CanvasRenderingContext2D_currentPath_Getter(mthis) native "CanvasRenderingContext2D_currentPath_Getter";
Native_CanvasRenderingContext2D_currentPath_Setter(mthis, value) native "CanvasRenderingContext2D_currentPath_Setter";
Native_CanvasRenderingContext2D_currentTransform_Getter(mthis) native "CanvasRenderingContext2D_currentTransform_Getter";
Native_CanvasRenderingContext2D_currentTransform_Setter(mthis, value) native "CanvasRenderingContext2D_currentTransform_Setter";
@@ -1047,7 +994,7 @@ Native_CanvasRenderingContext2D_save_Callback(mthis) native "CanvasRenderingCont
Native_CanvasRenderingContext2D_scale_Callback(mthis, sx, sy) native "CanvasRenderingContext2D_scale_Callback_RESOLVER_STRING_2_float_float";
Native_CanvasRenderingContext2D_setLineDash_Callback(mthis, dash) native "CanvasRenderingContext2D_setLineDash_Callback_RESOLVER_STRING_1_sequence<float>";
Native_CanvasRenderingContext2D_setLineDash_Callback(mthis, dash) native "CanvasRenderingContext2D_setLineDash_Callback_RESOLVER_STRING_1_sequence<unrestricted float>";
Native_CanvasRenderingContext2D_setTransform_Callback(mthis, m11, m12, m21, m22, dx, dy) native "CanvasRenderingContext2D_setTransform_Callback_RESOLVER_STRING_6_float_float_float_float_float_float";
@@ -1073,25 +1020,6 @@ Native_CanvasRenderingContext2D_transform_Callback(mthis, m11, m12, m21, m22, dx
Native_CanvasRenderingContext2D_translate_Callback(mthis, tx, ty) native "CanvasRenderingContext2D_translate_Callback_RESOLVER_STRING_2_float_float";
Native_CanvasRenderingContext2D_webkitGetImageDataHD_Callback(mthis, sx, sy, sw, sh) native "CanvasRenderingContext2D_webkitGetImageDataHD_Callback_RESOLVER_STRING_4_float_float_float_float";
// Generated overload resolver
Native_CanvasRenderingContext2D_putImageDataHD(mthis, imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) {
if ((dy is num || dy == null) && (dx is num || dx == null) && (imagedata is ImageData || imagedata == null) && dirtyX == null && dirtyY == null && dirtyWidth == null && dirtyHeight == null) {
Native_CanvasRenderingContext2D__webkitPutImageDataHD_1_Callback(mthis, imagedata, dx, dy);
return;
}
if ((dirtyHeight is num || dirtyHeight == null) && (dirtyWidth is num || dirtyWidth == null) && (dirtyY is num || dirtyY == null) && (dirtyX is num || dirtyX == null) && (dy is num || dy == null) && (dx is num || dx == null) && (imagedata is ImageData || imagedata == null)) {
Native_CanvasRenderingContext2D__webkitPutImageDataHD_2_Callback(mthis, imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
}
Native_CanvasRenderingContext2D__webkitPutImageDataHD_1_Callback(mthis, imagedata, dx, dy) native "CanvasRenderingContext2D_webkitPutImageDataHD_Callback_RESOLVER_STRING_3_ImageData_float_float";
Native_CanvasRenderingContext2D__webkitPutImageDataHD_2_Callback(mthis, imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) native "CanvasRenderingContext2D_webkitPutImageDataHD_Callback_RESOLVER_STRING_7_ImageData_float_float_float_float_float_float";
Native_ClientRect_bottom_Getter(mthis) native "ClientRect_bottom_Getter";
Native_ClientRect_height_Getter(mthis) native "ClientRect_height_Getter";
@@ -1277,8 +1205,6 @@ Native_DOMFileSystem_name_Getter(mthis) native "DOMFileSystem_name_Getter";
Native_DOMFileSystem_root_Getter(mthis) native "DOMFileSystem_root_Getter";
Native_DOMImplementation_createCSSStyleSheet_Callback(mthis, title, media) native "DOMImplementation_createCSSStyleSheet_Callback_RESOLVER_STRING_2_DOMString_DOMString";
Native_DOMImplementation_createDocument_Callback(mthis, namespaceURI, qualifiedName, doctype) native "DOMImplementation_createDocument_Callback_RESOLVER_STRING_3_DOMString_DOMString_DocumentType";
Native_DOMImplementation_createDocumentType_Callback(mthis, qualifiedName, publicId, systemId) native "DOMImplementation_createDocumentType_Callback_RESOLVER_STRING_3_DOMString_DOMString_DOMString";
@@ -1448,8 +1374,6 @@ Native_WorkerGlobalScope_performance_Getter(mthis) native "WorkerGlobalScope_per
Native_WorkerGlobalScope_self_Getter(mthis) native "WorkerGlobalScope_self_Getter";
Native_WorkerGlobalScope_webkitNotifications_Getter(mthis) native "WorkerGlobalScope_webkitNotifications_Getter";
Native_WorkerGlobalScope_close_Callback(mthis) native "WorkerGlobalScope_close_Callback_RESOLVER_STRING_0_";
Native_WorkerGlobalScope_openDatabase_Callback(mthis, name, version, displayName, estimatedSize, creationCallback) native "WorkerGlobalScope_openDatabase_Callback_RESOLVER_STRING_5_DOMString_DOMString_DOMString_unsigned long_DatabaseCallback";
@@ -2130,7 +2054,7 @@ Native_GainNode_gain_Getter(mthis) native "GainNode_gain_Getter";
Native_Gamepad_axes_Getter(mthis) native "Gamepad_axes_Getter";
Native_Gamepad_buttons_Getter(mthis) native "Gamepad_buttons_Getter";
Native_Gamepad_buttons_Getter(mthis) native "WebKitGamepad_buttons_Getter";
Native_Gamepad_id_Getter(mthis) native "Gamepad_id_Getter";
@@ -2722,7 +2646,7 @@ Native_HTMLFormElement___getter___Callback(mthis, index) native "HTMLFormElement
Native_HTMLFormElement_checkValidity_Callback(mthis) native "HTMLFormElement_checkValidity_Callback_RESOLVER_STRING_0_";
Native_HTMLFormElement_requestAutocomplete_Callback(mthis) native "HTMLFormElement_requestAutocomplete_Callback_RESOLVER_STRING_0_";
Native_HTMLFormElement_requestAutocomplete_Callback(mthis, details) native "HTMLFormElement_requestAutocomplete_Callback_RESOLVER_STRING_1_Dictionary";
Native_HTMLFormElement_reset_Callback(mthis) native "HTMLFormElement_reset_Callback_RESOLVER_STRING_0_";
@@ -2960,14 +2884,6 @@ Native_HTMLInputElement_valueAsNumber_Setter(mthis, value) native "HTMLInputElem
Native_HTMLInputElement_webkitEntries_Getter(mthis) native "HTMLInputElement_webkitEntries_Getter";
Native_HTMLInputElement_webkitGrammar_Getter(mthis) native "HTMLInputElement_webkitGrammar_Getter";
Native_HTMLInputElement_webkitGrammar_Setter(mthis, value) native "HTMLInputElement_webkitGrammar_Setter";
Native_HTMLInputElement_webkitSpeech_Getter(mthis) native "HTMLInputElement_webkitSpeech_Getter";
Native_HTMLInputElement_webkitSpeech_Setter(mthis, value) native "HTMLInputElement_webkitSpeech_Setter";
Native_HTMLInputElement_webkitdirectory_Getter(mthis) native "HTMLInputElement_webkitdirectory_Getter";
Native_HTMLInputElement_webkitdirectory_Setter(mthis, value) native "HTMLInputElement_webkitdirectory_Setter";
@@ -4511,8 +4427,6 @@ Native_OscillatorNode_detune_Getter(mthis) native "OscillatorNode_detune_Getter"
Native_OscillatorNode_frequency_Getter(mthis) native "OscillatorNode_frequency_Getter";
Native_OscillatorNode_playbackState_Getter(mthis) native "OscillatorNode_playbackState_Getter";
Native_OscillatorNode_type_Getter(mthis) native "OscillatorNode_type_Getter";
Native_OscillatorNode_type_Setter(mthis, value) native "OscillatorNode_type_Setter";
@@ -5293,8 +5207,6 @@ Native_SVGCircleElement_r_Getter(mthis) native "SVGCircleElement_r_Getter";
Native_SVGClipPathElement_clipPathUnits_Getter(mthis) native "SVGClipPathElement_clipPathUnits_Getter";
Native_SVGElementInstance_childNodes_Getter(mthis) native "SVGElementInstance_childNodes_Getter";
Native_SVGElementInstance_correspondingElement_Getter(mthis) native "SVGElementInstance_correspondingElement_Getter";
Native_SVGElementInstance_correspondingUseElement_Getter(mthis) native "SVGElementInstance_correspondingUseElement_Getter";
@@ -5309,8 +5221,6 @@ Native_SVGElementInstance_parentNode_Getter(mthis) native "SVGElementInstance_pa
Native_SVGElementInstance_previousSibling_Getter(mthis) native "SVGElementInstance_previousSibling_Getter";
Native_SVGElementInstanceList_length_Getter(mthis) native "SVGElementInstanceList_length_Getter";
Native_SVGElementInstanceList_NativeIndexed_Getter(mthis, index) native "SVGElementInstanceList_item_Callback_RESOLVER_STRING_1_unsigned long";
Native_SVGElementInstanceList_item_Callback(mthis, index) native "SVGElementInstanceList_item_Callback_RESOLVER_STRING_1_unsigned long";
@@ -6273,14 +6183,6 @@ Native_SVGZoomAndPan_zoomAndPan_Getter(mthis) native "SVGZoomAndPan_zoomAndPan_G
Native_SVGZoomAndPan_zoomAndPan_Setter(mthis, value) native "SVGZoomAndPan_zoomAndPan_Setter";
Native_SVGSVGElement_contentScriptType_Getter(mthis) native "SVGSVGElement_contentScriptType_Getter";
Native_SVGSVGElement_contentScriptType_Setter(mthis, value) native "SVGSVGElement_contentScriptType_Setter";
Native_SVGSVGElement_contentStyleType_Getter(mthis) native "SVGSVGElement_contentStyleType_Getter";
Native_SVGSVGElement_contentStyleType_Setter(mthis, value) native "SVGSVGElement_contentStyleType_Setter";
Native_SVGSVGElement_currentScale_Getter(mthis) native "SVGSVGElement_currentScale_Getter";
Native_SVGSVGElement_currentScale_Setter(mthis, value) native "SVGSVGElement_currentScale_Setter";
@@ -6465,13 +6367,13 @@ Native_SVGUseElement_x_Getter(mthis) native "SVGUseElement_x_Getter";
Native_SVGUseElement_y_Getter(mthis) native "SVGUseElement_y_Getter";
Native_SVGUseElement_requiredExtensions_Getter(mthis) native "SVGUseElement_requiredExtensions_Getter";
Native_SVGUseElement_requiredExtensions_Getter(mthis) native "SVGGraphicsElement_requiredExtensions_Getter";
Native_SVGUseElement_requiredFeatures_Getter(mthis) native "SVGUseElement_requiredFeatures_Getter";
Native_SVGUseElement_requiredFeatures_Getter(mthis) native "SVGGraphicsElement_requiredFeatures_Getter";
Native_SVGUseElement_systemLanguage_Getter(mthis) native "SVGUseElement_systemLanguage_Getter";
Native_SVGUseElement_systemLanguage_Getter(mthis) native "SVGGraphicsElement_systemLanguage_Getter";
Native_SVGUseElement_hasExtension_Callback(mthis, extension) native "SVGUseElement_hasExtension_Callback_RESOLVER_STRING_1_DOMString";
Native_SVGUseElement_hasExtension_Callback(mthis, extension) native "SVGGraphicsElement_hasExtension_Callback_RESOLVER_STRING_1_DOMString";
Native_SVGUseElement_href_Getter(mthis) native "SVGUseElement_href_Getter";
@@ -6615,10 +6517,6 @@ Native_Selection_toString_Callback(mthis) native "Selection_toString_Callback_RE
Native_ShadowRoot_activeElement_Getter(mthis) native "ShadowRoot_activeElement_Getter";
Native_ShadowRoot_applyAuthorStyles_Getter(mthis) native "ShadowRoot_applyAuthorStyles_Getter";
Native_ShadowRoot_applyAuthorStyles_Setter(mthis, value) native "ShadowRoot_applyAuthorStyles_Setter";
Native_ShadowRoot_host_Getter(mthis) native "ShadowRoot_host_Getter";
Native_ShadowRoot_innerHTML_Getter(mthis) native "ShadowRoot_innerHTML_Getter";
@@ -6770,14 +6668,6 @@ Native_SpeechGrammarList__addFromUri_2_Callback(mthis, src) native "SpeechGramma
Native_SpeechGrammarList_item_Callback(mthis, index) native "SpeechGrammarList_item_Callback_RESOLVER_STRING_1_unsigned long";
Native_SpeechInputEvent_results_Getter(mthis) native "SpeechInputEvent_results_Getter";
Native_SpeechInputResult_confidence_Getter(mthis) native "SpeechInputResult_confidence_Getter";
Native_SpeechInputResult_utterance_Getter(mthis) native "SpeechInputResult_utterance_Getter";
Native_SpeechInputResultList_length_Getter(mthis) native "SpeechInputResultList_length_Getter";
Native_SpeechInputResultList_NativeIndexed_Getter(mthis, index) native "SpeechInputResultList_item_Callback_RESOLVER_STRING_1_unsigned long";
Native_SpeechInputResultList_item_Callback(mthis, index) native "SpeechInputResultList_item_Callback_RESOLVER_STRING_1_unsigned long";
@@ -8182,8 +8072,6 @@ Native_Worker_postMessage_Callback(mthis, message, messagePorts) native "Worker_
Native_Worker_terminate_Callback(mthis) native "Worker_terminate_Callback_RESOLVER_STRING_0_";
Native_WorkerCrypto_getRandomValues_Callback(mthis, array) native "WorkerCrypto_getRandomValues_Callback";
Native_WorkerPerformance_now_Callback(mthis) native "WorkerPerformance_now_Callback_RESOLVER_STRING_0_";
Native_XMLHttpRequest_constructorCallback() native "XMLHttpRequest_constructorCallback";
+11 -139
View File
@@ -715,10 +715,6 @@ class BaseElement extends HtmlElement native "HTMLBaseElement" {
class BeforeLoadEvent extends Event native "BeforeLoadEvent" {
// To suppress missing implicit constructor warnings.
factory BeforeLoadEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('BeforeLoadEvent.url')
@DocsEditable()
final String url;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -1403,21 +1399,6 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
// To suppress missing implicit constructor warnings.
factory CanvasRenderingContext2D._() { throw new UnsupportedError("Not supported"); }
/**
* The current default path of this canvas context, if there is one.
*
* ## Other resources
*
* * [Current default path]
* (http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#current-default-path)
* from WHATWG.
*/
@DomName('CanvasRenderingContext2D.currentPath')
@DocsEditable()
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#path-objects
@Experimental()
Path currentPath;
@DomName('CanvasRenderingContext2D.currentTransform')
@DocsEditable()
@Experimental() // untriaged
@@ -1707,57 +1688,6 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
@DocsEditable()
void translate(num tx, num ty) native;
@DomName('CanvasRenderingContext2D.webkitGetImageDataHD')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
@Creates('ImageData|=Object')
ImageData getImageDataHD(num sx, num sy, num sw, num sh) {
return convertNativeToDart_ImageData(_getImageDataHD_1(sx, sy, sw, sh));
}
@JSName('webkitGetImageDataHD')
@DomName('CanvasRenderingContext2D.webkitGetImageDataHD')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
@Creates('ImageData|=Object')
_getImageDataHD_1(sx, sy, sw, sh) native;
@DomName('CanvasRenderingContext2D.webkitPutImageDataHD')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
void putImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]) {
if (dirtyX == null && dirtyY == null && dirtyWidth == null && dirtyHeight == null) {
var imagedata_1 = convertDartToNative_ImageData(imagedata);
_putImageDataHD_1(imagedata_1, dx, dy);
return;
}
if (dirtyHeight != null && dirtyWidth != null && dirtyY != null && dirtyX != null) {
var imagedata_2 = convertDartToNative_ImageData(imagedata);
_putImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
}
@JSName('webkitPutImageDataHD')
@DomName('CanvasRenderingContext2D.webkitPutImageDataHD')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
void _putImageDataHD_1(imagedata, dx, dy) native;
@JSName('webkitPutImageDataHD')
@DomName('CanvasRenderingContext2D.webkitPutImageDataHD')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
void _putImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) native;
/**
* Sets the color used inside shapes.
@@ -8015,12 +7945,6 @@ class DomImplementation extends Interceptor native "DOMImplementation" {
// To suppress missing implicit constructor warnings.
factory DomImplementation._() { throw new UnsupportedError("Not supported"); }
@JSName('createCSSStyleSheet')
@DomName('DOMImplementation.createCSSStyleSheet')
@DocsEditable()
@Experimental() // non-standard
CssStyleSheet createCssStyleSheet(String title, String media) native;
@DomName('DOMImplementation.createDocument')
@DocsEditable()
XmlDocument createDocument(String namespaceURI, String qualifiedName, _DocumentType doctype) native;
@@ -13401,7 +13325,17 @@ class FormElement extends HtmlElement native "HTMLFormElement" {
@DocsEditable()
// http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-October/037711.html
@Experimental()
void requestAutocomplete() native;
void requestAutocomplete(Map details) {
var details_1 = convertDartToNative_Dictionary(details);
_requestAutocomplete_1(details_1);
return;
}
@JSName('requestAutocomplete')
@DomName('HTMLFormElement.requestAutocomplete')
@DocsEditable()
// http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-October/037711.html
@Experimental()
void _requestAutocomplete_1(details) native;
@DomName('HTMLFormElement.reset')
@DocsEditable()
@@ -15846,24 +15780,6 @@ class InputElement extends HtmlElement implements
// http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#concept-input-type-file-selected
final List<Entry> entries;
@JSName('webkitGrammar')
@DomName('HTMLInputElement.webkitGrammar')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
// http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api-draft.html#attrib-grammar
bool grammar;
@JSName('webkitSpeech')
@DomName('HTMLInputElement.webkitSpeech')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
// http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api-draft.html#attrib-speech
bool speech;
@JSName('webkitdirectory')
@DomName('HTMLInputElement.webkitdirectory')
@DocsEditable()
@@ -23371,11 +23287,6 @@ class ShadowRoot extends DocumentFragment native "ShadowRoot" {
@DocsEditable()
final Element activeElement;
@JSName('applyAuthorStyles')
@DomName('ShadowRoot.applyAuthorStyles')
@DocsEditable()
bool _applyAuthorStyles;
@DomName('ShadowRoot.host')
@DocsEditable()
@Experimental() // untriaged
@@ -23865,12 +23776,6 @@ class SpeechGrammarList extends Interceptor with ListMixin<SpeechGrammar>, Immut
class SpeechInputEvent extends Event native "SpeechInputEvent" {
// To suppress missing implicit constructor warnings.
factory SpeechInputEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('SpeechInputEvent.results')
@DocsEditable()
@Returns('_SpeechInputResultList')
@Creates('_SpeechInputResultList')
final List<SpeechInputResult> results;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -23884,14 +23789,6 @@ class SpeechInputEvent extends Event native "SpeechInputEvent" {
class SpeechInputResult extends Interceptor native "SpeechInputResult" {
// To suppress missing implicit constructor warnings.
factory SpeechInputResult._() { throw new UnsupportedError("Not supported"); }
@DomName('SpeechInputResult.confidence')
@DocsEditable()
final double confidence;
@DomName('SpeechInputResult.utterance')
@DocsEditable()
final String utterance;
}
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25824,11 +25721,6 @@ class TimedItem extends Interceptor native "TimedItem" {
@Experimental() // untriaged
final Player player;
@DomName('TimedItem.specified')
@DocsEditable()
@Experimental() // untriaged
final Timing specified;
@DomName('TimedItem.startTime')
@DocsEditable()
@Experimental() // untriaged
@@ -29527,13 +29419,6 @@ class WorkerConsole extends ConsoleBase native "WorkerConsole" {
class WorkerCrypto extends Interceptor native "WorkerCrypto" {
// To suppress missing implicit constructor warnings.
factory WorkerCrypto._() { throw new UnsupportedError("Not supported"); }
@DomName('WorkerCrypto.getRandomValues')
@DocsEditable()
@Experimental() // untriaged
@Creates('TypedData')
@Returns('TypedData|Null')
TypedData getRandomValues(TypedData array) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -29603,15 +29488,6 @@ class WorkerGlobalScope extends EventTarget implements _WindowTimers, WindowBase
@Experimental() // untriaged
final WorkerGlobalScope self;
@JSName('webkitNotifications')
@DomName('WorkerGlobalScope.webkitNotifications')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
@Experimental() // untriaged
final _NotificationCenter _webkitNotifications;
@DomName('WorkerGlobalScope.close')
@DocsEditable()
@Experimental() // untriaged
@@ -31004,10 +30880,6 @@ class _SpeechInputResultList extends Interceptor with ListMixin<SpeechInputResul
// To suppress missing implicit constructor warnings.
factory _SpeechInputResultList._() { throw new UnsupportedError("Not supported"); }
@DomName('SpeechInputResultList.length')
@DocsEditable()
int get length => JS("int", "#.length", this);
SpeechInputResult operator[](int index) {
if (JS("bool", "# >>> 0 !== # || # >= #", index,
index, index, length))
+1 -123
View File
@@ -1226,10 +1226,6 @@ class BeforeLoadEvent extends Event {
// To suppress missing implicit constructor warnings.
factory BeforeLoadEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('BeforeLoadEvent.url')
@DocsEditable()
String get url => _blink.Native_BeforeLoadEvent_url_Getter(this);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -1962,36 +1958,6 @@ class CanvasRenderingContext2D extends CanvasRenderingContext {
// To suppress missing implicit constructor warnings.
factory CanvasRenderingContext2D._() { throw new UnsupportedError("Not supported"); }
/**
* The current default path of this canvas context, if there is one.
*
* ## Other resources
*
* * [Current default path]
* (http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#current-default-path)
* from WHATWG.
*/
@DomName('CanvasRenderingContext2D.currentPath')
@DocsEditable()
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#path-objects
@Experimental()
Path get currentPath => _blink.Native_CanvasRenderingContext2D_currentPath_Getter(this);
/**
* The current default path of this canvas context, if there is one.
*
* ## Other resources
*
* * [Current default path]
* (http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#current-default-path)
* from WHATWG.
*/
@DomName('CanvasRenderingContext2D.currentPath')
@DocsEditable()
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#path-objects
@Experimental()
void set currentPath(Path value) => _blink.Native_CanvasRenderingContext2D_currentPath_Setter(this, value);
@DomName('CanvasRenderingContext2D.currentTransform')
@DocsEditable()
@Experimental() // untriaged
@@ -2319,15 +2285,6 @@ class CanvasRenderingContext2D extends CanvasRenderingContext {
@DocsEditable()
void translate(num tx, num ty) => _blink.Native_CanvasRenderingContext2D_translate_Callback(this, tx, ty);
@DomName('CanvasRenderingContext2D.webkitGetImageDataHD')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
ImageData getImageDataHD(num sx, num sy, num sw, num sh) => _blink.Native_CanvasRenderingContext2D_webkitGetImageDataHD_Callback(this, sx, sy, sw, sh);
void putImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]) => _blink.Native_CanvasRenderingContext2D_putImageDataHD(this, imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight);
/**
* Sets the color used inside shapes.
@@ -8525,11 +8482,6 @@ class DomImplementation extends NativeFieldWrapperClass2 {
// To suppress missing implicit constructor warnings.
factory DomImplementation._() { throw new UnsupportedError("Not supported"); }
@DomName('DOMImplementation.createCSSStyleSheet')
@DocsEditable()
@Experimental() // non-standard
CssStyleSheet createCssStyleSheet(String title, String media) => _blink.Native_DOMImplementation_createCSSStyleSheet_Callback(this, title, media);
@DomName('DOMImplementation.createDocument')
@DocsEditable()
XmlDocument createDocument(String namespaceURI, String qualifiedName, _DocumentType doctype) => _blink.Native_DOMImplementation_createDocument_Callback(this, namespaceURI, qualifiedName, doctype);
@@ -13684,7 +13636,7 @@ class FormElement extends HtmlElement {
@DocsEditable()
// http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-October/037711.html
@Experimental()
void requestAutocomplete() => _blink.Native_HTMLFormElement_requestAutocomplete_Callback(this);
void requestAutocomplete(Map details) => _blink.Native_HTMLFormElement_requestAutocomplete_Callback(this, details);
@DomName('HTMLFormElement.reset')
@DocsEditable()
@@ -16976,38 +16928,6 @@ class InputElement extends HtmlElement implements
// http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#concept-input-type-file-selected
List<Entry> get entries => _blink.Native_HTMLInputElement_webkitEntries_Getter(this);
@DomName('HTMLInputElement.webkitGrammar')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
// http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api-draft.html#attrib-grammar
bool get grammar => _blink.Native_HTMLInputElement_webkitGrammar_Getter(this);
@DomName('HTMLInputElement.webkitGrammar')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
// http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api-draft.html#attrib-grammar
void set grammar(bool value) => _blink.Native_HTMLInputElement_webkitGrammar_Setter(this, value);
@DomName('HTMLInputElement.webkitSpeech')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
// http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api-draft.html#attrib-speech
bool get speech => _blink.Native_HTMLInputElement_webkitSpeech_Getter(this);
@DomName('HTMLInputElement.webkitSpeech')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
// http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api-draft.html#attrib-speech
void set speech(bool value) => _blink.Native_HTMLInputElement_webkitSpeech_Setter(this, value);
@DomName('HTMLInputElement.webkitdirectory')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@@ -24841,14 +24761,6 @@ class ShadowRoot extends DocumentFragment {
@DocsEditable()
Element get activeElement => _blink.Native_ShadowRoot_activeElement_Getter(this);
@DomName('ShadowRoot.applyAuthorStyles')
@DocsEditable()
bool get _applyAuthorStyles => _blink.Native_ShadowRoot_applyAuthorStyles_Getter(this);
@DomName('ShadowRoot.applyAuthorStyles')
@DocsEditable()
void set _applyAuthorStyles(bool value) => _blink.Native_ShadowRoot_applyAuthorStyles_Setter(this, value);
@DomName('ShadowRoot.host')
@DocsEditable()
@Experimental() // untriaged
@@ -25407,10 +25319,6 @@ class SpeechInputEvent extends Event {
// To suppress missing implicit constructor warnings.
factory SpeechInputEvent._() { throw new UnsupportedError("Not supported"); }
@DomName('SpeechInputEvent.results')
@DocsEditable()
List<SpeechInputResult> get results => _blink.Native_SpeechInputEvent_results_Getter(this);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -25427,14 +25335,6 @@ class SpeechInputResult extends NativeFieldWrapperClass2 {
// To suppress missing implicit constructor warnings.
factory SpeechInputResult._() { throw new UnsupportedError("Not supported"); }
@DomName('SpeechInputResult.confidence')
@DocsEditable()
double get confidence => _blink.Native_SpeechInputResult_confidence_Getter(this);
@DomName('SpeechInputResult.utterance')
@DocsEditable()
String get utterance => _blink.Native_SpeechInputResult_utterance_Getter(this);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -27525,11 +27425,6 @@ class TimedItem extends NativeFieldWrapperClass2 {
@Experimental() // untriaged
Player get player => _blink.Native_TimedItem_player_Getter(this);
@DomName('TimedItem.specified')
@DocsEditable()
@Experimental() // untriaged
Timing get specified => _blink.Native_TimedItem_specified_Getter(this);
@DomName('TimedItem.startTime')
@DocsEditable()
@Experimental() // untriaged
@@ -31048,11 +30943,6 @@ class WorkerCrypto extends NativeFieldWrapperClass2 {
// To suppress missing implicit constructor warnings.
factory WorkerCrypto._() { throw new UnsupportedError("Not supported"); }
@DomName('WorkerCrypto.getRandomValues')
@DocsEditable()
@Experimental() // untriaged
TypedData getRandomValues(TypedData array) => _blink.Native_WorkerCrypto_getRandomValues_Callback(this, array);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -31124,14 +31014,6 @@ class WorkerGlobalScope extends EventTarget implements _WindowTimers, WindowBase
@Experimental() // untriaged
WorkerGlobalScope get self => _blink.Native_WorkerGlobalScope_self_Getter(this);
@DomName('WorkerGlobalScope.webkitNotifications')
@DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
@Experimental() // untriaged
_NotificationCenter get _webkitNotifications => _blink.Native_WorkerGlobalScope_webkitNotifications_Getter(this);
@DomName('WorkerGlobalScope.close')
@DocsEditable()
@Experimental() // untriaged
@@ -32642,10 +32524,6 @@ class _SpeechInputResultList extends NativeFieldWrapperClass2 with ListMixin<Spe
// To suppress missing implicit constructor warnings.
factory _SpeechInputResultList._() { throw new UnsupportedError("Not supported"); }
@DomName('SpeechInputResultList.length')
@DocsEditable()
int get length => _blink.Native_SpeechInputResultList_length_Getter(this);
SpeechInputResult operator[](int index) {
if (index < 0 || index >= length)
throw new RangeError.range(index, 0, length);
-18
View File
@@ -1120,12 +1120,6 @@ class ElementInstance extends EventTarget native "SVGElementInstance" {
@DocsEditable()
static const EventStreamProvider<Event> unloadEvent = const EventStreamProvider<Event>('unload');
@DomName('SVGElementInstance.childNodes')
@DocsEditable()
@Returns('_ElementInstanceList')
@Creates('_ElementInstanceList')
final List<ElementInstance> childNodes;
@DomName('SVGElementInstance.correspondingElement')
@DocsEditable()
final SvgElement correspondingElement;
@@ -6012,14 +6006,6 @@ class SvgSvgElement extends GraphicsElement implements FitToViewBox, ZoomAndPan
*/
SvgSvgElement.created() : super.created();
@DomName('SVGSVGElement.contentScriptType')
@DocsEditable()
String contentScriptType;
@DomName('SVGSVGElement.contentStyleType')
@DocsEditable()
String contentStyleType;
@DomName('SVGSVGElement.currentScale')
@DocsEditable()
num currentScale;
@@ -6955,10 +6941,6 @@ class _ElementInstanceList extends Interceptor with ListMixin<ElementInstance>,
// To suppress missing implicit constructor warnings.
factory _ElementInstanceList._() { throw new UnsupportedError("Not supported"); }
@DomName('SVGElementInstanceList.length')
@DocsEditable()
int get length => JS("int", "#.length", this);
ElementInstance operator[](int index) {
if (JS("bool", "# >>> 0 !== # || # >= #", index,
index, index, length))
-24
View File
@@ -1366,10 +1366,6 @@ class ElementInstance extends EventTarget {
@DocsEditable()
static const EventStreamProvider<Event> unloadEvent = const EventStreamProvider<Event>('unload');
@DomName('SVGElementInstance.childNodes')
@DocsEditable()
List<ElementInstance> get childNodes => _blink.Native_SVGElementInstance_childNodes_Getter(this);
@DomName('SVGElementInstance.correspondingElement')
@DocsEditable()
SvgElement get correspondingElement => _blink.Native_SVGElementInstance_correspondingElement_Getter(this);
@@ -6775,22 +6771,6 @@ class SvgSvgElement extends GraphicsElement implements FitToViewBox, ZoomAndPan
*/
SvgSvgElement.created() : super.created();
@DomName('SVGSVGElement.contentScriptType')
@DocsEditable()
String get contentScriptType => _blink.Native_SVGSVGElement_contentScriptType_Getter(this);
@DomName('SVGSVGElement.contentScriptType')
@DocsEditable()
void set contentScriptType(String value) => _blink.Native_SVGSVGElement_contentScriptType_Setter(this, value);
@DomName('SVGSVGElement.contentStyleType')
@DocsEditable()
String get contentStyleType => _blink.Native_SVGSVGElement_contentStyleType_Getter(this);
@DomName('SVGSVGElement.contentStyleType')
@DocsEditable()
void set contentStyleType(String value) => _blink.Native_SVGSVGElement_contentStyleType_Setter(this, value);
@DomName('SVGSVGElement.currentScale')
@DocsEditable()
num get currentScale => _blink.Native_SVGSVGElement_currentScale_Getter(this);
@@ -7782,10 +7762,6 @@ class _ElementInstanceList extends NativeFieldWrapperClass2 with ListMixin<Eleme
// To suppress missing implicit constructor warnings.
factory _ElementInstanceList._() { throw new UnsupportedError("Not supported"); }
@DomName('SVGElementInstanceList.length')
@DocsEditable()
int get length => _blink.Native_SVGElementInstanceList_length_Getter(this);
ElementInstance operator[](int index) {
if (index < 0 || index >= length)
throw new RangeError.range(index, 0, length);
@@ -82,10 +82,6 @@ class AudioBuffer extends Interceptor native "AudioBuffer" {
@DocsEditable()
final double duration;
@DomName('AudioBuffer.gain')
@DocsEditable()
num gain;
@DomName('AudioBuffer.length')
@DocsEditable()
final int length;
@@ -186,10 +182,6 @@ class AudioBufferSourceNode extends AudioSourceNode native "AudioBufferSourceNod
@DocsEditable()
AudioBuffer buffer;
@DomName('AudioBufferSourceNode.gain')
@DocsEditable()
final AudioParam gain;
@DomName('AudioBufferSourceNode.loop')
@DocsEditable()
bool loop;
@@ -206,10 +198,6 @@ class AudioBufferSourceNode extends AudioSourceNode native "AudioBufferSourceNod
@DocsEditable()
final AudioParam playbackRate;
@DomName('AudioBufferSourceNode.playbackState')
@DocsEditable()
final int playbackState;
@DomName('AudioBufferSourceNode.noteGrainOn')
@DocsEditable()
void noteGrainOn(num when, num grainOffset, num grainDuration) native;
@@ -254,10 +242,6 @@ class AudioContext extends EventTarget native "AudioContext,webkitAudioContext"
/// Checks if this type is supported on the current platform.
static bool get supported => JS('bool', '!!(window.AudioContext || window.webkitAudioContext)');
@DomName('AudioContext.activeSourceCount')
@DocsEditable()
final int activeSourceCount;
@DomName('AudioContext.currentTime')
@DocsEditable()
final double currentTime;
@@ -286,11 +270,6 @@ class AudioContext extends EventTarget native "AudioContext,webkitAudioContext"
@DocsEditable()
AudioBuffer createBuffer(int numberOfChannels, int numberOfFrames, num sampleRate) native;
@JSName('createBuffer')
@DomName('AudioContext.createBuffer')
@DocsEditable()
AudioBuffer createBufferFromBuffer(ByteBuffer buffer, bool mixToMono) native;
@DomName('AudioContext.createBufferSource')
@DocsEditable()
AudioBufferSourceNode createBufferSource() native;
@@ -311,22 +290,10 @@ class AudioContext extends EventTarget native "AudioContext,webkitAudioContext"
@DocsEditable()
DelayNode createDelay([num maxDelayTime]) native;
@DomName('AudioContext.createDelayNode')
@DocsEditable()
DelayNode createDelayNode([num maxDelayTime]) native;
@DomName('AudioContext.createDynamicsCompressor')
@DocsEditable()
DynamicsCompressorNode createDynamicsCompressor() native;
@DomName('AudioContext.createGainNode')
@DocsEditable()
GainNode createGainNode() native;
@DomName('AudioContext.createJavaScriptNode')
@DocsEditable()
ScriptProcessorNode createJavaScriptNode(int bufferSize, [int numberOfInputChannels, int numberOfOutputChannels]) native;
@DomName('AudioContext.createMediaElementSource')
@DocsEditable()
MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement) native;
@@ -567,10 +534,6 @@ class AudioParam extends Interceptor native "AudioParam" {
@DocsEditable()
void setTargetAtTime(num target, num time, num timeConstant) native;
@DomName('AudioParam.setTargetValueAtTime')
@DocsEditable()
void setTargetValueAtTime(num targetValue, num time, num timeConstant) native;
@DomName('AudioParam.setValueAtTime')
@DocsEditable()
void setValueAtTime(num value, num time) native;
@@ -937,10 +900,6 @@ class OscillatorNode extends AudioSourceNode native "OscillatorNode,Oscillator"
@DocsEditable()
final AudioParam frequency;
@DomName('OscillatorNode.playbackState')
@DocsEditable()
final int playbackState;
@DomName('OscillatorNode.type')
@DocsEditable()
String type;
@@ -128,14 +128,6 @@ class AudioBuffer extends NativeFieldWrapperClass2 {
@DocsEditable()
double get duration => _blink.Native_AudioBuffer_duration_Getter(this);
@DomName('AudioBuffer.gain')
@DocsEditable()
num get gain => _blink.Native_AudioBuffer_gain_Getter(this);
@DomName('AudioBuffer.gain')
@DocsEditable()
void set gain(num value) => _blink.Native_AudioBuffer_gain_Setter(this, value);
@DomName('AudioBuffer.length')
@DocsEditable()
int get length => _blink.Native_AudioBuffer_length_Getter(this);
@@ -214,10 +206,6 @@ class AudioBufferSourceNode extends AudioSourceNode {
@DocsEditable()
void set buffer(AudioBuffer value) => _blink.Native_AudioBufferSourceNode_buffer_Setter(this, value);
@DomName('AudioBufferSourceNode.gain')
@DocsEditable()
AudioParam get gain => _blink.Native_AudioBufferSourceNode_gain_Getter(this);
@DomName('AudioBufferSourceNode.loop')
@DocsEditable()
bool get loop => _blink.Native_AudioBufferSourceNode_loop_Getter(this);
@@ -246,10 +234,6 @@ class AudioBufferSourceNode extends AudioSourceNode {
@DocsEditable()
AudioParam get playbackRate => _blink.Native_AudioBufferSourceNode_playbackRate_Getter(this);
@DomName('AudioBufferSourceNode.playbackState')
@DocsEditable()
int get playbackState => _blink.Native_AudioBufferSourceNode_playbackState_Getter(this);
@DomName('AudioBufferSourceNode.noteGrainOn')
@DocsEditable()
void noteGrainOn(num when, num grainOffset, num grainDuration) => _blink.Native_AudioBufferSourceNode_noteGrainOn_Callback(this, when, grainOffset, grainDuration);
@@ -302,10 +286,6 @@ class AudioContext extends EventTarget {
/// Checks if this type is supported on the current platform.
static bool get supported => true;
@DomName('AudioContext.activeSourceCount')
@DocsEditable()
int get activeSourceCount => _blink.Native_AudioContext_activeSourceCount_Getter(this);
@DomName('AudioContext.currentTime')
@DocsEditable()
double get currentTime => _blink.Native_AudioContext_currentTime_Getter(this);
@@ -334,10 +314,6 @@ class AudioContext extends EventTarget {
@DocsEditable()
AudioBuffer createBuffer(int numberOfChannels, int numberOfFrames, num sampleRate) => _blink.Native_AudioContext_createBuffer_Callback(this, numberOfChannels, numberOfFrames, sampleRate);
@DomName('AudioContext.createBufferFromBuffer')
@DocsEditable()
AudioBuffer createBufferFromBuffer(ByteBuffer buffer, bool mixToMono) => _blink.Native_AudioContext_createBufferFromBuffer_Callback(this, buffer, mixToMono);
@DomName('AudioContext.createBufferSource')
@DocsEditable()
AudioBufferSourceNode createBufferSource() => _blink.Native_AudioContext_createBufferSource_Callback(this);
@@ -352,8 +328,6 @@ class AudioContext extends EventTarget {
DelayNode createDelay([num maxDelayTime]) => _blink.Native_AudioContext_createDelay(this, maxDelayTime);
DelayNode createDelayNode([num maxDelayTime]) => _blink.Native_AudioContext_createDelayNode(this, maxDelayTime);
@DomName('AudioContext.createDynamicsCompressor')
@DocsEditable()
DynamicsCompressorNode createDynamicsCompressor() => _blink.Native_AudioContext_createDynamicsCompressor_Callback(this);
@@ -362,12 +336,6 @@ class AudioContext extends EventTarget {
@DocsEditable()
GainNode createGain() => _blink.Native_AudioContext_createGain_Callback(this);
@DomName('AudioContext.createGainNode')
@DocsEditable()
GainNode createGainNode() => _blink.Native_AudioContext_createGainNode_Callback(this);
ScriptProcessorNode createJavaScriptNode(int bufferSize, [int numberOfInputChannels, int numberOfOutputChannels]) => _blink.Native_AudioContext_createJavaScriptNode(this, bufferSize, numberOfInputChannels, numberOfOutputChannels);
@DomName('AudioContext.createMediaElementSource')
@DocsEditable()
MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement) => _blink.Native_AudioContext_createMediaElementSource_Callback(this, mediaElement);
@@ -612,10 +580,6 @@ class AudioParam extends NativeFieldWrapperClass2 {
@DocsEditable()
void setTargetAtTime(num target, num time, num timeConstant) => _blink.Native_AudioParam_setTargetAtTime_Callback(this, target, time, timeConstant);
@DomName('AudioParam.setTargetValueAtTime')
@DocsEditable()
void setTargetValueAtTime(num targetValue, num time, num timeConstant) => _blink.Native_AudioParam_setTargetValueAtTime_Callback(this, targetValue, time, timeConstant);
@DomName('AudioParam.setValueAtTime')
@DocsEditable()
void setValueAtTime(num value, num time) => _blink.Native_AudioParam_setValueAtTime_Callback(this, value, time);
@@ -1036,10 +1000,6 @@ class OscillatorNode extends AudioSourceNode {
@DocsEditable()
AudioParam get frequency => _blink.Native_OscillatorNode_frequency_Getter(this);
@DomName('OscillatorNode.playbackState')
@DocsEditable()
int get playbackState => _blink.Native_OscillatorNode_playbackState_Getter(this);
@DomName('OscillatorNode.type')
@DocsEditable()
String get type => _blink.Native_OscillatorNode_type_Getter(this);
+99
View File
@@ -394,4 +394,103 @@ interface Screen {
boolean lockOrientation(sequence<DOMString> orientations);
};
[Supplemental] interface CanvasRenderingContext2D {
[Suppressed] void webkitPutImageDataHD(ImageData? imagedata, float dx, float dy);
[Suppressed] void webkitPutImageDataHD(ImageData? imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight);
[Suppressed] ImageData webkitGetImageDataHD(float sx, float sy, float sw, float sh);
[Suppressed] attribute Path currentPath;
};
[Supplemental] interface AudioParam {
[Suppressed] void setTargetValueAtTime(float target, double time, double timeConstant);
void setTargetAtTime(float target, double time, double timeConstant);
};
[Supplemental] interface AudioContext {
// Number of AudioBufferSourceNodes that are currently playing.
[Suppressed] readonly attribute unsigned long activeSourceCount;
[Suppressed] ScriptProcessorNode createJavaScriptNode(unsigned long bufferSize, optional unsigned long numberOfInputChannels, optional unsigned long numberOfOutputChannels);
[Suppressed] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixToMono);
[Suppressed] GainNode createGainNode();
[Suppressed] DelayNode createDelayNode(optional double maxDelayTime);
};
[Supplemental] interface HTMLInputElement {
[Suppressed] attribute boolean webkitSpeech;
[Suppressed] attribute boolean webkitGrammar;
};
[Supplemental] interface ShadowRoot {
[Suppressed] attribute boolean applyAuthorStyles;
};
[Supplemental] interface BeforeLoadEvent {
[Suppressed] readonly attribute DOMString url;
};
[Supplemental] interface OscillatorNode {
[Suppressed] readonly attribute unsigned short playbackState;
};
[Supplemental] interface SVGElementInstance {
[Suppressed] readonly attribute SVGElementInstanceList childNodes;
};
[Supplemental] interface TimedItem {
[Suppressed] readonly attribute Timing specified;
};
[Supplemental] interface DOMImplementation {
[Suppressed]
CSSStyleSheet createCSSStyleSheet([Default=Undefined] optional DOMString title,
[Default=Undefined] optional DOMString media);
};
[Supplemental] interface SVGSVGElement {
[Suppressed] attribute DOMString contentStyleType;
[Suppressed] attribute DOMString contentScriptType;
};
[Supplemental] interface WorkerGlobalScope {
[Suppressed] readonly attribute NotificationCenter webkitNotifications;
};
[Supplemental] interface AudioBuffer {
[Suppressed] attribute float gain;
};
[Supplemental] interface WorkerCrypto {
[Suppressed] ArrayBufferView getRandomValues(ArrayBufferView array);
};
[Supplemental] interface HTMLFormElement {
void requestAutocomplete([Default=Undefined] optional Dictionary details);
[Suppressed] void requestAutocomplete();
};
[Supplemental] interface AudioBufferSourceNode {
[Suppressed] readonly attribute unsigned short playbackState;
};
[Supplemental] interface SVGElementInstanceList {
[Suppressed] readonly attribute unsigned long length;
};
[Supplemental] interface SpeechInputResult {
[Suppressed] readonly attribute DOMString utterance;
[Suppressed] readonly attribute float confidence;
};
[Supplemental] interface SpeechInputEvent : Event {
[Suppressed] readonly attribute SpeechInputResultList results;
};
[Supplemental] interface SpeechInputResultList {
[Suppressed] readonly attribute unsigned long length;
};
[Supplemental] interface AudioBufferSourceNode : AudioSourceNode {
[Suppressed] readonly attribute AudioParam gain;
};
Element implements GlobalEventHandlers;
+16 -1
View File
@@ -33,7 +33,22 @@ _cpp_resolver_string_map = {
# We don't know how to get GLenum to show up as the correct type in this
# script and don't want to bother fixing it the right way.
'WebGLDrawBuffers_drawBuffersWEBGL_Callback_RESOLVER_STRING_1_sequence<GLenum>' :
'WebGLDrawBuffers_drawBuffersWEBGL_Callback_RESOLVER_STRING_1_sequence<unsigned long>'
'WebGLDrawBuffers_drawBuffersWEBGL_Callback_RESOLVER_STRING_1_sequence<unsigned long>',
# Blink 36 fixes.
'CanvasRenderingContext2D_setLineDash_Callback_RESOLVER_STRING_1_sequence<float>' :
'CanvasRenderingContext2D_setLineDash_Callback_RESOLVER_STRING_1_sequence<unrestricted float>',
# SVGGraphicsElement is base class.
'SVGUseElement_hasExtension_Callback_RESOLVER_STRING_1_DOMString' :
'SVGGraphicsElement_hasExtension_Callback_RESOLVER_STRING_1_DOMString',
'SVGUseElement_systemLanguage_Getter' :
'SVGGraphicsElement_systemLanguage_Getter',
'SVGUseElement_requiredFeatures_Getter' :
'SVGGraphicsElement_requiredFeatures_Getter',
'SVGUseElement_requiredExtensions_Getter' :
'SVGGraphicsElement_requiredExtensions_Getter',
'Gamepad_buttons_Getter' : 'WebKitGamepad_buttons_Getter',
}
# TODO(vsm): This logic needs to pulled from the source IDL. These tables are