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

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

Issue 33423004: Removing a number of deprecated members (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements CanvasImageS ource$IMPLEMENTS$NATIVESPEC { 7 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements CanvasImageS ource$IMPLEMENTS$NATIVESPEC {
8 $!MEMBERS 8 $!MEMBERS
9 /** An API for drawing on this canvas. */ 9 /** An API for drawing on this canvas. */
10 $if DART2JS 10 $if DART2JS
11 CanvasRenderingContext2D get context2D => 11 CanvasRenderingContext2D get context2D =>
12 JS('Null|CanvasRenderingContext2D', '#.getContext(#)', this, '2d'); 12 JS('Null|CanvasRenderingContext2D', '#.getContext(#)', this, '2d');
13 $else 13 $else
14 CanvasRenderingContext2D get context2D => getContext('2d'); 14 CanvasRenderingContext2D get context2D => getContext('2d');
15 $endif 15 $endif
16 16
17 @deprecated
18 CanvasRenderingContext2D get context2d => this.context2D;
19
20 @SupportedBrowser(SupportedBrowser.CHROME) 17 @SupportedBrowser(SupportedBrowser.CHROME)
21 @SupportedBrowser(SupportedBrowser.FIREFOX) 18 @SupportedBrowser(SupportedBrowser.FIREFOX)
22 @Experimental() 19 @Experimental()
23 gl.RenderingContext getContext3d({alpha: true, depth: true, stencil: false, 20 gl.RenderingContext getContext3d({alpha: true, depth: true, stencil: false,
24 antialias: true, premultipliedAlpha: true, preserveDrawingBuffer: false}) { 21 antialias: true, premultipliedAlpha: true, preserveDrawingBuffer: false}) {
25 22
26 var options = { 23 var options = {
27 'alpha': alpha, 24 'alpha': alpha,
28 'depth': depth, 25 'depth': depth,
29 'stencil': stencil, 26 'stencil': stencil,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 * 72 *
76 * * [Data URI Scheme](http://en.wikipedia.org/wiki/Data_URI_scheme) from Wiki pedia. 73 * * [Data URI Scheme](http://en.wikipedia.org/wiki/Data_URI_scheme) from Wiki pedia.
77 * 74 *
78 * * [HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/DOM/HTMLCanv asElement) from MDN. 75 * * [HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/DOM/HTMLCanv asElement) from MDN.
79 * 76 *
80 * * [toDataUrl](http://dev.w3.org/html5/spec/the-canvas-element.html#dom-canv as-todataurl) from W3C. 77 * * [toDataUrl](http://dev.w3.org/html5/spec/the-canvas-element.html#dom-canv as-todataurl) from W3C.
81 */ 78 */
82 String toDataUrl([String type = 'image/png', num quality]) => 79 String toDataUrl([String type = 'image/png', num quality]) =>
83 _toDataUrl(type, quality); 80 _toDataUrl(type, quality);
84 } 81 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | tools/dom/templates/html/impl/impl_UIEvent.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698