| 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 _HTMLCanvasElementWrappingImplementation extends _HTMLElementWrappingImple
mentation implements HTMLCanvasElement { | |
| 8 _HTMLCanvasElementWrappingImplementation() : super() {} | |
| 9 | |
| 10 static create__HTMLCanvasElementWrappingImplementation() native { | |
| 11 return new _HTMLCanvasElementWrappingImplementation(); | |
| 12 } | |
| 13 | |
| 14 int get height() { return _get_height(this); } | |
| 15 static int _get_height(var _this) native; | |
| 16 | |
| 17 void set height(int value) { _set_height(this, value); } | |
| 18 static void _set_height(var _this, int value) native; | |
| 19 | |
| 20 int get width() { return _get_width(this); } | |
| 21 static int _get_width(var _this) native; | |
| 22 | |
| 23 void set width(int value) { _set_width(this, value); } | |
| 24 static void _set_width(var _this, int value) native; | |
| 25 | |
| 26 Object getContext(String contextId) { | |
| 27 return _getContext(this, contextId); | |
| 28 } | |
| 29 static Object _getContext(receiver, contextId) native; | |
| 30 | |
| 31 String toDataURL(String type) { | |
| 32 return _toDataURL(this, type); | |
| 33 } | |
| 34 static String _toDataURL(receiver, type) native; | |
| 35 | |
| 36 String get typeName() { return "HTMLCanvasElement"; } | |
| 37 } | |
| OLD | NEW |