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

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

Issue 17508002: Revert "Making all DOM types abstract and removing superfluous Dartium constructors." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 library dart.dom.web_gl; 1 library dart.dom.web_gl;
2 2
3 import 'dart:collection'; 3 import 'dart:collection';
4 import 'dart:_collection-dev'; 4 import 'dart:_collection-dev';
5 import 'dart:html'; 5 import 'dart:html';
6 import 'dart:html_common'; 6 import 'dart:html_common';
7 import 'dart:typed_data'; 7 import 'dart:typed_data';
8 import 'dart:_js_helper' show Creates, JSName, Null, Returns, convertDartClosure ToJS; 8 import 'dart:_js_helper' show Creates, JSName, Null, Returns, convertDartClosure ToJS;
9 import 'dart:_foreign_helper' show JS; 9 import 'dart:_foreign_helper' show JS;
10 import 'dart:_interceptors' show Interceptor; 10 import 'dart:_interceptors' show Interceptor;
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 const int ZERO = RenderingContext.ZERO; 319 const int ZERO = RenderingContext.ZERO;
320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
321 // for details. All rights reserved. Use of this source code is governed by a 321 // for details. All rights reserved. Use of this source code is governed by a
322 // BSD-style license that can be found in the LICENSE file. 322 // BSD-style license that can be found in the LICENSE file.
323 323
324 324
325 @DocsEditable 325 @DocsEditable
326 @DomName('WebGLActiveInfo') 326 @DomName('WebGLActiveInfo')
327 @Unstable 327 @Unstable
328 class ActiveInfo native "WebGLActiveInfo" { 328 class ActiveInfo native "WebGLActiveInfo" {
329 // To suppress missing implicit constructor warnings.
330 factory ActiveInfo._() { throw new UnsupportedError("Not supported"); }
331 329
332 @DomName('WebGLActiveInfo.name') 330 @DomName('WebGLActiveInfo.name')
333 @DocsEditable 331 @DocsEditable
334 final String name; 332 final String name;
335 333
336 @DomName('WebGLActiveInfo.size') 334 @DomName('WebGLActiveInfo.size')
337 @DocsEditable 335 @DocsEditable
338 final int size; 336 final int size;
339 337
340 @DomName('WebGLActiveInfo.type') 338 @DomName('WebGLActiveInfo.type')
341 @DocsEditable 339 @DocsEditable
342 final int type; 340 final int type;
343 } 341 }
344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 342 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
345 // for details. All rights reserved. Use of this source code is governed by a 343 // for details. All rights reserved. Use of this source code is governed by a
346 // BSD-style license that can be found in the LICENSE file. 344 // BSD-style license that can be found in the LICENSE file.
347 345
348 346
349 @DocsEditable 347 @DocsEditable
350 @DomName('WebGLBuffer') 348 @DomName('WebGLBuffer')
351 @Unstable 349 @Unstable
352 class Buffer native "WebGLBuffer" { 350 class Buffer native "WebGLBuffer" {
353 // To suppress missing implicit constructor warnings.
354 factory Buffer._() { throw new UnsupportedError("Not supported"); }
355 } 351 }
356 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
357 // for details. All rights reserved. Use of this source code is governed by a 353 // for details. All rights reserved. Use of this source code is governed by a
358 // BSD-style license that can be found in the LICENSE file. 354 // BSD-style license that can be found in the LICENSE file.
359 355
360 356
361 @DocsEditable 357 @DocsEditable
362 @DomName('WebGLCompressedTextureATC') 358 @DomName('WebGLCompressedTextureATC')
363 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc / 359 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc /
364 @Experimental 360 @Experimental
365 class CompressedTextureAtc native "WebGLCompressedTextureATC" { 361 class CompressedTextureAtc native "WebGLCompressedTextureATC" {
366 // To suppress missing implicit constructor warnings.
367 factory CompressedTextureAtc._() { throw new UnsupportedError("Not supported") ; }
368 362
369 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL') 363 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL')
370 @DocsEditable 364 @DocsEditable
371 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93; 365 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93;
372 366
373 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEB GL') 367 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEB GL')
374 @DocsEditable 368 @DocsEditable
375 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE; 369 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE;
376 370
377 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL') 371 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL')
378 @DocsEditable 372 @DocsEditable
379 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92; 373 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92;
380 } 374 }
381 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
382 // for details. All rights reserved. Use of this source code is governed by a 376 // for details. All rights reserved. Use of this source code is governed by a
383 // BSD-style license that can be found in the LICENSE file. 377 // BSD-style license that can be found in the LICENSE file.
384 378
385 379
386 @DocsEditable 380 @DocsEditable
387 @DomName('WebGLCompressedTexturePVRTC') 381 @DomName('WebGLCompressedTexturePVRTC')
388 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr tc/ 382 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr tc/
389 @Experimental // experimental 383 @Experimental // experimental
390 class CompressedTexturePvrtc native "WebGLCompressedTexturePVRTC" { 384 class CompressedTexturePvrtc native "WebGLCompressedTexturePVRTC" {
391 // To suppress missing implicit constructor warnings.
392 factory CompressedTexturePvrtc._() { throw new UnsupportedError("Not supported "); }
393 385
394 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG') 386 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG')
395 @DocsEditable 387 @DocsEditable
396 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03; 388 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03;
397 389
398 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG') 390 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG')
399 @DocsEditable 391 @DocsEditable
400 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02; 392 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02;
401 393
402 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG') 394 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG')
403 @DocsEditable 395 @DocsEditable
404 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01; 396 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01;
405 397
406 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG') 398 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG')
407 @DocsEditable 399 @DocsEditable
408 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00; 400 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00;
409 } 401 }
410 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 402 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
411 // for details. All rights reserved. Use of this source code is governed by a 403 // for details. All rights reserved. Use of this source code is governed by a
412 // BSD-style license that can be found in the LICENSE file. 404 // BSD-style license that can be found in the LICENSE file.
413 405
414 406
415 @DocsEditable 407 @DocsEditable
416 @DomName('WebGLCompressedTextureS3TC') 408 @DomName('WebGLCompressedTextureS3TC')
417 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t c/ 409 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t c/
418 @Experimental // experimental 410 @Experimental // experimental
419 class CompressedTextureS3TC native "WebGLCompressedTextureS3TC" { 411 class CompressedTextureS3TC native "WebGLCompressedTextureS3TC" {
420 // To suppress missing implicit constructor warnings.
421 factory CompressedTextureS3TC._() { throw new UnsupportedError("Not supported" ); }
422 412
423 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT') 413 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT')
424 @DocsEditable 414 @DocsEditable
425 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; 415 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
426 416
427 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT') 417 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT')
428 @DocsEditable 418 @DocsEditable
429 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; 419 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
430 420
431 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT') 421 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT')
432 @DocsEditable 422 @DocsEditable
433 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; 423 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
434 424
435 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT') 425 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT')
436 @DocsEditable 426 @DocsEditable
437 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; 427 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
438 } 428 }
439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
440 // for details. All rights reserved. Use of this source code is governed by a 430 // for details. All rights reserved. Use of this source code is governed by a
441 // BSD-style license that can be found in the LICENSE file. 431 // BSD-style license that can be found in the LICENSE file.
442 432
443 433
444 @DocsEditable 434 @DocsEditable
445 @DomName('WebGLContextAttributes') 435 @DomName('WebGLContextAttributes')
446 @Unstable 436 @Unstable
447 class ContextAttributes native "WebGLContextAttributes" { 437 class ContextAttributes native "WebGLContextAttributes" {
448 // To suppress missing implicit constructor warnings.
449 factory ContextAttributes._() { throw new UnsupportedError("Not supported"); }
450 438
451 @DomName('WebGLContextAttributes.alpha') 439 @DomName('WebGLContextAttributes.alpha')
452 @DocsEditable 440 @DocsEditable
453 bool alpha; 441 bool alpha;
454 442
455 @DomName('WebGLContextAttributes.antialias') 443 @DomName('WebGLContextAttributes.antialias')
456 @DocsEditable 444 @DocsEditable
457 bool antialias; 445 bool antialias;
458 446
459 @DomName('WebGLContextAttributes.depth') 447 @DomName('WebGLContextAttributes.depth')
(...skipping 14 matching lines...) Expand all
474 } 462 }
475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 463 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
476 // for details. All rights reserved. Use of this source code is governed by a 464 // for details. All rights reserved. Use of this source code is governed by a
477 // BSD-style license that can be found in the LICENSE file. 465 // BSD-style license that can be found in the LICENSE file.
478 466
479 467
480 @DocsEditable 468 @DocsEditable
481 @DomName('WebGLContextEvent') 469 @DomName('WebGLContextEvent')
482 @Unstable 470 @Unstable
483 class ContextEvent extends Event native "WebGLContextEvent" { 471 class ContextEvent extends Event native "WebGLContextEvent" {
484 // To suppress missing implicit constructor warnings.
485 factory ContextEvent._() { throw new UnsupportedError("Not supported"); }
486 472
487 @DomName('WebGLContextEvent.statusMessage') 473 @DomName('WebGLContextEvent.statusMessage')
488 @DocsEditable 474 @DocsEditable
489 final String statusMessage; 475 final String statusMessage;
490 } 476 }
491 // 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
492 // 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
493 // BSD-style license that can be found in the LICENSE file. 479 // BSD-style license that can be found in the LICENSE file.
494 480
495 481
496 @DocsEditable 482 @DocsEditable
497 @DomName('WebGLDebugRendererInfo') 483 @DomName('WebGLDebugRendererInfo')
498 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/ 484 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/
499 @Experimental // experimental 485 @Experimental // experimental
500 class DebugRendererInfo native "WebGLDebugRendererInfo" { 486 class DebugRendererInfo native "WebGLDebugRendererInfo" {
501 // To suppress missing implicit constructor warnings.
502 factory DebugRendererInfo._() { throw new UnsupportedError("Not supported"); }
503 487
504 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL') 488 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL')
505 @DocsEditable 489 @DocsEditable
506 static const int UNMASKED_RENDERER_WEBGL = 0x9246; 490 static const int UNMASKED_RENDERER_WEBGL = 0x9246;
507 491
508 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL') 492 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL')
509 @DocsEditable 493 @DocsEditable
510 static const int UNMASKED_VENDOR_WEBGL = 0x9245; 494 static const int UNMASKED_VENDOR_WEBGL = 0x9245;
511 } 495 }
512 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 496 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
513 // for details. All rights reserved. Use of this source code is governed by a 497 // for details. All rights reserved. Use of this source code is governed by a
514 // BSD-style license that can be found in the LICENSE file. 498 // BSD-style license that can be found in the LICENSE file.
515 499
516 500
517 @DocsEditable 501 @DocsEditable
518 @DomName('WebGLDebugShaders') 502 @DomName('WebGLDebugShaders')
519 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/ 503 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/
520 @Experimental // experimental 504 @Experimental // experimental
521 class DebugShaders native "WebGLDebugShaders" { 505 class DebugShaders native "WebGLDebugShaders" {
522 // To suppress missing implicit constructor warnings.
523 factory DebugShaders._() { throw new UnsupportedError("Not supported"); }
524 506
525 @DomName('WebGLDebugShaders.getTranslatedShaderSource') 507 @DomName('WebGLDebugShaders.getTranslatedShaderSource')
526 @DocsEditable 508 @DocsEditable
527 String getTranslatedShaderSource(Shader shader) native; 509 String getTranslatedShaderSource(Shader shader) native;
528 } 510 }
529 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
530 // for details. All rights reserved. Use of this source code is governed by a 512 // for details. All rights reserved. Use of this source code is governed by a
531 // BSD-style license that can be found in the LICENSE file. 513 // BSD-style license that can be found in the LICENSE file.
532 514
533 515
534 @DocsEditable 516 @DocsEditable
535 @DomName('WebGLDepthTexture') 517 @DomName('WebGLDepthTexture')
536 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ 518 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/
537 @Experimental // experimental 519 @Experimental // experimental
538 class DepthTexture native "WebGLDepthTexture" { 520 class DepthTexture native "WebGLDepthTexture" {
539 // To suppress missing implicit constructor warnings.
540 factory DepthTexture._() { throw new UnsupportedError("Not supported"); }
541 521
542 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL') 522 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL')
543 @DocsEditable 523 @DocsEditable
544 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; 524 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA;
545 } 525 }
546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 526 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
547 // for details. All rights reserved. Use of this source code is governed by a 527 // for details. All rights reserved. Use of this source code is governed by a
548 // BSD-style license that can be found in the LICENSE file. 528 // BSD-style license that can be found in the LICENSE file.
549 529
550 530
551 @DocsEditable 531 @DocsEditable
552 @DomName('EXTDrawBuffers') 532 @DomName('EXTDrawBuffers')
553 // http://www.khronos.org/registry/webgl/specs/latest/ 533 // http://www.khronos.org/registry/webgl/specs/latest/
554 @Experimental // stable 534 @Experimental // stable
555 class ExtDrawBuffers native "EXTDrawBuffers" { 535 class ExtDrawBuffers native "EXTDrawBuffers" {
556 // To suppress missing implicit constructor warnings.
557 factory ExtDrawBuffers._() { throw new UnsupportedError("Not supported"); }
558 536
559 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT0_EXT') 537 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT0_EXT')
560 @DocsEditable 538 @DocsEditable
561 static const int COLOR_ATTACHMENT0_EXT = 0x8CE0; 539 static const int COLOR_ATTACHMENT0_EXT = 0x8CE0;
562 540
563 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT10_EXT') 541 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT10_EXT')
564 @DocsEditable 542 @DocsEditable
565 static const int COLOR_ATTACHMENT10_EXT = 0x8CEA; 543 static const int COLOR_ATTACHMENT10_EXT = 0x8CEA;
566 544
567 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT11_EXT') 545 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT11_EXT')
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 673 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
696 // for details. All rights reserved. Use of this source code is governed by a 674 // for details. All rights reserved. Use of this source code is governed by a
697 // BSD-style license that can be found in the LICENSE file. 675 // BSD-style license that can be found in the LICENSE file.
698 676
699 677
700 @DocsEditable 678 @DocsEditable
701 @DomName('EXTFragDepth') 679 @DomName('EXTFragDepth')
702 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/ 680 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/
703 @Experimental 681 @Experimental
704 class ExtFragDepth native "EXTFragDepth" { 682 class ExtFragDepth native "EXTFragDepth" {
705 // To suppress missing implicit constructor warnings.
706 factory ExtFragDepth._() { throw new UnsupportedError("Not supported"); }
707 } 683 }
708 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 684 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
709 // for details. All rights reserved. Use of this source code is governed by a 685 // for details. All rights reserved. Use of this source code is governed by a
710 // BSD-style license that can be found in the LICENSE file. 686 // BSD-style license that can be found in the LICENSE file.
711 687
712 688
713 @DocsEditable 689 @DocsEditable
714 @DomName('EXTTextureFilterAnisotropic') 690 @DomName('EXTTextureFilterAnisotropic')
715 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop ic/ 691 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop ic/
716 @Experimental 692 @Experimental
717 class ExtTextureFilterAnisotropic native "EXTTextureFilterAnisotropic" { 693 class ExtTextureFilterAnisotropic native "EXTTextureFilterAnisotropic" {
718 // To suppress missing implicit constructor warnings.
719 factory ExtTextureFilterAnisotropic._() { throw new UnsupportedError("Not supp orted"); }
720 694
721 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT') 695 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT')
722 @DocsEditable 696 @DocsEditable
723 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; 697 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
724 698
725 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT') 699 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT')
726 @DocsEditable 700 @DocsEditable
727 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; 701 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
728 } 702 }
729 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
730 // for details. All rights reserved. Use of this source code is governed by a 704 // for details. All rights reserved. Use of this source code is governed by a
731 // BSD-style license that can be found in the LICENSE file. 705 // BSD-style license that can be found in the LICENSE file.
732 706
733 707
734 @DocsEditable 708 @DocsEditable
735 @DomName('WebGLFramebuffer') 709 @DomName('WebGLFramebuffer')
736 @Unstable 710 @Unstable
737 class Framebuffer native "WebGLFramebuffer" { 711 class Framebuffer native "WebGLFramebuffer" {
738 // To suppress missing implicit constructor warnings.
739 factory Framebuffer._() { throw new UnsupportedError("Not supported"); }
740 } 712 }
741 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
742 // for details. All rights reserved. Use of this source code is governed by a 714 // for details. All rights reserved. Use of this source code is governed by a
743 // BSD-style license that can be found in the LICENSE file. 715 // BSD-style license that can be found in the LICENSE file.
744 716
745 717
746 @DocsEditable 718 @DocsEditable
747 @DomName('WebGLLoseContext') 719 @DomName('WebGLLoseContext')
748 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ 720 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/
749 @Experimental 721 @Experimental
750 class LoseContext native "WebGLLoseContext" { 722 class LoseContext native "WebGLLoseContext" {
751 // To suppress missing implicit constructor warnings.
752 factory LoseContext._() { throw new UnsupportedError("Not supported"); }
753 723
754 @DomName('WebGLLoseContext.loseContext') 724 @DomName('WebGLLoseContext.loseContext')
755 @DocsEditable 725 @DocsEditable
756 void loseContext() native; 726 void loseContext() native;
757 727
758 @DomName('WebGLLoseContext.restoreContext') 728 @DomName('WebGLLoseContext.restoreContext')
759 @DocsEditable 729 @DocsEditable
760 void restoreContext() native; 730 void restoreContext() native;
761 } 731 }
762 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
763 // for details. All rights reserved. Use of this source code is governed by a 733 // for details. All rights reserved. Use of this source code is governed by a
764 // BSD-style license that can be found in the LICENSE file. 734 // BSD-style license that can be found in the LICENSE file.
765 735
766 736
767 @DocsEditable 737 @DocsEditable
768 @DomName('OESElementIndexUint') 738 @DomName('OESElementIndexUint')
769 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/ 739 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/
770 @Experimental // experimental 740 @Experimental // experimental
771 class OesElementIndexUint native "OESElementIndexUint" { 741 class OesElementIndexUint native "OESElementIndexUint" {
772 // To suppress missing implicit constructor warnings.
773 factory OesElementIndexUint._() { throw new UnsupportedError("Not supported"); }
774 } 742 }
775 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 743 // 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 744 // 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. 745 // BSD-style license that can be found in the LICENSE file.
778 746
779 747
780 @DocsEditable 748 @DocsEditable
781 @DomName('OESStandardDerivatives') 749 @DomName('OESStandardDerivatives')
782 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/ 750 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/
783 @Experimental // experimental 751 @Experimental // experimental
784 class OesStandardDerivatives native "OESStandardDerivatives" { 752 class OesStandardDerivatives native "OESStandardDerivatives" {
785 // To suppress missing implicit constructor warnings.
786 factory OesStandardDerivatives._() { throw new UnsupportedError("Not supported "); }
787 753
788 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES') 754 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES')
789 @DocsEditable 755 @DocsEditable
790 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; 756 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
791 } 757 }
792 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 758 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
793 // for details. All rights reserved. Use of this source code is governed by a 759 // for details. All rights reserved. Use of this source code is governed by a
794 // BSD-style license that can be found in the LICENSE file. 760 // BSD-style license that can be found in the LICENSE file.
795 761
796 762
797 @DocsEditable 763 @DocsEditable
798 @DomName('OESTextureFloat') 764 @DomName('OESTextureFloat')
799 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/ 765 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/
800 @Experimental // experimental 766 @Experimental // experimental
801 class OesTextureFloat native "OESTextureFloat" { 767 class OesTextureFloat native "OESTextureFloat" {
802 // To suppress missing implicit constructor warnings.
803 factory OesTextureFloat._() { throw new UnsupportedError("Not supported"); }
804 } 768 }
805 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 769 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
806 // for details. All rights reserved. Use of this source code is governed by a 770 // for details. All rights reserved. Use of this source code is governed by a
807 // BSD-style license that can be found in the LICENSE file. 771 // BSD-style license that can be found in the LICENSE file.
808 772
809 773
810 @DocsEditable 774 @DocsEditable
811 @DomName('OESTextureFloatLinear') 775 @DomName('OESTextureFloatLinear')
812 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/ 776 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/
813 @Experimental 777 @Experimental
814 class OesTextureFloatLinear native "OESTextureFloatLinear" { 778 class OesTextureFloatLinear native "OESTextureFloatLinear" {
815 // To suppress missing implicit constructor warnings.
816 factory OesTextureFloatLinear._() { throw new UnsupportedError("Not supported" ); }
817 } 779 }
818 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 780 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
819 // for details. All rights reserved. Use of this source code is governed by a 781 // for details. All rights reserved. Use of this source code is governed by a
820 // BSD-style license that can be found in the LICENSE file. 782 // BSD-style license that can be found in the LICENSE file.
821 783
822 784
823 @DocsEditable 785 @DocsEditable
824 @DomName('OESTextureHalfFloat') 786 @DomName('OESTextureHalfFloat')
825 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/ 787 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/
826 @Experimental // experimental 788 @Experimental // experimental
827 class OesTextureHalfFloat native "OESTextureHalfFloat" { 789 class OesTextureHalfFloat native "OESTextureHalfFloat" {
828 // To suppress missing implicit constructor warnings.
829 factory OesTextureHalfFloat._() { throw new UnsupportedError("Not supported"); }
830 790
831 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES') 791 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES')
832 @DocsEditable 792 @DocsEditable
833 static const int HALF_FLOAT_OES = 0x8D61; 793 static const int HALF_FLOAT_OES = 0x8D61;
834 } 794 }
835 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 795 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
836 // for details. All rights reserved. Use of this source code is governed by a 796 // for details. All rights reserved. Use of this source code is governed by a
837 // BSD-style license that can be found in the LICENSE file. 797 // BSD-style license that can be found in the LICENSE file.
838 798
839 799
840 @DocsEditable 800 @DocsEditable
841 @DomName('OESTextureHalfFloatLinear') 801 @DomName('OESTextureHalfFloatLinear')
842 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea r/ 802 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea r/
843 @Experimental 803 @Experimental
844 class OesTextureHalfFloatLinear native "OESTextureHalfFloatLinear" { 804 class OesTextureHalfFloatLinear native "OESTextureHalfFloatLinear" {
845 // To suppress missing implicit constructor warnings.
846 factory OesTextureHalfFloatLinear._() { throw new UnsupportedError("Not suppor ted"); }
847 } 805 }
848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
849 // for details. All rights reserved. Use of this source code is governed by a 807 // for details. All rights reserved. Use of this source code is governed by a
850 // BSD-style license that can be found in the LICENSE file. 808 // BSD-style license that can be found in the LICENSE file.
851 809
852 810
853 @DocsEditable 811 @DocsEditable
854 @DomName('OESVertexArrayObject') 812 @DomName('OESVertexArrayObject')
855 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 813 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
856 @Experimental // experimental 814 @Experimental // experimental
857 class OesVertexArrayObject native "OESVertexArrayObject" { 815 class OesVertexArrayObject native "OESVertexArrayObject" {
858 // To suppress missing implicit constructor warnings.
859 factory OesVertexArrayObject._() { throw new UnsupportedError("Not supported") ; }
860 816
861 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES') 817 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES')
862 @DocsEditable 818 @DocsEditable
863 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; 819 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
864 820
865 @JSName('bindVertexArrayOES') 821 @JSName('bindVertexArrayOES')
866 @DomName('OESVertexArrayObject.bindVertexArrayOES') 822 @DomName('OESVertexArrayObject.bindVertexArrayOES')
867 @DocsEditable 823 @DocsEditable
868 void bindVertexArray(VertexArrayObject arrayObject) native; 824 void bindVertexArray(VertexArrayObject arrayObject) native;
869 825
(...skipping 14 matching lines...) Expand all
884 } 840 }
885 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 841 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
886 // for details. All rights reserved. Use of this source code is governed by a 842 // for details. All rights reserved. Use of this source code is governed by a
887 // BSD-style license that can be found in the LICENSE file. 843 // BSD-style license that can be found in the LICENSE file.
888 844
889 845
890 @DocsEditable 846 @DocsEditable
891 @DomName('WebGLProgram') 847 @DomName('WebGLProgram')
892 @Unstable 848 @Unstable
893 class Program native "WebGLProgram" { 849 class Program native "WebGLProgram" {
894 // To suppress missing implicit constructor warnings.
895 factory Program._() { throw new UnsupportedError("Not supported"); }
896 } 850 }
897 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 851 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
898 // for details. All rights reserved. Use of this source code is governed by a 852 // for details. All rights reserved. Use of this source code is governed by a
899 // BSD-style license that can be found in the LICENSE file. 853 // BSD-style license that can be found in the LICENSE file.
900 854
901 855
902 @DocsEditable 856 @DocsEditable
903 @DomName('WebGLRenderbuffer') 857 @DomName('WebGLRenderbuffer')
904 @Unstable 858 @Unstable
905 class Renderbuffer native "WebGLRenderbuffer" { 859 class Renderbuffer native "WebGLRenderbuffer" {
906 // To suppress missing implicit constructor warnings.
907 factory Renderbuffer._() { throw new UnsupportedError("Not supported"); }
908 } 860 }
909 // 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
910 // 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
911 // BSD-style license that can be found in the LICENSE file. 863 // BSD-style license that can be found in the LICENSE file.
912 864
913 865
914 @DocsEditable 866 @DocsEditable
915 @DomName('WebGLRenderingContext') 867 @DomName('WebGLRenderingContext')
916 @SupportedBrowser(SupportedBrowser.CHROME) 868 @SupportedBrowser(SupportedBrowser.CHROME)
917 @SupportedBrowser(SupportedBrowser.FIREFOX) 869 @SupportedBrowser(SupportedBrowser.FIREFOX)
918 @Experimental 870 @Experimental
919 @Unstable 871 @Unstable
920 class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont ext" { 872 class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont ext" {
921 // To suppress missing implicit constructor warnings.
922 factory RenderingContext._() { throw new UnsupportedError("Not supported"); }
923 873
924 /// Checks if this type is supported on the current platform. 874 /// Checks if this type is supported on the current platform.
925 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)'); 875 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)');
926 876
927 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES') 877 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES')
928 @DocsEditable 878 @DocsEditable
929 static const int ACTIVE_ATTRIBUTES = 0x8B89; 879 static const int ACTIVE_ATTRIBUTES = 0x8B89;
930 880
931 @DomName('WebGLRenderingContext.ACTIVE_TEXTURE') 881 @DomName('WebGLRenderingContext.ACTIVE_TEXTURE')
932 @DocsEditable 882 @DocsEditable
(...skipping 1828 matching lines...) Expand 10 before | Expand all | Expand 10 after
2761 void viewport(int x, int y, int width, int height) native; 2711 void viewport(int x, int y, int width, int height) native;
2762 } 2712 }
2763 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2764 // for details. All rights reserved. Use of this source code is governed by a 2714 // for details. All rights reserved. Use of this source code is governed by a
2765 // BSD-style license that can be found in the LICENSE file. 2715 // BSD-style license that can be found in the LICENSE file.
2766 2716
2767 2717
2768 @DocsEditable 2718 @DocsEditable
2769 @DomName('WebGLShader') 2719 @DomName('WebGLShader')
2770 class Shader native "WebGLShader" { 2720 class Shader native "WebGLShader" {
2771 // To suppress missing implicit constructor warnings.
2772 factory Shader._() { throw new UnsupportedError("Not supported"); }
2773 } 2721 }
2774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2722 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2775 // for details. All rights reserved. Use of this source code is governed by a 2723 // for details. All rights reserved. Use of this source code is governed by a
2776 // BSD-style license that can be found in the LICENSE file. 2724 // BSD-style license that can be found in the LICENSE file.
2777 2725
2778 2726
2779 @DocsEditable 2727 @DocsEditable
2780 @DomName('WebGLShaderPrecisionFormat') 2728 @DomName('WebGLShaderPrecisionFormat')
2781 class ShaderPrecisionFormat native "WebGLShaderPrecisionFormat" { 2729 class ShaderPrecisionFormat native "WebGLShaderPrecisionFormat" {
2782 // To suppress missing implicit constructor warnings.
2783 factory ShaderPrecisionFormat._() { throw new UnsupportedError("Not supported" ); }
2784 2730
2785 @DomName('WebGLShaderPrecisionFormat.precision') 2731 @DomName('WebGLShaderPrecisionFormat.precision')
2786 @DocsEditable 2732 @DocsEditable
2787 final int precision; 2733 final int precision;
2788 2734
2789 @DomName('WebGLShaderPrecisionFormat.rangeMax') 2735 @DomName('WebGLShaderPrecisionFormat.rangeMax')
2790 @DocsEditable 2736 @DocsEditable
2791 final int rangeMax; 2737 final int rangeMax;
2792 2738
2793 @DomName('WebGLShaderPrecisionFormat.rangeMin') 2739 @DomName('WebGLShaderPrecisionFormat.rangeMin')
2794 @DocsEditable 2740 @DocsEditable
2795 final int rangeMin; 2741 final int rangeMin;
2796 } 2742 }
2797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2743 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2798 // for details. All rights reserved. Use of this source code is governed by a 2744 // for details. All rights reserved. Use of this source code is governed by a
2799 // BSD-style license that can be found in the LICENSE file. 2745 // BSD-style license that can be found in the LICENSE file.
2800 2746
2801 2747
2802 @DocsEditable 2748 @DocsEditable
2803 @DomName('WebGLTexture') 2749 @DomName('WebGLTexture')
2804 class Texture native "WebGLTexture" { 2750 class Texture native "WebGLTexture" {
2805 // To suppress missing implicit constructor warnings.
2806 factory Texture._() { throw new UnsupportedError("Not supported"); }
2807 } 2751 }
2808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2752 // 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 2753 // 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. 2754 // BSD-style license that can be found in the LICENSE file.
2811 2755
2812 2756
2813 @DocsEditable 2757 @DocsEditable
2814 @DomName('WebGLUniformLocation') 2758 @DomName('WebGLUniformLocation')
2815 class UniformLocation native "WebGLUniformLocation" { 2759 class UniformLocation native "WebGLUniformLocation" {
2816 // To suppress missing implicit constructor warnings.
2817 factory UniformLocation._() { throw new UnsupportedError("Not supported"); }
2818 } 2760 }
2819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2761 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2820 // for details. All rights reserved. Use of this source code is governed by a 2762 // for details. All rights reserved. Use of this source code is governed by a
2821 // BSD-style license that can be found in the LICENSE file. 2763 // BSD-style license that can be found in the LICENSE file.
2822 2764
2823 2765
2824 @DocsEditable 2766 @DocsEditable
2825 @DomName('WebGLVertexArrayObjectOES') 2767 @DomName('WebGLVertexArrayObjectOES')
2826 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 2768 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
2827 @Experimental // experimental 2769 @Experimental // experimental
2828 class VertexArrayObject native "WebGLVertexArrayObjectOES" { 2770 class VertexArrayObject native "WebGLVertexArrayObjectOES" {
2829 // To suppress missing implicit constructor warnings.
2830 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); }
2831 } 2771 }
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