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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 12719002: Update context2d.arc to take optional anticlockwise parameter (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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:
Download patch
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index fdd1df8b008e77ef5a4ea6cd91f3eab296d4a3ff..62b4f1c63cd2cdbb00fc2e92ab668029be3bf765 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -1197,9 +1197,10 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen
@Experimental
List lineDash;
+ @JSName('arc')
@DomName('CanvasRenderingContext2D.arc')
@DocsEditable
- void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) native;
+ void $dom_arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) native;
@DomName('CanvasRenderingContext2D.arcTo')
@DocsEditable
@@ -1473,6 +1474,13 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen
this.strokeStyle = 'hsla($h, $s%, $l%, $a)';
}
+ @DomName('CanvasRenderingContext2D.arc')
+ void arc(num x, num y, num radius, num startAngle, num endAngle,
+ [bool anticlockwise: false]) {
+ $dom_arc(x, y, radius, startAngle, endAngle, anticlockwise);
+ }
+
+
@DomName('CanvasRenderingContext2D.lineDashOffset')
num get lineDashOffset => JS('num',
'#.lineDashOffset || #.webkitLineDashOffset', this, this);

Powered by Google App Engine
This is Rietveld 408576698