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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

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/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index e1219575b74eb244c8a0528ac508bc9c663c7e6c..840780204ee4013900a6c8be200bb7866cecb69a 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -1476,7 +1476,7 @@ class CanvasRenderingContext2D extends CanvasRenderingContext {
@DomName('CanvasRenderingContext2D.arc')
@DocsEditable
- void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) native "CanvasRenderingContext2D_arc_Callback";
+ void $dom_arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) native "CanvasRenderingContext2D_arc_Callback";
@DomName('CanvasRenderingContext2D.arcTo')
@DocsEditable
@@ -1874,6 +1874,13 @@ class CanvasRenderingContext2D extends CanvasRenderingContext {
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);
+ }
+
+
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a

Powered by Google App Engine
This is Rietveld 408576698