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

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

Issue 13973017: Revert "Revert "Allow multiple tags in native clause."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 8 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:typeddata'; 7 import 'dart:typeddata';
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 // DO NOT EDIT - unless you are editing documentation as per: 10 // DO NOT EDIT - unless you are editing documentation as per:
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 const int VERTEX_SHADER = RenderingContext.VERTEX_SHADER; 316 const int VERTEX_SHADER = RenderingContext.VERTEX_SHADER;
317 const int VIEWPORT = RenderingContext.VIEWPORT; 317 const int VIEWPORT = RenderingContext.VIEWPORT;
318 const int ZERO = RenderingContext.ZERO; 318 const int ZERO = RenderingContext.ZERO;
319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
320 // for details. All rights reserved. Use of this source code is governed by a 320 // for details. All rights reserved. Use of this source code is governed by a
321 // BSD-style license that can be found in the LICENSE file. 321 // BSD-style license that can be found in the LICENSE file.
322 322
323 323
324 @DocsEditable 324 @DocsEditable
325 @DomName('WebGLActiveInfo') 325 @DomName('WebGLActiveInfo')
326 class ActiveInfo native "*WebGLActiveInfo" { 326 class ActiveInfo native "WebGLActiveInfo" {
327 327
328 @DomName('WebGLActiveInfo.name') 328 @DomName('WebGLActiveInfo.name')
329 @DocsEditable 329 @DocsEditable
330 final String name; 330 final String name;
331 331
332 @DomName('WebGLActiveInfo.size') 332 @DomName('WebGLActiveInfo.size')
333 @DocsEditable 333 @DocsEditable
334 final int size; 334 final int size;
335 335
336 @DomName('WebGLActiveInfo.type') 336 @DomName('WebGLActiveInfo.type')
337 @DocsEditable 337 @DocsEditable
338 final int type; 338 final int type;
339 } 339 }
340 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 340 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
341 // for details. All rights reserved. Use of this source code is governed by a 341 // for details. All rights reserved. Use of this source code is governed by a
342 // BSD-style license that can be found in the LICENSE file. 342 // BSD-style license that can be found in the LICENSE file.
343 343
344 344
345 @DocsEditable 345 @DocsEditable
346 @DomName('WebGLBuffer') 346 @DomName('WebGLBuffer')
347 class Buffer native "*WebGLBuffer" { 347 class Buffer native "WebGLBuffer" {
348 } 348 }
349 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 349 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
350 // for details. All rights reserved. Use of this source code is governed by a 350 // for details. All rights reserved. Use of this source code is governed by a
351 // BSD-style license that can be found in the LICENSE file. 351 // BSD-style license that can be found in the LICENSE file.
352 352
353 353
354 @DocsEditable 354 @DocsEditable
355 @DomName('WebGLCompressedTextureATC') 355 @DomName('WebGLCompressedTextureATC')
356 class CompressedTextureAtc native "*WebGLCompressedTextureATC" { 356 class CompressedTextureAtc native "WebGLCompressedTextureATC" {
357 357
358 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93; 358 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93;
359 359
360 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE; 360 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE;
361 361
362 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92; 362 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92;
363 } 363 }
364 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 364 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
365 // for details. All rights reserved. Use of this source code is governed by a 365 // for details. All rights reserved. Use of this source code is governed by a
366 // BSD-style license that can be found in the LICENSE file. 366 // BSD-style license that can be found in the LICENSE file.
367 367
368 368
369 @DocsEditable 369 @DocsEditable
370 @DomName('WebGLCompressedTexturePVRTC') 370 @DomName('WebGLCompressedTexturePVRTC')
371 class CompressedTexturePvrtc native "*WebGLCompressedTexturePVRTC" { 371 class CompressedTexturePvrtc native "WebGLCompressedTexturePVRTC" {
372 372
373 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03; 373 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03;
374 374
375 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02; 375 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02;
376 376
377 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01; 377 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01;
378 378
379 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00; 379 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00;
380 } 380 }
381 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 381 // 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 382 // 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. 383 // BSD-style license that can be found in the LICENSE file.
384 384
385 385
386 @DocsEditable 386 @DocsEditable
387 @DomName('WebGLCompressedTextureS3TC') 387 @DomName('WebGLCompressedTextureS3TC')
388 class CompressedTextureS3TC native "*WebGLCompressedTextureS3TC" { 388 class CompressedTextureS3TC native "WebGLCompressedTextureS3TC" {
389 389
390 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; 390 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
391 391
392 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; 392 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
393 393
394 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; 394 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
395 395
396 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; 396 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
397 } 397 }
398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
399 // for details. All rights reserved. Use of this source code is governed by a 399 // for details. All rights reserved. Use of this source code is governed by a
400 // BSD-style license that can be found in the LICENSE file. 400 // BSD-style license that can be found in the LICENSE file.
401 401
402 402
403 @DocsEditable 403 @DocsEditable
404 @DomName('WebGLContextAttributes') 404 @DomName('WebGLContextAttributes')
405 class ContextAttributes native "*WebGLContextAttributes" { 405 class ContextAttributes native "WebGLContextAttributes" {
406 406
407 @DomName('WebGLContextAttributes.alpha') 407 @DomName('WebGLContextAttributes.alpha')
408 @DocsEditable 408 @DocsEditable
409 bool alpha; 409 bool alpha;
410 410
411 @DomName('WebGLContextAttributes.antialias') 411 @DomName('WebGLContextAttributes.antialias')
412 @DocsEditable 412 @DocsEditable
413 bool antialias; 413 bool antialias;
414 414
415 @DomName('WebGLContextAttributes.depth') 415 @DomName('WebGLContextAttributes.depth')
(...skipping 12 matching lines...) Expand all
428 @DocsEditable 428 @DocsEditable
429 bool stencil; 429 bool stencil;
430 } 430 }
431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
432 // for details. All rights reserved. Use of this source code is governed by a 432 // for details. All rights reserved. Use of this source code is governed by a
433 // BSD-style license that can be found in the LICENSE file. 433 // BSD-style license that can be found in the LICENSE file.
434 434
435 435
436 @DocsEditable 436 @DocsEditable
437 @DomName('WebGLContextEvent') 437 @DomName('WebGLContextEvent')
438 class ContextEvent extends Event native "*WebGLContextEvent" { 438 class ContextEvent extends Event native "WebGLContextEvent" {
439 439
440 @DomName('WebGLContextEvent.statusMessage') 440 @DomName('WebGLContextEvent.statusMessage')
441 @DocsEditable 441 @DocsEditable
442 final String statusMessage; 442 final String statusMessage;
443 } 443 }
444 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 444 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
445 // for details. All rights reserved. Use of this source code is governed by a 445 // for details. All rights reserved. Use of this source code is governed by a
446 // BSD-style license that can be found in the LICENSE file. 446 // BSD-style license that can be found in the LICENSE file.
447 447
448 448
449 @DocsEditable 449 @DocsEditable
450 @DomName('WebGLDebugRendererInfo') 450 @DomName('WebGLDebugRendererInfo')
451 class DebugRendererInfo native "*WebGLDebugRendererInfo" { 451 class DebugRendererInfo native "WebGLDebugRendererInfo" {
452 452
453 static const int UNMASKED_RENDERER_WEBGL = 0x9246; 453 static const int UNMASKED_RENDERER_WEBGL = 0x9246;
454 454
455 static const int UNMASKED_VENDOR_WEBGL = 0x9245; 455 static const int UNMASKED_VENDOR_WEBGL = 0x9245;
456 } 456 }
457 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 457 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
458 // for details. All rights reserved. Use of this source code is governed by a 458 // for details. All rights reserved. Use of this source code is governed by a
459 // BSD-style license that can be found in the LICENSE file. 459 // BSD-style license that can be found in the LICENSE file.
460 460
461 461
462 @DocsEditable 462 @DocsEditable
463 @DomName('WebGLDebugShaders') 463 @DomName('WebGLDebugShaders')
464 class DebugShaders native "*WebGLDebugShaders" { 464 class DebugShaders native "WebGLDebugShaders" {
465 465
466 @DomName('WebGLDebugShaders.getTranslatedShaderSource') 466 @DomName('WebGLDebugShaders.getTranslatedShaderSource')
467 @DocsEditable 467 @DocsEditable
468 String getTranslatedShaderSource(Shader shader) native; 468 String getTranslatedShaderSource(Shader shader) native;
469 } 469 }
470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
471 // for details. All rights reserved. Use of this source code is governed by a 471 // for details. All rights reserved. Use of this source code is governed by a
472 // BSD-style license that can be found in the LICENSE file. 472 // BSD-style license that can be found in the LICENSE file.
473 473
474 474
475 @DocsEditable 475 @DocsEditable
476 @DomName('WebGLDepthTexture') 476 @DomName('WebGLDepthTexture')
477 class DepthTexture native "*WebGLDepthTexture" { 477 class DepthTexture native "WebGLDepthTexture" {
478 478
479 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; 479 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA;
480 } 480 }
481 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 481 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
482 // for details. All rights reserved. Use of this source code is governed by a 482 // for details. All rights reserved. Use of this source code is governed by a
483 // BSD-style license that can be found in the LICENSE file. 483 // BSD-style license that can be found in the LICENSE file.
484 484
485 485
486 @DocsEditable 486 @DocsEditable
487 @DomName('EXTDrawBuffers') 487 @DomName('EXTDrawBuffers')
488 class ExtDrawBuffers native "*EXTDrawBuffers" { 488 class ExtDrawBuffers native "EXTDrawBuffers" {
489 489
490 static const int COLOR_ATTACHMENT0_EXT = 0x8CE0; 490 static const int COLOR_ATTACHMENT0_EXT = 0x8CE0;
491 491
492 static const int COLOR_ATTACHMENT10_EXT = 0x8CEA; 492 static const int COLOR_ATTACHMENT10_EXT = 0x8CEA;
493 493
494 static const int COLOR_ATTACHMENT11_EXT = 0x8CEB; 494 static const int COLOR_ATTACHMENT11_EXT = 0x8CEB;
495 495
496 static const int COLOR_ATTACHMENT12_EXT = 0x8CEC; 496 static const int COLOR_ATTACHMENT12_EXT = 0x8CEC;
497 497
498 static const int COLOR_ATTACHMENT13_EXT = 0x8CED; 498 static const int COLOR_ATTACHMENT13_EXT = 0x8CED;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 555
556 static const int MAX_DRAW_BUFFERS_EXT = 0x8824; 556 static const int MAX_DRAW_BUFFERS_EXT = 0x8824;
557 } 557 }
558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
559 // for details. All rights reserved. Use of this source code is governed by a 559 // for details. All rights reserved. Use of this source code is governed by a
560 // BSD-style license that can be found in the LICENSE file. 560 // BSD-style license that can be found in the LICENSE file.
561 561
562 562
563 @DocsEditable 563 @DocsEditable
564 @DomName('EXTTextureFilterAnisotropic') 564 @DomName('EXTTextureFilterAnisotropic')
565 class ExtTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" { 565 class ExtTextureFilterAnisotropic native "EXTTextureFilterAnisotropic" {
566 566
567 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; 567 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
568 568
569 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; 569 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
570 } 570 }
571 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 571 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
572 // for details. All rights reserved. Use of this source code is governed by a 572 // for details. All rights reserved. Use of this source code is governed by a
573 // BSD-style license that can be found in the LICENSE file. 573 // BSD-style license that can be found in the LICENSE file.
574 574
575 575
576 @DocsEditable 576 @DocsEditable
577 @DomName('WebGLFramebuffer') 577 @DomName('WebGLFramebuffer')
578 class Framebuffer native "*WebGLFramebuffer" { 578 class Framebuffer native "WebGLFramebuffer" {
579 } 579 }
580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
581 // for details. All rights reserved. Use of this source code is governed by a 581 // for details. All rights reserved. Use of this source code is governed by a
582 // BSD-style license that can be found in the LICENSE file. 582 // BSD-style license that can be found in the LICENSE file.
583 583
584 584
585 @DocsEditable 585 @DocsEditable
586 @DomName('WebGLLoseContext') 586 @DomName('WebGLLoseContext')
587 class LoseContext native "*WebGLLoseContext" { 587 class LoseContext native "WebGLLoseContext" {
588 588
589 @DomName('WebGLLoseContext.loseContext') 589 @DomName('WebGLLoseContext.loseContext')
590 @DocsEditable 590 @DocsEditable
591 void loseContext() native; 591 void loseContext() native;
592 592
593 @DomName('WebGLLoseContext.restoreContext') 593 @DomName('WebGLLoseContext.restoreContext')
594 @DocsEditable 594 @DocsEditable
595 void restoreContext() native; 595 void restoreContext() native;
596 } 596 }
597 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 597 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
598 // for details. All rights reserved. Use of this source code is governed by a 598 // for details. All rights reserved. Use of this source code is governed by a
599 // BSD-style license that can be found in the LICENSE file. 599 // BSD-style license that can be found in the LICENSE file.
600 600
601 601
602 @DocsEditable 602 @DocsEditable
603 @DomName('OESElementIndexUint') 603 @DomName('OESElementIndexUint')
604 class OesElementIndexUint native "*OESElementIndexUint" { 604 class OesElementIndexUint native "OESElementIndexUint" {
605 } 605 }
606 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 606 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
607 // for details. All rights reserved. Use of this source code is governed by a 607 // for details. All rights reserved. Use of this source code is governed by a
608 // BSD-style license that can be found in the LICENSE file. 608 // BSD-style license that can be found in the LICENSE file.
609 609
610 610
611 @DocsEditable 611 @DocsEditable
612 @DomName('OESStandardDerivatives') 612 @DomName('OESStandardDerivatives')
613 class OesStandardDerivatives native "*OESStandardDerivatives" { 613 class OesStandardDerivatives native "OESStandardDerivatives" {
614 614
615 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; 615 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
616 } 616 }
617 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 617 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
618 // for details. All rights reserved. Use of this source code is governed by a 618 // for details. All rights reserved. Use of this source code is governed by a
619 // BSD-style license that can be found in the LICENSE file. 619 // BSD-style license that can be found in the LICENSE file.
620 620
621 621
622 @DocsEditable 622 @DocsEditable
623 @DomName('OESTextureFloat') 623 @DomName('OESTextureFloat')
624 class OesTextureFloat native "*OESTextureFloat" { 624 class OesTextureFloat native "OESTextureFloat" {
625 } 625 }
626 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 626 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
627 // for details. All rights reserved. Use of this source code is governed by a 627 // for details. All rights reserved. Use of this source code is governed by a
628 // BSD-style license that can be found in the LICENSE file. 628 // BSD-style license that can be found in the LICENSE file.
629 629
630 630
631 @DocsEditable 631 @DocsEditable
632 @DomName('OESTextureHalfFloat') 632 @DomName('OESTextureHalfFloat')
633 class OesTextureHalfFloat native "*OESTextureHalfFloat" { 633 class OesTextureHalfFloat native "OESTextureHalfFloat" {
634 } 634 }
635 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 635 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
636 // for details. All rights reserved. Use of this source code is governed by a 636 // for details. All rights reserved. Use of this source code is governed by a
637 // BSD-style license that can be found in the LICENSE file. 637 // BSD-style license that can be found in the LICENSE file.
638 638
639 639
640 @DocsEditable 640 @DocsEditable
641 @DomName('OESVertexArrayObject') 641 @DomName('OESVertexArrayObject')
642 class OesVertexArrayObject native "*OESVertexArrayObject" { 642 class OesVertexArrayObject native "OESVertexArrayObject" {
643 643
644 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; 644 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
645 645
646 @JSName('bindVertexArrayOES') 646 @JSName('bindVertexArrayOES')
647 @DomName('OESVertexArrayObject.bindVertexArrayOES') 647 @DomName('OESVertexArrayObject.bindVertexArrayOES')
648 @DocsEditable 648 @DocsEditable
649 void bindVertexArray(VertexArrayObject arrayObject) native; 649 void bindVertexArray(VertexArrayObject arrayObject) native;
650 650
651 @JSName('createVertexArrayOES') 651 @JSName('createVertexArrayOES')
652 @DomName('OESVertexArrayObject.createVertexArrayOES') 652 @DomName('OESVertexArrayObject.createVertexArrayOES')
(...skipping 10 matching lines...) Expand all
663 @DocsEditable 663 @DocsEditable
664 bool isVertexArray(VertexArrayObject arrayObject) native; 664 bool isVertexArray(VertexArrayObject arrayObject) native;
665 } 665 }
666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
667 // for details. All rights reserved. Use of this source code is governed by a 667 // for details. All rights reserved. Use of this source code is governed by a
668 // BSD-style license that can be found in the LICENSE file. 668 // BSD-style license that can be found in the LICENSE file.
669 669
670 670
671 @DocsEditable 671 @DocsEditable
672 @DomName('WebGLProgram') 672 @DomName('WebGLProgram')
673 class Program native "*WebGLProgram" { 673 class Program native "WebGLProgram" {
674 } 674 }
675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
676 // for details. All rights reserved. Use of this source code is governed by a 676 // for details. All rights reserved. Use of this source code is governed by a
677 // BSD-style license that can be found in the LICENSE file. 677 // BSD-style license that can be found in the LICENSE file.
678 678
679 679
680 @DocsEditable 680 @DocsEditable
681 @DomName('WebGLRenderbuffer') 681 @DomName('WebGLRenderbuffer')
682 class Renderbuffer native "*WebGLRenderbuffer" { 682 class Renderbuffer native "WebGLRenderbuffer" {
683 } 683 }
684 // 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
685 // 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
686 // BSD-style license that can be found in the LICENSE file. 686 // BSD-style license that can be found in the LICENSE file.
687 687
688 688
689 @DocsEditable 689 @DocsEditable
690 @DomName('WebGLRenderingContext') 690 @DomName('WebGLRenderingContext')
691 @SupportedBrowser(SupportedBrowser.CHROME) 691 @SupportedBrowser(SupportedBrowser.CHROME)
692 @SupportedBrowser(SupportedBrowser.FIREFOX) 692 @SupportedBrowser(SupportedBrowser.FIREFOX)
693 @Experimental 693 @Experimental
694 class RenderingContext extends CanvasRenderingContext native "*WebGLRenderingCon text" { 694 class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont ext" {
695 695
696 /// Checks if this type is supported on the current platform. 696 /// Checks if this type is supported on the current platform.
697 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)'); 697 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)');
698 698
699 static const int ACTIVE_ATTRIBUTES = 0x8B89; 699 static const int ACTIVE_ATTRIBUTES = 0x8B89;
700 700
701 static const int ACTIVE_TEXTURE = 0x84E0; 701 static const int ACTIVE_TEXTURE = 0x84E0;
702 702
703 static const int ACTIVE_UNIFORMS = 0x8B86; 703 static const int ACTIVE_UNIFORMS = 0x8B86;
704 704
(...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 @DocsEditable 1932 @DocsEditable
1933 void viewport(int x, int y, int width, int height) native; 1933 void viewport(int x, int y, int width, int height) native;
1934 } 1934 }
1935 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1935 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1936 // for details. All rights reserved. Use of this source code is governed by a 1936 // for details. All rights reserved. Use of this source code is governed by a
1937 // BSD-style license that can be found in the LICENSE file. 1937 // BSD-style license that can be found in the LICENSE file.
1938 1938
1939 1939
1940 @DocsEditable 1940 @DocsEditable
1941 @DomName('WebGLShader') 1941 @DomName('WebGLShader')
1942 class Shader native "*WebGLShader" { 1942 class Shader native "WebGLShader" {
1943 } 1943 }
1944 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1944 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1945 // for details. All rights reserved. Use of this source code is governed by a 1945 // for details. All rights reserved. Use of this source code is governed by a
1946 // BSD-style license that can be found in the LICENSE file. 1946 // BSD-style license that can be found in the LICENSE file.
1947 1947
1948 1948
1949 @DocsEditable 1949 @DocsEditable
1950 @DomName('WebGLShaderPrecisionFormat') 1950 @DomName('WebGLShaderPrecisionFormat')
1951 class ShaderPrecisionFormat native "*WebGLShaderPrecisionFormat" { 1951 class ShaderPrecisionFormat native "WebGLShaderPrecisionFormat" {
1952 1952
1953 @DomName('WebGLShaderPrecisionFormat.precision') 1953 @DomName('WebGLShaderPrecisionFormat.precision')
1954 @DocsEditable 1954 @DocsEditable
1955 final int precision; 1955 final int precision;
1956 1956
1957 @DomName('WebGLShaderPrecisionFormat.rangeMax') 1957 @DomName('WebGLShaderPrecisionFormat.rangeMax')
1958 @DocsEditable 1958 @DocsEditable
1959 final int rangeMax; 1959 final int rangeMax;
1960 1960
1961 @DomName('WebGLShaderPrecisionFormat.rangeMin') 1961 @DomName('WebGLShaderPrecisionFormat.rangeMin')
1962 @DocsEditable 1962 @DocsEditable
1963 final int rangeMin; 1963 final int rangeMin;
1964 } 1964 }
1965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1966 // for details. All rights reserved. Use of this source code is governed by a 1966 // for details. All rights reserved. Use of this source code is governed by a
1967 // BSD-style license that can be found in the LICENSE file. 1967 // BSD-style license that can be found in the LICENSE file.
1968 1968
1969 1969
1970 @DocsEditable 1970 @DocsEditable
1971 @DomName('WebGLTexture') 1971 @DomName('WebGLTexture')
1972 class Texture native "*WebGLTexture" { 1972 class Texture native "WebGLTexture" {
1973 } 1973 }
1974 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1974 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1975 // for details. All rights reserved. Use of this source code is governed by a 1975 // for details. All rights reserved. Use of this source code is governed by a
1976 // BSD-style license that can be found in the LICENSE file. 1976 // BSD-style license that can be found in the LICENSE file.
1977 1977
1978 1978
1979 @DocsEditable 1979 @DocsEditable
1980 @DomName('WebGLUniformLocation') 1980 @DomName('WebGLUniformLocation')
1981 class UniformLocation native "*WebGLUniformLocation" { 1981 class UniformLocation native "WebGLUniformLocation" {
1982 } 1982 }
1983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1984 // for details. All rights reserved. Use of this source code is governed by a 1984 // for details. All rights reserved. Use of this source code is governed by a
1985 // BSD-style license that can be found in the LICENSE file. 1985 // BSD-style license that can be found in the LICENSE file.
1986 1986
1987 1987
1988 @DocsEditable 1988 @DocsEditable
1989 @DomName('WebGLVertexArrayObjectOES') 1989 @DomName('WebGLVertexArrayObjectOES')
1990 class VertexArrayObject native "*WebGLVertexArrayObjectOES" { 1990 class VertexArrayObject native "WebGLVertexArrayObjectOES" {
1991 } 1991 }
OLDNEW
« no previous file with comments | « sdk/lib/web_audio/dart2js/web_audio_dart2js.dart ('k') | sdk/lib/web_sql/dart2js/web_sql_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698