Chromium Code Reviews| Index: tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate |
| diff --git a/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate b/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate |
| index 3ce955f5082b2f33b4688c7c4f61fdfff1eb5614..08134baa6e807008e459535a32cd082d9c20c9b4 100644 |
| --- a/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate |
| +++ b/tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate |
| @@ -49,6 +49,25 @@ $!MEMBERS |
| $dom_arc(x, y, radius, startAngle, endAngle, anticlockwise); |
| } |
| + @DomName('CanvasRenderingContext2D.drawImage') |
| + void drawImage(CanvasImageSource source, num x, num y) { |
| + $dom_drawImage(source, x, y); |
| + } |
| + |
| + @DomName('CanvasRenderingContext2D.drawImage') |
| + void drawImageAndScale(CanvasImageSource source, num x, num y, num width, num |
|
blois
2013/03/14 16:24:10
drawImageAtSize? Would also use destinationX, dest
Andrei Mouravski
2013/03/15 00:08:52
Done.
|
| + height) { |
| + $dom_drawImage(source, x, y, width, height); |
| + } |
| + |
| + @DomName('CanvasRenderingContext2D.drawImage') |
| + void drawImageAndTransform(CanvasImageSource source, num sourceX, num sourceY, |
|
blois
2013/03/14 16:24:10
Might be nice to use rects here (srcRect, destRect
Andrei Mouravski
2013/03/15 00:08:52
Done.
|
| + num sourceWidth, num sourceHeight, num destinationX, num destinationY, |
| + num destinationWidth, num destinationHeight) { |
| + $dom_drawImage(source, sourceX, sourceY, sourceWidth, sourceHeight, |
| + destinationX, destinationY, destinationWidth, destinationHeight); |
| + } |
| + |
| $if DART2JS |
| @DomName('CanvasRenderingContext2D.lineDashOffset') |