| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ | 7 abstract class CanvasRenderingContext { |
| 8 CanvasElement get canvas; |
| 9 } |
| 10 |
| 11 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements
CanvasRenderingContext { |
| 8 $!MEMBERS | 12 $!MEMBERS |
| 9 | 13 |
| 10 /** | 14 /** |
| 11 * Sets the color used inside shapes. | 15 * Sets the color used inside shapes. |
| 12 * [r], [g], [b] are 0-255, [a] is 0-1. | 16 * [r], [g], [b] are 0-255, [a] is 0-1. |
| 13 */ | 17 */ |
| 14 void setFillColorRgb(int r, int g, int b, [num a = 1]) { | 18 void setFillColorRgb(int r, int g, int b, [num a = 1]) { |
| 15 this.fillStyle = 'rgba($r, $g, $b, $a)'; | 19 this.fillStyle = 'rgba($r, $g, $b, $a)'; |
| 16 } | 20 } |
| 17 | 21 |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 JS('void', '#.fill(#)', this, winding); | 354 JS('void', '#.fill(#)', this, winding); |
| 351 } | 355 } |
| 352 $endif | 356 $endif |
| 353 | 357 |
| 354 /** Deprecated always returns 1.0 */ | 358 /** Deprecated always returns 1.0 */ |
| 355 @DomName('CanvasRenderingContext2D.webkitBackingStorePixelRation') | 359 @DomName('CanvasRenderingContext2D.webkitBackingStorePixelRation') |
| 356 @Experimental() | 360 @Experimental() |
| 357 @deprecated | 361 @deprecated |
| 358 double get backingStorePixelRatio => 1.0; | 362 double get backingStorePixelRatio => 1.0; |
| 359 } | 363 } |
| OLD | NEW |