| OLD | NEW |
| 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 { |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 } | 563 } |
| 564 throw "Incorrect number or type of arguments"; | 564 throw "Incorrect number or type of arguments"; |
| 565 } | 565 } |
| 566 static void _setFillColor(receiver, c_OR_color_OR_grayLevel_OR_r) native; | 566 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; | 567 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; | 568 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; | 569 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; | 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; |
| 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; | 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; |
| 572 | 572 |
| 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) { | 573 void setLineCap(String cap) { |
| 595 _setLineCap(this, cap); | 574 _setLineCap(this, cap); |
| 596 return; | 575 return; |
| 597 } | 576 } |
| 598 static void _setLineCap(receiver, cap) native; | 577 static void _setLineCap(receiver, cap) native; |
| 599 | 578 |
| 600 void setLineJoin(String join) { | 579 void setLineJoin(String join) { |
| 601 _setLineJoin(this, join); | 580 _setLineJoin(this, join); |
| 602 return; | 581 return; |
| 603 } | 582 } |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 } | 723 } |
| 745 throw "Incorrect number or type of arguments"; | 724 throw "Incorrect number or type of arguments"; |
| 746 } | 725 } |
| 747 static void _setStrokeColor(receiver, c_OR_color_OR_grayLevel_OR_r) native; | 726 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; | 727 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; | 728 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; | 729 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; | 730 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; | 731 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 | 732 |
| 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) { | 733 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) { |
| 776 _setTransform(this, m11, m12, m21, m22, dx, dy); | 734 _setTransform(this, m11, m12, m21, m22, dx, dy); |
| 777 return; | 735 return; |
| 778 } | 736 } |
| 779 static void _setTransform(receiver, m11, m12, m21, m22, dx, dy) native; | 737 static void _setTransform(receiver, m11, m12, m21, m22, dx, dy) native; |
| 780 | 738 |
| 781 void stroke() { | 739 void stroke() { |
| 782 _stroke(this); | 740 _stroke(this); |
| 783 return; | 741 return; |
| 784 } | 742 } |
| (...skipping 30 matching lines...) Expand all Loading... |
| 815 static void _transform(receiver, m11, m12, m21, m22, dx, dy) native; | 773 static void _transform(receiver, m11, m12, m21, m22, dx, dy) native; |
| 816 | 774 |
| 817 void translate(num tx, num ty) { | 775 void translate(num tx, num ty) { |
| 818 _translate(this, tx, ty); | 776 _translate(this, tx, ty); |
| 819 return; | 777 return; |
| 820 } | 778 } |
| 821 static void _translate(receiver, tx, ty) native; | 779 static void _translate(receiver, tx, ty) native; |
| 822 | 780 |
| 823 String get typeName() { return "CanvasRenderingContext2D"; } | 781 String get typeName() { return "CanvasRenderingContext2D"; } |
| 824 } | 782 } |
| OLD | NEW |