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

Side by Side Diff: client/dom/generated/src/frog/CanvasRenderingContext2D.dart

Issue 9312003: Use fields in hidden native DOM classes instead of getters/setters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also fix native Created 8 years, 10 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 1
2 class _CanvasRenderingContext2DJs extends _CanvasRenderingContextJs implements C anvasRenderingContext2D native "*CanvasRenderingContext2D" { 2 class _CanvasRenderingContext2DJs extends _CanvasRenderingContextJs implements C anvasRenderingContext2D native "*CanvasRenderingContext2D" {
3 3
4 Dynamic get fillStyle() native "return this.fillStyle;"; 4 Dynamic fillStyle;
5 5
6 void set fillStyle(Dynamic value) native "this.fillStyle = value;"; 6 String font;
7 7
8 String get font() native "return this.font;"; 8 num globalAlpha;
9 9
10 void set font(String value) native "this.font = value;"; 10 String globalCompositeOperation;
11 11
12 num get globalAlpha() native "return this.globalAlpha;"; 12 String lineCap;
13 13
14 void set globalAlpha(num value) native "this.globalAlpha = value;"; 14 String lineJoin;
15 15
16 String get globalCompositeOperation() native "return this.globalCompositeOpera tion;"; 16 num lineWidth;
17 17
18 void set globalCompositeOperation(String value) native "this.globalCompositeOp eration = value;"; 18 num miterLimit;
19 19
20 String get lineCap() native "return this.lineCap;"; 20 num shadowBlur;
21 21
22 void set lineCap(String value) native "this.lineCap = value;"; 22 String shadowColor;
23 23
24 String get lineJoin() native "return this.lineJoin;"; 24 num shadowOffsetX;
25 25
26 void set lineJoin(String value) native "this.lineJoin = value;"; 26 num shadowOffsetY;
27 27
28 num get lineWidth() native "return this.lineWidth;"; 28 Dynamic strokeStyle;
29 29
30 void set lineWidth(num value) native "this.lineWidth = value;"; 30 String textAlign;
31 31
32 num get miterLimit() native "return this.miterLimit;"; 32 String textBaseline;
33 33
34 void set miterLimit(num value) native "this.miterLimit = value;"; 34 List webkitLineDash;
35 35
36 num get shadowBlur() native "return this.shadowBlur;"; 36 num webkitLineDashOffset;
37
38 void set shadowBlur(num value) native "this.shadowBlur = value;";
39
40 String get shadowColor() native "return this.shadowColor;";
41
42 void set shadowColor(String value) native "this.shadowColor = value;";
43
44 num get shadowOffsetX() native "return this.shadowOffsetX;";
45
46 void set shadowOffsetX(num value) native "this.shadowOffsetX = value;";
47
48 num get shadowOffsetY() native "return this.shadowOffsetY;";
49
50 void set shadowOffsetY(num value) native "this.shadowOffsetY = value;";
51
52 Dynamic get strokeStyle() native "return this.strokeStyle;";
53
54 void set strokeStyle(Dynamic value) native "this.strokeStyle = value;";
55
56 String get textAlign() native "return this.textAlign;";
57
58 void set textAlign(String value) native "this.textAlign = value;";
59
60 String get textBaseline() native "return this.textBaseline;";
61
62 void set textBaseline(String value) native "this.textBaseline = value;";
63
64 List get webkitLineDash() native "return this.webkitLineDash;";
65
66 void set webkitLineDash(List value) native "this.webkitLineDash = value;";
67
68 num get webkitLineDashOffset() native "return this.webkitLineDashOffset;";
69
70 void set webkitLineDashOffset(num value) native "this.webkitLineDashOffset = v alue;";
71 37
72 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) native; 38 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) native;
73 39
74 void arcTo(num x1, num y1, num x2, num y2, num radius) native; 40 void arcTo(num x1, num y1, num x2, num y2, num radius) native;
75 41
76 void beginPath() native; 42 void beginPath() native;
77 43
78 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e; 44 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e;
79 45
80 void clearRect(num x, num y, num width, num height) native; 46 void clearRect(num x, num y, num width, num height) native;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void stroke() native; 116 void stroke() native;
151 117
152 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n ative; 118 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n ative;
153 119
154 void strokeText(String text, num x, num y, [num maxWidth = null]) native; 120 void strokeText(String text, num x, num y, [num maxWidth = null]) native;
155 121
156 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; 122 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native;
157 123
158 void translate(num tx, num ty) native; 124 void translate(num tx, num ty) native;
159 } 125 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698