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

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

Issue 2978213002: Removed DARTIUM codegen for IDLS (sdk/lib/dartium) (Closed)
Patch Set: Update generated darttemplate Created 3 years, 5 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
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 CanvasImageSource$IMPLEMENTS { 7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements CanvasImageSource$IMPLEMENTS {
8 $!MEMBERS 8 $!MEMBERS
9 /** An API for drawing on this canvas. */ 9 /** An API for drawing on this canvas. */
10 $if DART2JS
11 CanvasRenderingContext2D get context2D => 10 CanvasRenderingContext2D get context2D =>
12 JS('Null|CanvasRenderingContext2D', '#.getContext(#)', this, '2d'); 11 JS('Null|CanvasRenderingContext2D', '#.getContext(#)', this, '2d');
13 $else
14 CanvasRenderingContext2D get context2D => getContext('2d');
15 $endif
16 12
17 /** 13 /**
18 * Returns a new Web GL context for this canvas. 14 * Returns a new Web GL context for this canvas.
19 * 15 *
20 * ## Other resources 16 * ## Other resources
21 * 17 *
22 * * [WebGL fundamentals](http://www.html5rocks.com/en/tutorials/webgl/webgl_f undamentals/) 18 * * [WebGL fundamentals](http://www.html5rocks.com/en/tutorials/webgl/webgl_f undamentals/)
23 * from HTML5Rocks. 19 * from HTML5Rocks.
24 * * [WebGL homepage](http://get.webgl.org/). 20 * * [WebGL homepage](http://get.webgl.org/).
25 */ 21 */
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 * 77 *
82 * * [Data URI Scheme](http://en.wikipedia.org/wiki/Data_URI_scheme) from Wiki pedia. 78 * * [Data URI Scheme](http://en.wikipedia.org/wiki/Data_URI_scheme) from Wiki pedia.
83 * 79 *
84 * * [HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/DOM/HTMLCanv asElement) from MDN. 80 * * [HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/DOM/HTMLCanv asElement) from MDN.
85 * 81 *
86 * * [toDataUrl](http://dev.w3.org/html5/spec/the-canvas-element.html#dom-canv as-todataurl) from W3C. 82 * * [toDataUrl](http://dev.w3.org/html5/spec/the-canvas-element.html#dom-canv as-todataurl) from W3C.
87 */ 83 */
88 String toDataUrl([String type = 'image/png', num quality]) => 84 String toDataUrl([String type = 'image/png', num quality]) =>
89 _toDataUrl(type, quality); 85 _toDataUrl(type, quality);
90 } 86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698