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

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

Issue 17508002: Revert "Making all DOM types abstract and removing superfluous Dartium constructors." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 $CLASSNAME$EXTENDS implements CanvasImageSource$IMPLEMENTS$N ATIVESPEC {
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 17 @deprecated
(...skipping 13 matching lines...) Expand all
31 'premultipliedAlpha': premultipliedAlpha, 31 'premultipliedAlpha': premultipliedAlpha,
32 'preserveDrawingBuffer': preserveDrawingBuffer, 32 'preserveDrawingBuffer': preserveDrawingBuffer,
33 }; 33 };
34 var context = getContext('webgl', options); 34 var context = getContext('webgl', options);
35 if (context == null) { 35 if (context == null) {
36 context = getContext('experimental-webgl', options); 36 context = getContext('experimental-webgl', options);
37 } 37 }
38 return context; 38 return context;
39 } 39 }
40 } 40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698