| OLD | NEW |
| 1 // This file introduces / supplements and forces Dart declarations. | 1 // This file introduces / supplements and forces Dart declarations. |
| 2 | 2 |
| 3 [DartSupplemental, | 3 [DartSupplemental, |
| 4 Constructor] | 4 Constructor] |
| 5 interface AudioContext { | 5 interface AudioContext { |
| 6 // TODO(ager): Auto-generate this custom method when the info about retaining | 6 // TODO(ager): Auto-generate this custom method when the info about retaining |
| 7 // typed arrays is in the IDL. | 7 // typed arrays is in the IDL. |
| 8 [Custom] void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback succe
ssCallback, AudioBufferCallback errorCallback); | 8 [Custom] void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback succe
ssCallback, AudioBufferCallback errorCallback); |
| 9 }; | 9 }; |
| 10 | 10 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 [DartSuppress, DartStrictTypeChecking, Custom] void getVertexAttrib(); | 183 [DartSuppress, DartStrictTypeChecking, Custom] void getVertexAttrib(); |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 // TODO(vsm): Define new names for these (see b/4436830). | 186 // TODO(vsm): Define new names for these (see b/4436830). |
| 187 [DartSupplemental] | 187 [DartSupplemental] |
| 188 interface IDBCursor { | 188 interface IDBCursor { |
| 189 [DartName=next, CallWith=ExecutionContext, ImplementedAs=continueFunction, Rai
sesException] void continue([DartForceOptional] optional any key); | 189 [DartName=next, CallWith=ExecutionContext, ImplementedAs=continueFunction, Rai
sesException] void continue([DartForceOptional] optional any key); |
| 190 }; | 190 }; |
| 191 [DartSupplemental] | 191 [DartSupplemental] |
| 192 interface IDBIndex { | 192 interface IDBIndex { |
| 193 [CallWith=ExecutionContext, RaisesException] IDBRequest openCursor([Default=
Undefined] optional any key, [DartForceOptional] optional DOMString direction); | |
| 194 | |
| 195 [CallWith=ExecutionContext, RaisesException] IDBRequest openKeyCursor([Defau
lt=Undefined] optional any key, [DartForceOptional] optional DOMString direction
); | |
| 196 | |
| 197 [CallWith=ExecutionContext, RaisesException] IDBRequest count([Default=Undef
ined] optional any key); | 193 [CallWith=ExecutionContext, RaisesException] IDBRequest count([Default=Undef
ined] optional any key); |
| 198 }; | 194 }; |
| 199 | 195 |
| 200 [DartSupplemental] | 196 [DartSupplemental] |
| 201 interface HTMLMediaElement { | 197 interface HTMLMediaElement { |
| 202 DOMString canPlayType([Default=Undefined] optional DOMString type, [Default=Un
defined, TreatNullAs=NullString, TreatUndefinedAs=NullString, DartForceOptional]
optional DOMString keySystem); | 198 DOMString canPlayType([Default=Undefined] optional DOMString type, [Default=Un
defined, TreatNullAs=NullString, TreatUndefinedAs=NullString, DartForceOptional]
optional DOMString keySystem); |
| 203 }; | 199 }; |
| 204 | 200 |
| 205 [DartSupplemental] | 201 [DartSupplemental] |
| 206 interface IDBKeyRange { | 202 interface IDBKeyRange { |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 [RaisesException] void scrollTo(long x, long y, optional Dictionary scrollOpti
ons); | 349 [RaisesException] void scrollTo(long x, long y, optional Dictionary scrollOpti
ons); |
| 354 | 350 |
| 355 [DartSuppress] void scroll(long x, long y); | 351 [DartSuppress] void scroll(long x, long y); |
| 356 [DartSuppress] void scroll(long x, long y, Dictionary scrollOptions); | 352 [DartSuppress] void scroll(long x, long y, Dictionary scrollOptions); |
| 357 [RaisesException] void scroll(long x, long y, optional Dictionary scrollOption
s); | 353 [RaisesException] void scroll(long x, long y, optional Dictionary scrollOption
s); |
| 358 }; | 354 }; |
| 359 | 355 |
| 360 [DartSuppress] | 356 [DartSuppress] |
| 361 interface Promise {}; | 357 interface Promise {}; |
| 362 | 358 |
| 363 [DartSupplemental] interface CanvasRenderingContext2D { | 359 [DartSupplemental] |
| 360 interface CanvasRenderingContext2D { |
| 364 [DartSuppress] void webkitPutImageDataHD(ImageData? imagedata, float dx, flo
at dy); | 361 [DartSuppress] void webkitPutImageDataHD(ImageData? imagedata, float dx, flo
at dy); |
| 365 [DartSuppress] void webkitPutImageDataHD(ImageData? imagedata, float dx, flo
at dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight); | 362 [DartSuppress] void webkitPutImageDataHD(ImageData? imagedata, float dx, flo
at dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight); |
| 366 [DartSuppress] ImageData webkitGetImageDataHD(float sx, float sy, float sw,
float sh); | 363 [DartSuppress] ImageData webkitGetImageDataHD(float sx, float sy, float sw,
float sh); |
| 367 }; | 364 }; |
| 368 | 365 |
| 369 [DartSupplemental] interface AudioParam { | 366 [DartSupplemental] |
| 367 interface AudioParam { |
| 370 [DartSuppress] void setTargetValueAtTime(float target, double time, double t
imeConstant); | 368 [DartSuppress] void setTargetValueAtTime(float target, double time, double t
imeConstant); |
| 371 void setTargetAtTime(float target, double time, double timeConstant); | 369 void setTargetAtTime(float target, double time, double timeConstant); |
| 372 }; | 370 }; |
| 373 | 371 |
| 374 [DartSupplemental] interface AudioContext { | 372 [DartSupplemental] |
| 373 interface AudioContext { |
| 375 // Number of AudioBufferSourceNodes that are currently playing. | 374 // Number of AudioBufferSourceNodes that are currently playing. |
| 376 [DartSuppress] readonly attribute unsigned long activeSourceCount; | 375 [DartSuppress] readonly attribute unsigned long activeSourceCount; |
| 377 [DartSuppress] ScriptProcessorNode createJavaScriptNode(unsigned long buffer
Size, optional unsigned long numberOfInputChannels, optional unsigned long numbe
rOfOutputChannels); | 376 [DartSuppress] ScriptProcessorNode createJavaScriptNode(unsigned long buffer
Size, optional unsigned long numberOfInputChannels, optional unsigned long numbe
rOfOutputChannels); |
| 378 [DartSuppress] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixToMo
no); | 377 [DartSuppress] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixToMo
no); |
| 379 [DartSuppress] GainNode createGainNode(); | 378 [DartSuppress] GainNode createGainNode(); |
| 380 [DartSuppress] DelayNode createDelayNode(optional double maxDelayTime); | 379 [DartSuppress] DelayNode createDelayNode(optional double maxDelayTime); |
| 381 }; | 380 }; |
| 382 | 381 |
| 383 [DartSupplemental] interface HTMLInputElement { | 382 [DartSupplemental] |
| 383 interface HTMLInputElement { |
| 384 [DartSuppress] attribute boolean webkitSpeech; | 384 [DartSuppress] attribute boolean webkitSpeech; |
| 385 [DartSuppress] attribute boolean webkitGrammar; | 385 [DartSuppress] attribute boolean webkitGrammar; |
| 386 }; | 386 }; |
| 387 | 387 |
| 388 [DartSupplemental] interface ShadowRoot { | 388 [DartSupplemental] |
| 389 interface ShadowRoot { |
| 389 [DartSuppress] attribute boolean applyAuthorStyles; | 390 [DartSuppress] attribute boolean applyAuthorStyles; |
| 390 }; | 391 }; |
| 391 | 392 |
| 392 [DartSupplemental] interface BeforeLoadEvent { | 393 [DartSupplemental] |
| 394 interface BeforeLoadEvent { |
| 393 [DartSuppress] readonly attribute DOMString url; | 395 [DartSuppress] readonly attribute DOMString url; |
| 394 }; | 396 }; |
| 395 | 397 |
| 396 [DartSupplemental] interface OscillatorNode { | 398 [DartSupplemental] |
| 399 interface OscillatorNode { |
| 397 [DartSuppress] readonly attribute unsigned short playbackState; | 400 [DartSuppress] readonly attribute unsigned short playbackState; |
| 398 }; | 401 }; |
| 399 | 402 |
| 400 [DartSupplemental] interface SVGElementInstance { | 403 [DartSupplemental] |
| 404 interface SVGElementInstance { |
| 401 [DartSuppress] readonly attribute SVGElementInstanceList childNodes; | 405 [DartSuppress] readonly attribute SVGElementInstanceList childNodes; |
| 402 }; | 406 }; |
| 403 | 407 |
| 404 [DartSupplemental] interface DOMImplementation { | 408 [DartSupplemental] |
| 409 interface DOMImplementation { |
| 405 [DartSuppress] | 410 [DartSuppress] |
| 406 CSSStyleSheet createCSSStyleSheet([Default=Undefined] optional DOMString tit
le, | 411 CSSStyleSheet createCSSStyleSheet([Default=Undefined] optional DOMString tit
le, |
| 407 [Default=Undefined] optional DOMString med
ia); | 412 [Default=Undefined] optional DOMString med
ia); |
| 408 }; | 413 }; |
| 409 | 414 |
| 410 [DartSupplemental] interface SVGSVGElement { | 415 [DartSupplemental] |
| 416 interface SVGSVGElement { |
| 411 [DartSuppress] attribute DOMString contentStyleType; | 417 [DartSuppress] attribute DOMString contentStyleType; |
| 412 [DartSuppress] attribute DOMString contentScriptType; | 418 [DartSuppress] attribute DOMString contentScriptType; |
| 413 }; | 419 }; |
| 414 | 420 |
| 415 [DartSupplemental] interface WorkerGlobalScope { | 421 [DartSupplemental] |
| 422 interface WorkerGlobalScope { |
| 416 [DartSuppress] readonly attribute NotificationCenter webkitNotifications; | 423 [DartSuppress] readonly attribute NotificationCenter webkitNotifications; |
| 417 }; | 424 }; |
| 418 | 425 |
| 419 [DartSupplemental] interface AudioBuffer { | 426 [DartSupplemental] |
| 427 interface AudioBuffer { |
| 420 [DartSuppress] attribute float gain; | 428 [DartSuppress] attribute float gain; |
| 421 }; | 429 }; |
| 422 | 430 |
| 423 [DartSupplemental] interface WorkerCrypto { | 431 [DartSupplemental] |
| 432 interface WorkerCrypto { |
| 424 [DartSuppress] ArrayBufferView getRandomValues(ArrayBufferView array); | 433 [DartSuppress] ArrayBufferView getRandomValues(ArrayBufferView array); |
| 425 }; | 434 }; |
| 426 | 435 |
| 427 [DartSupplemental] interface HTMLFormElement { | 436 [DartSupplemental] |
| 437 interface HTMLFormElement { |
| 428 void requestAutocomplete([Default=Undefined] optional Dictionary details); | 438 void requestAutocomplete([Default=Undefined] optional Dictionary details); |
| 429 [DartSuppress] void requestAutocomplete(); | 439 [DartSuppress] void requestAutocomplete(); |
| 430 }; | 440 }; |
| 431 | 441 |
| 432 [DartSupplemental] interface AudioBufferSourceNode { | 442 [DartSupplemental] |
| 443 interface AudioBufferSourceNode { |
| 433 [DartSuppress] readonly attribute unsigned short playbackState; | 444 [DartSuppress] readonly attribute unsigned short playbackState; |
| 434 }; | 445 }; |
| 435 | 446 |
| 436 [DartSupplemental] interface AudioBufferSourceNode : AudioSourceNode { | 447 [DartSupplemental] |
| 448 interface AudioBufferSourceNode : AudioSourceNode { |
| 437 [DartSuppress] readonly attribute AudioParam gain; | 449 [DartSuppress] readonly attribute AudioParam gain; |
| 438 }; | 450 }; |
| 439 | 451 |
| 440 // Remove backward compatible operation requestPointerLock exist now too. | 452 // Remove operations webkitRequestFullscreen replaced w/ requestFullscreen. |
| 441 [DartSupplemental] interface Element : Node { | 453 [DartSupplemental] |
| 442 [DartSuppress] void webkitRequestPointerLock(); | 454 interface Element : Node { |
| 455 [DartSuppress] void webkitRequestFullScreen([Default=Undefined] optional uns
igned short flags); |
| 456 [DartSuppress] void webkitRequestFullscreen(); |
| 443 }; | 457 }; |
| 444 | 458 |
| 445 [DartSupplemental] interface CSSStyleDeclaration { | 459 [DartSupplemental] |
| 460 interface CSSStyleDeclaration { |
| 446 // Expose __propertyQuery__ a getter with a special operation in the IDL | 461 // Expose __propertyQuery__ a getter with a special operation in the IDL |
| 447 // when used with Custom=PropertyQuery will emit __propertyQuery__. | 462 // when used with Custom=PropertyQuery will emit __propertyQuery__. |
| 448 [Custom=PropertyQuery] getter boolean (DOMString name); | 463 [Custom=PropertyQuery] getter boolean (DOMString name); |
| 449 }; | 464 }; |
| 450 | 465 |
| 466 [DartSupplemental] |
| 467 interface MIDIOutput : MIDIPort { |
| 468 // TODO(terry): Need to support both send operations where the first param |
| 469 // is Uint8Array or sequence<unsigned long>. For now suppress |
| 470 // the new operation. Vijay suggestion, and I think this makes |
| 471 // sense, change dart:html to have a send operation that takes |
| 472 // a List<int> and have custom handler to call the correct |
| 473 // method. The dart:blink library needs to do something else |
| 474 // postfix the name with send_sequence (?). |
| 475 [DartSuppress] void send(sequence<unsigned long> data, optional double times
tamp); |
| 476 }; |
| 477 |
| 451 Element implements GlobalEventHandlers; | 478 Element implements GlobalEventHandlers; |
| OLD | NEW |