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

Side by Side Diff: client/html/generated/html/frog/CanvasRenderingContext2D.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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
(Empty)
1
2 class _CanvasRenderingContext2DImpl extends _CanvasRenderingContextImpl implemen ts CanvasRenderingContext2D native "*CanvasRenderingContext2D" {
3
4 Dynamic fillStyle;
5
6 String font;
7
8 num globalAlpha;
9
10 String globalCompositeOperation;
11
12 String lineCap;
13
14 String lineJoin;
15
16 num lineWidth;
17
18 num miterLimit;
19
20 num shadowBlur;
21
22 String shadowColor;
23
24 num shadowOffsetX;
25
26 num shadowOffsetY;
27
28 Dynamic strokeStyle;
29
30 String textAlign;
31
32 String textBaseline;
33
34 List webkitLineDash;
35
36 num webkitLineDashOffset;
37
38 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) native;
39
40 void arcTo(num x1, num y1, num x2, num y2, num radius) native;
41
42 void beginPath() native;
43
44 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e;
45
46 void clearRect(num x, num y, num width, num height) native;
47
48 void clearShadow() native;
49
50 void clip() native;
51
52 void closePath() native;
53
54 _ImageDataImpl createImageData(var imagedata_OR_sw, [num sh = null]) native;
55
56 _CanvasGradientImpl createLinearGradient(num x0, num y0, num x1, num y1) nativ e;
57
58 _CanvasPatternImpl createPattern(var canvas_OR_image, String repetitionType) n ative;
59
60 _CanvasGradientImpl createRadialGradient(num x0, num y0, num r0, num x1, num y 1, num r1) native;
61
62 void drawImage(var canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw _OR_width = null, num height_OR_sh = null, num dx = null, num dy = null, num dw = null, num dh = null]) native;
63
64 void drawImageFromRect(_ImageElementImpl image, [num sx = null, num sy = null, num sw = null, num sh = null, num dx = null, num dy = null, num dw = null, num dh = null, String compositeOperation = null]) native;
65
66 void fill() native;
67
68 void fillRect(num x, num y, num width, num height) native;
69
70 void fillText(String text, num x, num y, [num maxWidth = null]) native;
71
72 _ImageDataImpl getImageData(num sx, num sy, num sw, num sh) native;
73
74 bool isPointInPath(num x, num y) native;
75
76 void lineTo(num x, num y) native;
77
78 _TextMetricsImpl measureText(String text) native;
79
80 void moveTo(num x, num y) native;
81
82 void putImageData(_ImageDataImpl imagedata, num dx, num dy, [num dirtyX = null , num dirtyY = null, num dirtyWidth = null, num dirtyHeight = null]) native;
83
84 void quadraticCurveTo(num cpx, num cpy, num x, num y) native;
85
86 void rect(num x, num y, num width, num height) native;
87
88 void restore() native;
89
90 void rotate(num angle) native;
91
92 void save() native;
93
94 void scale(num sx, num sy) native;
95
96 void setAlpha(num alpha) native;
97
98 void setCompositeOperation(String compositeOperation) native;
99
100 void setFillColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = nul l, num b_OR_y = null, num a_OR_k = null, num a = null]) native;
101
102 void setLineCap(String cap) native;
103
104 void setLineJoin(String join) native;
105
106 void setLineWidth(num width) native;
107
108 void setMiterLimit(num limit) native;
109
110 void setShadow(num width, num height, num blur, [var c_OR_color_OR_grayLevel_O R_r = null, num alpha_OR_g_OR_m = null, num b_OR_y = null, num a_OR_k = null, nu m a = null]) native;
111
112 void setStrokeColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = n ull, num b_OR_y = null, num a_OR_k = null, num a = null]) native;
113
114 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native;
115
116 void stroke() native;
117
118 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n ative;
119
120 void strokeText(String text, num x, num y, [num maxWidth = null]) native;
121
122 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native;
123
124 void translate(num tx, num ty) native;
125 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698