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

Side by Side Diff: tools/dom/src/CanvasImageSource.dart

Issue 12775010: Added the CanvasImageSource interface, which all types that a canvas can draw (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed nits. Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 part of html;
6
7 /**
8 * An object that can be drawn to a [CanvasRenderingContext2D] object with
9 * [CanvasRenderingContext2D.drawImage] or
10 * [CanvasRenderingContext2D.drawImageAtScale].
11 *
12 * If the CanvasImageSource is an [ImageElement] then the element's image is
13 * used. If the [ImageElement] is an animated image, then the poster frame is
14 * used. If there is no poster frame, then the first frame of animation is used.
15 *
16 * If the CanvasImageSource is a [VideoElement] then the frame at the current
17 * playback position is used as the image.
18 *
19 * If the CanvasImageSource is a [CanvasElement] then the element's bitmap is
20 * used.
21 *
22 * See also:
23 *
24 * * [CanvasImageSource](http://www.whatwg.org/specs/web-apps/current-work/mult ipage/the-canvas-element.html#image-sources-for-2d-rendering-contexts)
25 * from the WHATWG.
26 */
27 abstract class CanvasImageSource {}
OLDNEW
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/templates/html/dart2js/html_dart2js.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698