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

Unified Diff: sdk/lib/html/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate

Issue 11691009: Moved most of html lib generating scripts into tools. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/html/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate b/sdk/lib/html/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate
deleted file mode 100644
index eb5ad083469b7f38e5a888f96ee03de567c6e8d9..0000000000000000000000000000000000000000
--- a/sdk/lib/html/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate
+++ /dev/null
@@ -1,46 +0,0 @@
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-part of html;
-
-/// @domName $DOMNAME
-class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
-$!MEMBERS
-
- /**
- * Sets the color used inside shapes.
- * [r], [g], [b] are 0-255, [a] is 0-1.
- */
- void setFillColorRgb(int r, int g, int b, [num a = 1]) {
- this.fillStyle = 'rgba($r, $g, $b, $a)';
- }
-
- /**
- * Sets the color used inside shapes.
- * [h] is in degrees, 0-360.
- * [s], [l] are in percent, 0-100.
- * [a] is 0-1.
- */
- void setFillColorHsl(int h, num s, num l, [num a = 1]) {
- this.fillStyle = 'hsla($h, $s%, $l%, $a)';
- }
-
- /**
- * Sets the color used for stroking shapes.
- * [r], [g], [b] are 0-255, [a] is 0-1.
- */
- void setStrokeColorRgb(int r, int g, int b, [num a = 1]) {
- this.strokeStyle = 'rgba($r, $g, $b, $a)';
- }
-
- /**
- * Sets the color used for stroking shapes.
- * [h] is in degrees, 0-360.
- * [s], [l] are in percent, 0-100.
- * [a] is 0-1.
- */
- void setStrokeColorHsl(int h, num s, num l, [num a = 1]) {
- this.strokeStyle = 'hsla($h, $s%, $l%, $a)';
- }
-}

Powered by Google App Engine
This is Rietveld 408576698