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

Side by Side Diff: client/dom/generated/src/wrapping/_CanvasRenderingContext2DWrappingImplementation.dart

Issue 8591026: Roll DOM APIs forward on IDL & update Frog DOM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change window and document to getters Created 9 years, 1 month 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 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 class _CanvasRenderingContext2DWrappingImplementation extends _CanvasRenderingCo ntextWrappingImplementation implements CanvasRenderingContext2D { 7 class _CanvasRenderingContext2DWrappingImplementation extends _CanvasRenderingCo ntextWrappingImplementation implements CanvasRenderingContext2D {
8 _CanvasRenderingContext2DWrappingImplementation() : super() {} 8 _CanvasRenderingContext2DWrappingImplementation() : super() {}
9 9
10 static create__CanvasRenderingContext2DWrappingImplementation() native { 10 static create__CanvasRenderingContext2DWrappingImplementation() native {
11 return new _CanvasRenderingContext2DWrappingImplementation(); 11 return new _CanvasRenderingContext2DWrappingImplementation();
12 } 12 }
13 13
14 Dynamic get fillStyle() { return _get__CanvasRenderingContext2D_fillStyle(this ); }
15 static Dynamic _get__CanvasRenderingContext2D_fillStyle(var _this) native;
16
17 void set fillStyle(Dynamic value) { _set__CanvasRenderingContext2D_fillStyle(t his, value); }
18 static void _set__CanvasRenderingContext2D_fillStyle(var _this, Dynamic value) native;
19
14 String get font() { return _get__CanvasRenderingContext2D_font(this); } 20 String get font() { return _get__CanvasRenderingContext2D_font(this); }
15 static String _get__CanvasRenderingContext2D_font(var _this) native; 21 static String _get__CanvasRenderingContext2D_font(var _this) native;
16 22
17 void set font(String value) { _set__CanvasRenderingContext2D_font(this, value) ; } 23 void set font(String value) { _set__CanvasRenderingContext2D_font(this, value) ; }
18 static void _set__CanvasRenderingContext2D_font(var _this, String value) nativ e; 24 static void _set__CanvasRenderingContext2D_font(var _this, String value) nativ e;
19 25
20 num get globalAlpha() { return _get__CanvasRenderingContext2D_globalAlpha(this ); } 26 num get globalAlpha() { return _get__CanvasRenderingContext2D_globalAlpha(this ); }
21 static num _get__CanvasRenderingContext2D_globalAlpha(var _this) native; 27 static num _get__CanvasRenderingContext2D_globalAlpha(var _this) native;
22 28
23 void set globalAlpha(num value) { _set__CanvasRenderingContext2D_globalAlpha(t his, value); } 29 void set globalAlpha(num value) { _set__CanvasRenderingContext2D_globalAlpha(t his, value); }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 76
71 void set shadowOffsetX(num value) { _set__CanvasRenderingContext2D_shadowOffse tX(this, value); } 77 void set shadowOffsetX(num value) { _set__CanvasRenderingContext2D_shadowOffse tX(this, value); }
72 static void _set__CanvasRenderingContext2D_shadowOffsetX(var _this, num value) native; 78 static void _set__CanvasRenderingContext2D_shadowOffsetX(var _this, num value) native;
73 79
74 num get shadowOffsetY() { return _get__CanvasRenderingContext2D_shadowOffsetY( this); } 80 num get shadowOffsetY() { return _get__CanvasRenderingContext2D_shadowOffsetY( this); }
75 static num _get__CanvasRenderingContext2D_shadowOffsetY(var _this) native; 81 static num _get__CanvasRenderingContext2D_shadowOffsetY(var _this) native;
76 82
77 void set shadowOffsetY(num value) { _set__CanvasRenderingContext2D_shadowOffse tY(this, value); } 83 void set shadowOffsetY(num value) { _set__CanvasRenderingContext2D_shadowOffse tY(this, value); }
78 static void _set__CanvasRenderingContext2D_shadowOffsetY(var _this, num value) native; 84 static void _set__CanvasRenderingContext2D_shadowOffsetY(var _this, num value) native;
79 85
86 Dynamic get strokeStyle() { return _get__CanvasRenderingContext2D_strokeStyle( this); }
87 static Dynamic _get__CanvasRenderingContext2D_strokeStyle(var _this) native;
88
89 void set strokeStyle(Dynamic value) { _set__CanvasRenderingContext2D_strokeSty le(this, value); }
90 static void _set__CanvasRenderingContext2D_strokeStyle(var _this, Dynamic valu e) native;
91
80 String get textAlign() { return _get__CanvasRenderingContext2D_textAlign(this) ; } 92 String get textAlign() { return _get__CanvasRenderingContext2D_textAlign(this) ; }
81 static String _get__CanvasRenderingContext2D_textAlign(var _this) native; 93 static String _get__CanvasRenderingContext2D_textAlign(var _this) native;
82 94
83 void set textAlign(String value) { _set__CanvasRenderingContext2D_textAlign(th is, value); } 95 void set textAlign(String value) { _set__CanvasRenderingContext2D_textAlign(th is, value); }
84 static void _set__CanvasRenderingContext2D_textAlign(var _this, String value) native; 96 static void _set__CanvasRenderingContext2D_textAlign(var _this, String value) native;
85 97
86 String get textBaseline() { return _get__CanvasRenderingContext2D_textBaseline (this); } 98 String get textBaseline() { return _get__CanvasRenderingContext2D_textBaseline (this); }
87 static String _get__CanvasRenderingContext2D_textBaseline(var _this) native; 99 static String _get__CanvasRenderingContext2D_textBaseline(var _this) native;
88 100
89 void set textBaseline(String value) { _set__CanvasRenderingContext2D_textBasel ine(this, value); } 101 void set textBaseline(String value) { _set__CanvasRenderingContext2D_textBasel ine(this, value); }
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 } 575 }
564 throw "Incorrect number or type of arguments"; 576 throw "Incorrect number or type of arguments";
565 } 577 }
566 static void _setFillColor(receiver, c_OR_color_OR_grayLevel_OR_r) native; 578 static void _setFillColor(receiver, c_OR_color_OR_grayLevel_OR_r) native;
567 static void _setFillColor_2(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g _OR_m) native; 579 static void _setFillColor_2(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g _OR_m) native;
568 static void _setFillColor_3(receiver, c_OR_color_OR_grayLevel_OR_r) native; 580 static void _setFillColor_3(receiver, c_OR_color_OR_grayLevel_OR_r) native;
569 static void _setFillColor_4(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g _OR_m) native; 581 static void _setFillColor_4(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g _OR_m) native;
570 static void _setFillColor_5(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g _OR_m, b_OR_y, a_OR_k) native; 582 static void _setFillColor_5(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g _OR_m, b_OR_y, a_OR_k) native;
571 static void _setFillColor_6(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g _OR_m, b_OR_y, a_OR_k, a) native; 583 static void _setFillColor_6(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR_g _OR_m, b_OR_y, a_OR_k, a) native;
572 584
573 void setFillStyle(var color_OR_gradient_OR_pattern) {
574 if (color_OR_gradient_OR_pattern is String) {
575 _setFillStyle(this, color_OR_gradient_OR_pattern);
576 return;
577 } else {
578 if (color_OR_gradient_OR_pattern is CanvasGradient) {
579 _setFillStyle_2(this, color_OR_gradient_OR_pattern);
580 return;
581 } else {
582 if (color_OR_gradient_OR_pattern is CanvasPattern) {
583 _setFillStyle_3(this, color_OR_gradient_OR_pattern);
584 return;
585 }
586 }
587 }
588 throw "Incorrect number or type of arguments";
589 }
590 static void _setFillStyle(receiver, color_OR_gradient_OR_pattern) native;
591 static void _setFillStyle_2(receiver, color_OR_gradient_OR_pattern) native;
592 static void _setFillStyle_3(receiver, color_OR_gradient_OR_pattern) native;
593
594 void setLineCap(String cap) { 585 void setLineCap(String cap) {
595 _setLineCap(this, cap); 586 _setLineCap(this, cap);
596 return; 587 return;
597 } 588 }
598 static void _setLineCap(receiver, cap) native; 589 static void _setLineCap(receiver, cap) native;
599 590
600 void setLineJoin(String join) { 591 void setLineJoin(String join) {
601 _setLineJoin(this, join); 592 _setLineJoin(this, join);
602 return; 593 return;
603 } 594 }
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 } 735 }
745 throw "Incorrect number or type of arguments"; 736 throw "Incorrect number or type of arguments";
746 } 737 }
747 static void _setStrokeColor(receiver, c_OR_color_OR_grayLevel_OR_r) native; 738 static void _setStrokeColor(receiver, c_OR_color_OR_grayLevel_OR_r) native;
748 static void _setStrokeColor_2(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR _g_OR_m) native; 739 static void _setStrokeColor_2(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR _g_OR_m) native;
749 static void _setStrokeColor_3(receiver, c_OR_color_OR_grayLevel_OR_r) native; 740 static void _setStrokeColor_3(receiver, c_OR_color_OR_grayLevel_OR_r) native;
750 static void _setStrokeColor_4(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR _g_OR_m) native; 741 static void _setStrokeColor_4(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR _g_OR_m) native;
751 static void _setStrokeColor_5(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR _g_OR_m, b_OR_y, a_OR_k) native; 742 static void _setStrokeColor_5(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR _g_OR_m, b_OR_y, a_OR_k) native;
752 static void _setStrokeColor_6(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR _g_OR_m, b_OR_y, a_OR_k, a) native; 743 static void _setStrokeColor_6(receiver, c_OR_color_OR_grayLevel_OR_r, alpha_OR _g_OR_m, b_OR_y, a_OR_k, a) native;
753 744
754 void setStrokeStyle(var color_OR_gradient_OR_pattern) {
755 if (color_OR_gradient_OR_pattern is String) {
756 _setStrokeStyle(this, color_OR_gradient_OR_pattern);
757 return;
758 } else {
759 if (color_OR_gradient_OR_pattern is CanvasGradient) {
760 _setStrokeStyle_2(this, color_OR_gradient_OR_pattern);
761 return;
762 } else {
763 if (color_OR_gradient_OR_pattern is CanvasPattern) {
764 _setStrokeStyle_3(this, color_OR_gradient_OR_pattern);
765 return;
766 }
767 }
768 }
769 throw "Incorrect number or type of arguments";
770 }
771 static void _setStrokeStyle(receiver, color_OR_gradient_OR_pattern) native;
772 static void _setStrokeStyle_2(receiver, color_OR_gradient_OR_pattern) native;
773 static void _setStrokeStyle_3(receiver, color_OR_gradient_OR_pattern) native;
774
775 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) { 745 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) {
776 _setTransform(this, m11, m12, m21, m22, dx, dy); 746 _setTransform(this, m11, m12, m21, m22, dx, dy);
777 return; 747 return;
778 } 748 }
779 static void _setTransform(receiver, m11, m12, m21, m22, dx, dy) native; 749 static void _setTransform(receiver, m11, m12, m21, m22, dx, dy) native;
780 750
781 void stroke() { 751 void stroke() {
782 _stroke(this); 752 _stroke(this);
783 return; 753 return;
784 } 754 }
(...skipping 30 matching lines...) Expand all
815 static void _transform(receiver, m11, m12, m21, m22, dx, dy) native; 785 static void _transform(receiver, m11, m12, m21, m22, dx, dy) native;
816 786
817 void translate(num tx, num ty) { 787 void translate(num tx, num ty) {
818 _translate(this, tx, ty); 788 _translate(this, tx, ty);
819 return; 789 return;
820 } 790 }
821 static void _translate(receiver, tx, ty) native; 791 static void _translate(receiver, tx, ty) native;
822 792
823 String get typeName() { return "CanvasRenderingContext2D"; } 793 String get typeName() { return "CanvasRenderingContext2D"; }
824 } 794 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698