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

Side by Side Diff: tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate

Issue 569783002: Migrate to Chrome 37 IDL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 // 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698