| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011, 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 // WARNING: Do not edit - generated code. | |
| 6 | |
| 7 class CanvasElementWrappingImplementation extends ElementWrappingImplementation
implements CanvasElement { | |
| 8 CanvasElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9 | |
| 10 int get height() { return _ptr.height; } | |
| 11 | |
| 12 void set height(int value) { _ptr.height = value; } | |
| 13 | |
| 14 int get width() { return _ptr.width; } | |
| 15 | |
| 16 void set width(int value) { _ptr.width = value; } | |
| 17 | |
| 18 CanvasRenderingContext getContext([String contextId = null]) { | |
| 19 if (contextId === null) { | |
| 20 return LevelDom.wrapCanvasRenderingContext(_ptr.getContext()); | |
| 21 } else { | |
| 22 return LevelDom.wrapCanvasRenderingContext(_ptr.getContext(contextId)); | |
| 23 } | |
| 24 } | |
| 25 | |
| 26 String toDataURL(String type) { | |
| 27 return _ptr.toDataURL(type); | |
| 28 } | |
| 29 } | |
| OLD | NEW |