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

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

Issue 1744093002: Migrated changed for sdk/lib genernation from integration branch to master (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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:
View unified diff | Download patch
« no previous file with comments | « tools/dom/scripts/idlnode.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 abstract class CanvasRenderingContext { 7 abstract class CanvasRenderingContext {
8 CanvasElement get canvas; 8 CanvasElement get canvas;
9 } 9 }
10 10
11 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements CanvasRenderingContext { 11 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements CanvasRenderingContext {
12 $!MEMBERS 12 $!MEMBERS
13 13
14 @DomName('CanvasRenderingContext2D.createImageDataFromImageData')
15 @DocsEditable()
16 ImageData createImageDataFromImageData(ImageData imagedata) =>
17 $if DART2JS
18 JS('ImageData', '#.createImageData(#, #)', this, imagedata);
19 $else
20 this.createImageData(imagedata);
21 $endif
22
14 /** 23 /**
15 * Sets the color used inside shapes. 24 * Sets the color used inside shapes.
16 * [r], [g], [b] are 0-255, [a] is 0-1. 25 * [r], [g], [b] are 0-255, [a] is 0-1.
17 */ 26 */
18 void setFillColorRgb(int r, int g, int b, [num a = 1]) { 27 void setFillColorRgb(int r, int g, int b, [num a = 1]) {
19 this.fillStyle = 'rgba($r, $g, $b, $a)'; 28 this.fillStyle = 'rgba($r, $g, $b, $a)';
20 } 29 }
21 30
22 /** 31 /**
23 * Sets the color used inside shapes. 32 * Sets the color used inside shapes.
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 JS('void', '#.fill(#)', this, winding); 377 JS('void', '#.fill(#)', this, winding);
369 } 378 }
370 $endif 379 $endif
371 380
372 /** Deprecated always returns 1.0 */ 381 /** Deprecated always returns 1.0 */
373 @DomName('CanvasRenderingContext2D.webkitBackingStorePixelRation') 382 @DomName('CanvasRenderingContext2D.webkitBackingStorePixelRation')
374 @Experimental() 383 @Experimental()
375 @deprecated 384 @deprecated
376 double get backingStorePixelRatio => 1.0; 385 double get backingStorePixelRatio => 1.0;
377 } 386 }
OLDNEW
« no previous file with comments | « tools/dom/scripts/idlnode.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698