Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Side by Side Diff: sdk/lib/web_gl/dart2js/web_gl_dart2js.dart

Issue 27033009: Making all base class DOM types throw as well (to prevent a default constructor for DOM types that … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /** 1 /**
2 * 3D programming in the browser. 2 * 3D programming in the browser.
3 */ 3 */
4 library dart.dom.web_gl; 4 library dart.dom.web_gl;
5 5
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'dart:_collection-dev' hide deprecated; 7 import 'dart:_collection-dev' hide deprecated;
8 import 'dart:html'; 8 import 'dart:html';
9 import 'dart:html_common'; 9 import 'dart:html_common';
10 import 'dart:typed_data'; 10 import 'dart:typed_data';
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 const int ZERO = RenderingContext.ZERO; 322 const int ZERO = RenderingContext.ZERO;
323 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 323 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
324 // for details. All rights reserved. Use of this source code is governed by a 324 // for details. All rights reserved. Use of this source code is governed by a
325 // BSD-style license that can be found in the LICENSE file. 325 // BSD-style license that can be found in the LICENSE file.
326 326
327 327
328 @DocsEditable() 328 @DocsEditable()
329 @DomName('WebGLActiveInfo') 329 @DomName('WebGLActiveInfo')
330 @Unstable() 330 @Unstable()
331 class ActiveInfo extends Interceptor native "WebGLActiveInfo" { 331 class ActiveInfo extends Interceptor native "WebGLActiveInfo" {
332 // To suppress missing implicit constructor warnings.
333 factory ActiveInfo._() { throw new UnsupportedError("Not supported"); }
332 334
333 @DomName('WebGLActiveInfo.name') 335 @DomName('WebGLActiveInfo.name')
334 @DocsEditable() 336 @DocsEditable()
335 final String name; 337 final String name;
336 338
337 @DomName('WebGLActiveInfo.size') 339 @DomName('WebGLActiveInfo.size')
338 @DocsEditable() 340 @DocsEditable()
339 final int size; 341 final int size;
340 342
341 @DomName('WebGLActiveInfo.type') 343 @DomName('WebGLActiveInfo.type')
342 @DocsEditable() 344 @DocsEditable()
343 final int type; 345 final int type;
344 } 346 }
345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
346 // for details. All rights reserved. Use of this source code is governed by a 348 // for details. All rights reserved. Use of this source code is governed by a
347 // BSD-style license that can be found in the LICENSE file. 349 // BSD-style license that can be found in the LICENSE file.
348 350
349 351
350 @DocsEditable() 352 @DocsEditable()
351 @DomName('ANGLEInstancedArrays') 353 @DomName('ANGLEInstancedArrays')
352 @Experimental() // untriaged 354 @Experimental() // untriaged
353 class AngleInstancedArrays extends Interceptor native "ANGLEInstancedArrays" { 355 class AngleInstancedArrays extends Interceptor native "ANGLEInstancedArrays" {
356 // To suppress missing implicit constructor warnings.
357 factory AngleInstancedArrays._() { throw new UnsupportedError("Not supported") ; }
354 358
355 @DomName('ANGLEInstancedArrays.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE') 359 @DomName('ANGLEInstancedArrays.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE')
356 @DocsEditable() 360 @DocsEditable()
357 @Experimental() // untriaged 361 @Experimental() // untriaged
358 static const int VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE; 362 static const int VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE;
359 363
360 @JSName('drawArraysInstancedANGLE') 364 @JSName('drawArraysInstancedANGLE')
361 @DomName('ANGLEInstancedArrays.drawArraysInstancedANGLE') 365 @DomName('ANGLEInstancedArrays.drawArraysInstancedANGLE')
362 @DocsEditable() 366 @DocsEditable()
363 @Experimental() // untriaged 367 @Experimental() // untriaged
(...skipping 13 matching lines...) Expand all
377 } 381 }
378 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
379 // for details. All rights reserved. Use of this source code is governed by a 383 // for details. All rights reserved. Use of this source code is governed by a
380 // BSD-style license that can be found in the LICENSE file. 384 // BSD-style license that can be found in the LICENSE file.
381 385
382 386
383 @DocsEditable() 387 @DocsEditable()
384 @DomName('WebGLBuffer') 388 @DomName('WebGLBuffer')
385 @Unstable() 389 @Unstable()
386 class Buffer extends Interceptor native "WebGLBuffer" { 390 class Buffer extends Interceptor native "WebGLBuffer" {
391 // To suppress missing implicit constructor warnings.
392 factory Buffer._() { throw new UnsupportedError("Not supported"); }
387 } 393 }
388 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 394 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
389 // for details. All rights reserved. Use of this source code is governed by a 395 // for details. All rights reserved. Use of this source code is governed by a
390 // BSD-style license that can be found in the LICENSE file. 396 // BSD-style license that can be found in the LICENSE file.
391 397
392 398
393 @DocsEditable() 399 @DocsEditable()
394 @DomName('WebGLCompressedTextureATC') 400 @DomName('WebGLCompressedTextureATC')
395 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc / 401 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc /
396 @Experimental() 402 @Experimental()
397 class CompressedTextureAtc extends Interceptor native "WebGLCompressedTextureATC " { 403 class CompressedTextureAtc extends Interceptor native "WebGLCompressedTextureATC " {
404 // To suppress missing implicit constructor warnings.
405 factory CompressedTextureAtc._() { throw new UnsupportedError("Not supported") ; }
398 406
399 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL') 407 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL')
400 @DocsEditable() 408 @DocsEditable()
401 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93; 409 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93;
402 410
403 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEB GL') 411 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEB GL')
404 @DocsEditable() 412 @DocsEditable()
405 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE; 413 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE;
406 414
407 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL') 415 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL')
408 @DocsEditable() 416 @DocsEditable()
409 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92; 417 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92;
410 } 418 }
411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 419 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
412 // for details. All rights reserved. Use of this source code is governed by a 420 // for details. All rights reserved. Use of this source code is governed by a
413 // BSD-style license that can be found in the LICENSE file. 421 // BSD-style license that can be found in the LICENSE file.
414 422
415 423
416 @DocsEditable() 424 @DocsEditable()
417 @DomName('WebGLCompressedTexturePVRTC') 425 @DomName('WebGLCompressedTexturePVRTC')
418 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr tc/ 426 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr tc/
419 @Experimental() // experimental 427 @Experimental() // experimental
420 class CompressedTexturePvrtc extends Interceptor native "WebGLCompressedTextureP VRTC" { 428 class CompressedTexturePvrtc extends Interceptor native "WebGLCompressedTextureP VRTC" {
429 // To suppress missing implicit constructor warnings.
430 factory CompressedTexturePvrtc._() { throw new UnsupportedError("Not supported "); }
421 431
422 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG') 432 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG')
423 @DocsEditable() 433 @DocsEditable()
424 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03; 434 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03;
425 435
426 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG') 436 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG')
427 @DocsEditable() 437 @DocsEditable()
428 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02; 438 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02;
429 439
430 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG') 440 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG')
431 @DocsEditable() 441 @DocsEditable()
432 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01; 442 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01;
433 443
434 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG') 444 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG')
435 @DocsEditable() 445 @DocsEditable()
436 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00; 446 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00;
437 } 447 }
438 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 448 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
439 // for details. All rights reserved. Use of this source code is governed by a 449 // for details. All rights reserved. Use of this source code is governed by a
440 // BSD-style license that can be found in the LICENSE file. 450 // BSD-style license that can be found in the LICENSE file.
441 451
442 452
443 @DocsEditable() 453 @DocsEditable()
444 @DomName('WebGLCompressedTextureS3TC') 454 @DomName('WebGLCompressedTextureS3TC')
445 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t c/ 455 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t c/
446 @Experimental() // experimental 456 @Experimental() // experimental
447 class CompressedTextureS3TC extends Interceptor native "WebGLCompressedTextureS3 TC" { 457 class CompressedTextureS3TC extends Interceptor native "WebGLCompressedTextureS3 TC" {
458 // To suppress missing implicit constructor warnings.
459 factory CompressedTextureS3TC._() { throw new UnsupportedError("Not supported" ); }
448 460
449 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT') 461 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT')
450 @DocsEditable() 462 @DocsEditable()
451 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; 463 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
452 464
453 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT') 465 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT')
454 @DocsEditable() 466 @DocsEditable()
455 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; 467 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
456 468
457 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT') 469 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT')
458 @DocsEditable() 470 @DocsEditable()
459 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; 471 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
460 472
461 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT') 473 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT')
462 @DocsEditable() 474 @DocsEditable()
463 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; 475 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
464 } 476 }
465 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
466 // for details. All rights reserved. Use of this source code is governed by a 478 // for details. All rights reserved. Use of this source code is governed by a
467 // BSD-style license that can be found in the LICENSE file. 479 // BSD-style license that can be found in the LICENSE file.
468 480
469 481
470 @DocsEditable() 482 @DocsEditable()
471 @DomName('WebGLContextAttributes') 483 @DomName('WebGLContextAttributes')
472 @Unstable() 484 @Unstable()
473 class ContextAttributes extends Interceptor native "WebGLContextAttributes" { 485 class ContextAttributes extends Interceptor native "WebGLContextAttributes" {
486 // To suppress missing implicit constructor warnings.
487 factory ContextAttributes._() { throw new UnsupportedError("Not supported"); }
474 488
475 @DomName('WebGLContextAttributes.alpha') 489 @DomName('WebGLContextAttributes.alpha')
476 @DocsEditable() 490 @DocsEditable()
477 bool alpha; 491 bool alpha;
478 492
479 @DomName('WebGLContextAttributes.antialias') 493 @DomName('WebGLContextAttributes.antialias')
480 @DocsEditable() 494 @DocsEditable()
481 bool antialias; 495 bool antialias;
482 496
483 @DomName('WebGLContextAttributes.depth') 497 @DomName('WebGLContextAttributes.depth')
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 529 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
516 // for details. All rights reserved. Use of this source code is governed by a 530 // for details. All rights reserved. Use of this source code is governed by a
517 // BSD-style license that can be found in the LICENSE file. 531 // BSD-style license that can be found in the LICENSE file.
518 532
519 533
520 @DocsEditable() 534 @DocsEditable()
521 @DomName('WebGLDebugRendererInfo') 535 @DomName('WebGLDebugRendererInfo')
522 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/ 536 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/
523 @Experimental() // experimental 537 @Experimental() // experimental
524 class DebugRendererInfo extends Interceptor native "WebGLDebugRendererInfo" { 538 class DebugRendererInfo extends Interceptor native "WebGLDebugRendererInfo" {
539 // To suppress missing implicit constructor warnings.
540 factory DebugRendererInfo._() { throw new UnsupportedError("Not supported"); }
525 541
526 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL') 542 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL')
527 @DocsEditable() 543 @DocsEditable()
528 static const int UNMASKED_RENDERER_WEBGL = 0x9246; 544 static const int UNMASKED_RENDERER_WEBGL = 0x9246;
529 545
530 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL') 546 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL')
531 @DocsEditable() 547 @DocsEditable()
532 static const int UNMASKED_VENDOR_WEBGL = 0x9245; 548 static const int UNMASKED_VENDOR_WEBGL = 0x9245;
533 } 549 }
534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 550 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
535 // for details. All rights reserved. Use of this source code is governed by a 551 // for details. All rights reserved. Use of this source code is governed by a
536 // BSD-style license that can be found in the LICENSE file. 552 // BSD-style license that can be found in the LICENSE file.
537 553
538 554
539 @DocsEditable() 555 @DocsEditable()
540 @DomName('WebGLDebugShaders') 556 @DomName('WebGLDebugShaders')
541 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/ 557 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/
542 @Experimental() // experimental 558 @Experimental() // experimental
543 class DebugShaders extends Interceptor native "WebGLDebugShaders" { 559 class DebugShaders extends Interceptor native "WebGLDebugShaders" {
560 // To suppress missing implicit constructor warnings.
561 factory DebugShaders._() { throw new UnsupportedError("Not supported"); }
544 562
545 @DomName('WebGLDebugShaders.getTranslatedShaderSource') 563 @DomName('WebGLDebugShaders.getTranslatedShaderSource')
546 @DocsEditable() 564 @DocsEditable()
547 String getTranslatedShaderSource(Shader shader) native; 565 String getTranslatedShaderSource(Shader shader) native;
548 } 566 }
549 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 567 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
550 // for details. All rights reserved. Use of this source code is governed by a 568 // for details. All rights reserved. Use of this source code is governed by a
551 // BSD-style license that can be found in the LICENSE file. 569 // BSD-style license that can be found in the LICENSE file.
552 570
553 571
554 @DocsEditable() 572 @DocsEditable()
555 @DomName('WebGLDepthTexture') 573 @DomName('WebGLDepthTexture')
556 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ 574 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/
557 @Experimental() // experimental 575 @Experimental() // experimental
558 class DepthTexture extends Interceptor native "WebGLDepthTexture" { 576 class DepthTexture extends Interceptor native "WebGLDepthTexture" {
577 // To suppress missing implicit constructor warnings.
578 factory DepthTexture._() { throw new UnsupportedError("Not supported"); }
559 579
560 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL') 580 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL')
561 @DocsEditable() 581 @DocsEditable()
562 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; 582 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA;
563 } 583 }
564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 584 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
565 // for details. All rights reserved. Use of this source code is governed by a 585 // for details. All rights reserved. Use of this source code is governed by a
566 // BSD-style license that can be found in the LICENSE file. 586 // BSD-style license that can be found in the LICENSE file.
567 587
568 588
569 @DocsEditable() 589 @DocsEditable()
570 @DomName('WebGLDrawBuffers') 590 @DomName('WebGLDrawBuffers')
571 // http://www.khronos.org/registry/webgl/specs/latest/ 591 // http://www.khronos.org/registry/webgl/specs/latest/
572 @Experimental() // stable 592 @Experimental() // stable
573 class DrawBuffers extends Interceptor native "WebGLDrawBuffers" { 593 class DrawBuffers extends Interceptor native "WebGLDrawBuffers" {
594 // To suppress missing implicit constructor warnings.
595 factory DrawBuffers._() { throw new UnsupportedError("Not supported"); }
574 596
575 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT0_WEBGL') 597 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT0_WEBGL')
576 @DocsEditable() 598 @DocsEditable()
577 static const int COLOR_ATTACHMENT0_WEBGL = 0x8CE0; 599 static const int COLOR_ATTACHMENT0_WEBGL = 0x8CE0;
578 600
579 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT10_WEBGL') 601 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT10_WEBGL')
580 @DocsEditable() 602 @DocsEditable()
581 static const int COLOR_ATTACHMENT10_WEBGL = 0x8CEA; 603 static const int COLOR_ATTACHMENT10_WEBGL = 0x8CEA;
582 604
583 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT11_WEBGL') 605 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT11_WEBGL')
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 738 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
717 // for details. All rights reserved. Use of this source code is governed by a 739 // for details. All rights reserved. Use of this source code is governed by a
718 // BSD-style license that can be found in the LICENSE file. 740 // BSD-style license that can be found in the LICENSE file.
719 741
720 742
721 @DocsEditable() 743 @DocsEditable()
722 @DomName('EXTFragDepth') 744 @DomName('EXTFragDepth')
723 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/ 745 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/
724 @Experimental() 746 @Experimental()
725 class ExtFragDepth extends Interceptor native "EXTFragDepth" { 747 class ExtFragDepth extends Interceptor native "EXTFragDepth" {
748 // To suppress missing implicit constructor warnings.
749 factory ExtFragDepth._() { throw new UnsupportedError("Not supported"); }
726 } 750 }
727 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
728 // for details. All rights reserved. Use of this source code is governed by a 752 // for details. All rights reserved. Use of this source code is governed by a
729 // BSD-style license that can be found in the LICENSE file. 753 // BSD-style license that can be found in the LICENSE file.
730 754
731 755
732 @DocsEditable() 756 @DocsEditable()
733 @DomName('EXTTextureFilterAnisotropic') 757 @DomName('EXTTextureFilterAnisotropic')
734 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop ic/ 758 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop ic/
735 @Experimental() 759 @Experimental()
736 class ExtTextureFilterAnisotropic extends Interceptor native "EXTTextureFilterAn isotropic" { 760 class ExtTextureFilterAnisotropic extends Interceptor native "EXTTextureFilterAn isotropic" {
761 // To suppress missing implicit constructor warnings.
762 factory ExtTextureFilterAnisotropic._() { throw new UnsupportedError("Not supp orted"); }
737 763
738 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT') 764 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT')
739 @DocsEditable() 765 @DocsEditable()
740 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; 766 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
741 767
742 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT') 768 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT')
743 @DocsEditable() 769 @DocsEditable()
744 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; 770 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
745 } 771 }
746 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 772 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
747 // for details. All rights reserved. Use of this source code is governed by a 773 // for details. All rights reserved. Use of this source code is governed by a
748 // BSD-style license that can be found in the LICENSE file. 774 // BSD-style license that can be found in the LICENSE file.
749 775
750 776
751 @DocsEditable() 777 @DocsEditable()
752 @DomName('WebGLFramebuffer') 778 @DomName('WebGLFramebuffer')
753 @Unstable() 779 @Unstable()
754 class Framebuffer extends Interceptor native "WebGLFramebuffer" { 780 class Framebuffer extends Interceptor native "WebGLFramebuffer" {
781 // To suppress missing implicit constructor warnings.
782 factory Framebuffer._() { throw new UnsupportedError("Not supported"); }
755 } 783 }
756 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 784 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
757 // for details. All rights reserved. Use of this source code is governed by a 785 // for details. All rights reserved. Use of this source code is governed by a
758 // BSD-style license that can be found in the LICENSE file. 786 // BSD-style license that can be found in the LICENSE file.
759 787
760 788
761 @DocsEditable() 789 @DocsEditable()
762 @DomName('WebGLLoseContext') 790 @DomName('WebGLLoseContext')
763 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ 791 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/
764 @Experimental() 792 @Experimental()
765 class LoseContext extends Interceptor native "WebGLLoseContext,WebGLExtensionLos eContext" { 793 class LoseContext extends Interceptor native "WebGLLoseContext,WebGLExtensionLos eContext" {
794 // To suppress missing implicit constructor warnings.
795 factory LoseContext._() { throw new UnsupportedError("Not supported"); }
766 796
767 @DomName('WebGLLoseContext.loseContext') 797 @DomName('WebGLLoseContext.loseContext')
768 @DocsEditable() 798 @DocsEditable()
769 void loseContext() native; 799 void loseContext() native;
770 800
771 @DomName('WebGLLoseContext.restoreContext') 801 @DomName('WebGLLoseContext.restoreContext')
772 @DocsEditable() 802 @DocsEditable()
773 void restoreContext() native; 803 void restoreContext() native;
774 } 804 }
775 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 805 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
776 // for details. All rights reserved. Use of this source code is governed by a 806 // for details. All rights reserved. Use of this source code is governed by a
777 // BSD-style license that can be found in the LICENSE file. 807 // BSD-style license that can be found in the LICENSE file.
778 808
779 809
780 @DocsEditable() 810 @DocsEditable()
781 @DomName('OESElementIndexUint') 811 @DomName('OESElementIndexUint')
782 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/ 812 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/
783 @Experimental() // experimental 813 @Experimental() // experimental
784 class OesElementIndexUint extends Interceptor native "OESElementIndexUint" { 814 class OesElementIndexUint extends Interceptor native "OESElementIndexUint" {
815 // To suppress missing implicit constructor warnings.
816 factory OesElementIndexUint._() { throw new UnsupportedError("Not supported"); }
785 } 817 }
786 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 818 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
787 // for details. All rights reserved. Use of this source code is governed by a 819 // for details. All rights reserved. Use of this source code is governed by a
788 // BSD-style license that can be found in the LICENSE file. 820 // BSD-style license that can be found in the LICENSE file.
789 821
790 822
791 @DocsEditable() 823 @DocsEditable()
792 @DomName('OESStandardDerivatives') 824 @DomName('OESStandardDerivatives')
793 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/ 825 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/
794 @Experimental() // experimental 826 @Experimental() // experimental
795 class OesStandardDerivatives extends Interceptor native "OESStandardDerivatives" { 827 class OesStandardDerivatives extends Interceptor native "OESStandardDerivatives" {
828 // To suppress missing implicit constructor warnings.
829 factory OesStandardDerivatives._() { throw new UnsupportedError("Not supported "); }
796 830
797 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES') 831 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES')
798 @DocsEditable() 832 @DocsEditable()
799 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; 833 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
800 } 834 }
801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 835 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
802 // for details. All rights reserved. Use of this source code is governed by a 836 // for details. All rights reserved. Use of this source code is governed by a
803 // BSD-style license that can be found in the LICENSE file. 837 // BSD-style license that can be found in the LICENSE file.
804 838
805 839
806 @DocsEditable() 840 @DocsEditable()
807 @DomName('OESTextureFloat') 841 @DomName('OESTextureFloat')
808 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/ 842 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/
809 @Experimental() // experimental 843 @Experimental() // experimental
810 class OesTextureFloat extends Interceptor native "OESTextureFloat" { 844 class OesTextureFloat extends Interceptor native "OESTextureFloat" {
845 // To suppress missing implicit constructor warnings.
846 factory OesTextureFloat._() { throw new UnsupportedError("Not supported"); }
811 } 847 }
812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
813 // for details. All rights reserved. Use of this source code is governed by a 849 // for details. All rights reserved. Use of this source code is governed by a
814 // BSD-style license that can be found in the LICENSE file. 850 // BSD-style license that can be found in the LICENSE file.
815 851
816 852
817 @DocsEditable() 853 @DocsEditable()
818 @DomName('OESTextureFloatLinear') 854 @DomName('OESTextureFloatLinear')
819 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/ 855 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/
820 @Experimental() 856 @Experimental()
821 class OesTextureFloatLinear extends Interceptor native "OESTextureFloatLinear" { 857 class OesTextureFloatLinear extends Interceptor native "OESTextureFloatLinear" {
858 // To suppress missing implicit constructor warnings.
859 factory OesTextureFloatLinear._() { throw new UnsupportedError("Not supported" ); }
822 } 860 }
823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
824 // for details. All rights reserved. Use of this source code is governed by a 862 // for details. All rights reserved. Use of this source code is governed by a
825 // BSD-style license that can be found in the LICENSE file. 863 // BSD-style license that can be found in the LICENSE file.
826 864
827 865
828 @DocsEditable() 866 @DocsEditable()
829 @DomName('OESTextureHalfFloat') 867 @DomName('OESTextureHalfFloat')
830 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/ 868 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/
831 @Experimental() // experimental 869 @Experimental() // experimental
832 class OesTextureHalfFloat extends Interceptor native "OESTextureHalfFloat" { 870 class OesTextureHalfFloat extends Interceptor native "OESTextureHalfFloat" {
871 // To suppress missing implicit constructor warnings.
872 factory OesTextureHalfFloat._() { throw new UnsupportedError("Not supported"); }
833 873
834 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES') 874 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES')
835 @DocsEditable() 875 @DocsEditable()
836 static const int HALF_FLOAT_OES = 0x8D61; 876 static const int HALF_FLOAT_OES = 0x8D61;
837 } 877 }
838 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 878 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
839 // for details. All rights reserved. Use of this source code is governed by a 879 // for details. All rights reserved. Use of this source code is governed by a
840 // BSD-style license that can be found in the LICENSE file. 880 // BSD-style license that can be found in the LICENSE file.
841 881
842 882
843 @DocsEditable() 883 @DocsEditable()
844 @DomName('OESTextureHalfFloatLinear') 884 @DomName('OESTextureHalfFloatLinear')
845 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea r/ 885 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea r/
846 @Experimental() 886 @Experimental()
847 class OesTextureHalfFloatLinear extends Interceptor native "OESTextureHalfFloatL inear" { 887 class OesTextureHalfFloatLinear extends Interceptor native "OESTextureHalfFloatL inear" {
888 // To suppress missing implicit constructor warnings.
889 factory OesTextureHalfFloatLinear._() { throw new UnsupportedError("Not suppor ted"); }
848 } 890 }
849 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 891 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
850 // for details. All rights reserved. Use of this source code is governed by a 892 // for details. All rights reserved. Use of this source code is governed by a
851 // BSD-style license that can be found in the LICENSE file. 893 // BSD-style license that can be found in the LICENSE file.
852 894
853 895
854 @DocsEditable() 896 @DocsEditable()
855 @DomName('OESVertexArrayObject') 897 @DomName('OESVertexArrayObject')
856 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 898 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
857 @Experimental() // experimental 899 @Experimental() // experimental
858 class OesVertexArrayObject extends Interceptor native "OESVertexArrayObject" { 900 class OesVertexArrayObject extends Interceptor native "OESVertexArrayObject" {
901 // To suppress missing implicit constructor warnings.
902 factory OesVertexArrayObject._() { throw new UnsupportedError("Not supported") ; }
859 903
860 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES') 904 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES')
861 @DocsEditable() 905 @DocsEditable()
862 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; 906 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
863 907
864 @JSName('bindVertexArrayOES') 908 @JSName('bindVertexArrayOES')
865 @DomName('OESVertexArrayObject.bindVertexArrayOES') 909 @DomName('OESVertexArrayObject.bindVertexArrayOES')
866 @DocsEditable() 910 @DocsEditable()
867 void bindVertexArray(VertexArrayObject arrayObject) native; 911 void bindVertexArray(VertexArrayObject arrayObject) native;
868 912
(...skipping 14 matching lines...) Expand all
883 } 927 }
884 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 928 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
885 // for details. All rights reserved. Use of this source code is governed by a 929 // for details. All rights reserved. Use of this source code is governed by a
886 // BSD-style license that can be found in the LICENSE file. 930 // BSD-style license that can be found in the LICENSE file.
887 931
888 932
889 @DocsEditable() 933 @DocsEditable()
890 @DomName('WebGLProgram') 934 @DomName('WebGLProgram')
891 @Unstable() 935 @Unstable()
892 class Program extends Interceptor native "WebGLProgram" { 936 class Program extends Interceptor native "WebGLProgram" {
937 // To suppress missing implicit constructor warnings.
938 factory Program._() { throw new UnsupportedError("Not supported"); }
893 } 939 }
894 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 940 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
895 // for details. All rights reserved. Use of this source code is governed by a 941 // for details. All rights reserved. Use of this source code is governed by a
896 // BSD-style license that can be found in the LICENSE file. 942 // BSD-style license that can be found in the LICENSE file.
897 943
898 944
899 @DocsEditable() 945 @DocsEditable()
900 @DomName('WebGLRenderbuffer') 946 @DomName('WebGLRenderbuffer')
901 @Unstable() 947 @Unstable()
902 class Renderbuffer extends Interceptor native "WebGLRenderbuffer" { 948 class Renderbuffer extends Interceptor native "WebGLRenderbuffer" {
949 // To suppress missing implicit constructor warnings.
950 factory Renderbuffer._() { throw new UnsupportedError("Not supported"); }
903 } 951 }
904 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 952 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
905 // for details. All rights reserved. Use of this source code is governed by a 953 // for details. All rights reserved. Use of this source code is governed by a
906 // BSD-style license that can be found in the LICENSE file. 954 // BSD-style license that can be found in the LICENSE file.
907 955
908 956
909 @DomName('WebGLRenderingContext') 957 @DomName('WebGLRenderingContext')
910 @SupportedBrowser(SupportedBrowser.CHROME) 958 @SupportedBrowser(SupportedBrowser.CHROME)
911 @SupportedBrowser(SupportedBrowser.FIREFOX) 959 @SupportedBrowser(SupportedBrowser.FIREFOX)
912 @Experimental() 960 @Experimental()
(...skipping 1863 matching lines...) Expand 10 before | Expand all | Expand 10 after
2776 int type, TypedData data) native; 2824 int type, TypedData data) native;
2777 } 2825 }
2778 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2826 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2779 // for details. All rights reserved. Use of this source code is governed by a 2827 // for details. All rights reserved. Use of this source code is governed by a
2780 // BSD-style license that can be found in the LICENSE file. 2828 // BSD-style license that can be found in the LICENSE file.
2781 2829
2782 2830
2783 @DocsEditable() 2831 @DocsEditable()
2784 @DomName('WebGLShader') 2832 @DomName('WebGLShader')
2785 class Shader extends Interceptor native "WebGLShader" { 2833 class Shader extends Interceptor native "WebGLShader" {
2834 // To suppress missing implicit constructor warnings.
2835 factory Shader._() { throw new UnsupportedError("Not supported"); }
2786 } 2836 }
2787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2837 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2788 // for details. All rights reserved. Use of this source code is governed by a 2838 // for details. All rights reserved. Use of this source code is governed by a
2789 // BSD-style license that can be found in the LICENSE file. 2839 // BSD-style license that can be found in the LICENSE file.
2790 2840
2791 2841
2792 @DocsEditable() 2842 @DocsEditable()
2793 @DomName('WebGLShaderPrecisionFormat') 2843 @DomName('WebGLShaderPrecisionFormat')
2794 class ShaderPrecisionFormat extends Interceptor native "WebGLShaderPrecisionForm at" { 2844 class ShaderPrecisionFormat extends Interceptor native "WebGLShaderPrecisionForm at" {
2845 // To suppress missing implicit constructor warnings.
2846 factory ShaderPrecisionFormat._() { throw new UnsupportedError("Not supported" ); }
2795 2847
2796 @DomName('WebGLShaderPrecisionFormat.precision') 2848 @DomName('WebGLShaderPrecisionFormat.precision')
2797 @DocsEditable() 2849 @DocsEditable()
2798 final int precision; 2850 final int precision;
2799 2851
2800 @DomName('WebGLShaderPrecisionFormat.rangeMax') 2852 @DomName('WebGLShaderPrecisionFormat.rangeMax')
2801 @DocsEditable() 2853 @DocsEditable()
2802 final int rangeMax; 2854 final int rangeMax;
2803 2855
2804 @DomName('WebGLShaderPrecisionFormat.rangeMin') 2856 @DomName('WebGLShaderPrecisionFormat.rangeMin')
2805 @DocsEditable() 2857 @DocsEditable()
2806 final int rangeMin; 2858 final int rangeMin;
2807 } 2859 }
2808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2860 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2809 // for details. All rights reserved. Use of this source code is governed by a 2861 // for details. All rights reserved. Use of this source code is governed by a
2810 // BSD-style license that can be found in the LICENSE file. 2862 // BSD-style license that can be found in the LICENSE file.
2811 2863
2812 2864
2813 @DocsEditable() 2865 @DocsEditable()
2814 @DomName('WebGLTexture') 2866 @DomName('WebGLTexture')
2815 class Texture extends Interceptor native "WebGLTexture" { 2867 class Texture extends Interceptor native "WebGLTexture" {
2868 // To suppress missing implicit constructor warnings.
2869 factory Texture._() { throw new UnsupportedError("Not supported"); }
2816 } 2870 }
2817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2871 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2818 // for details. All rights reserved. Use of this source code is governed by a 2872 // for details. All rights reserved. Use of this source code is governed by a
2819 // BSD-style license that can be found in the LICENSE file. 2873 // BSD-style license that can be found in the LICENSE file.
2820 2874
2821 2875
2822 @DocsEditable() 2876 @DocsEditable()
2823 @DomName('WebGLUniformLocation') 2877 @DomName('WebGLUniformLocation')
2824 class UniformLocation extends Interceptor native "WebGLUniformLocation" { 2878 class UniformLocation extends Interceptor native "WebGLUniformLocation" {
2879 // To suppress missing implicit constructor warnings.
2880 factory UniformLocation._() { throw new UnsupportedError("Not supported"); }
2825 } 2881 }
2826 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2882 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2827 // for details. All rights reserved. Use of this source code is governed by a 2883 // for details. All rights reserved. Use of this source code is governed by a
2828 // BSD-style license that can be found in the LICENSE file. 2884 // BSD-style license that can be found in the LICENSE file.
2829 2885
2830 2886
2831 @DocsEditable() 2887 @DocsEditable()
2832 @DomName('WebGLVertexArrayObjectOES') 2888 @DomName('WebGLVertexArrayObjectOES')
2833 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 2889 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
2834 @Experimental() // experimental 2890 @Experimental() // experimental
2835 class VertexArrayObject extends Interceptor native "WebGLVertexArrayObjectOES" { 2891 class VertexArrayObject extends Interceptor native "WebGLVertexArrayObjectOES" {
2892 // To suppress missing implicit constructor warnings.
2893 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); }
2836 } 2894 }
OLDNEW
« no previous file with comments | « sdk/lib/web_audio/dartium/web_audio_dartium.dart ('k') | sdk/lib/web_gl/dartium/web_gl_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698