| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _HTMLCanvasElementWrappingImplementation extends _HTMLElementWrappingImple
mentation implements HTMLCanvasElement { | 7 class _HTMLCanvasElementWrappingImplementation extends _HTMLElementWrappingImple
mentation implements HTMLCanvasElement { |
| 8 _HTMLCanvasElementWrappingImplementation() : super() {} | 8 _HTMLCanvasElementWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__HTMLCanvasElementWrappingImplementation() native { | 10 static create__HTMLCanvasElementWrappingImplementation() native { |
| 11 return new _HTMLCanvasElementWrappingImplementation(); | 11 return new _HTMLCanvasElementWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 int get height() { return _get__HTMLCanvasElement_height(this); } | 14 int get height() { return _get_height(this); } |
| 15 static int _get__HTMLCanvasElement_height(var _this) native; | 15 static int _get_height(var _this) native; |
| 16 | 16 |
| 17 void set height(int value) { _set__HTMLCanvasElement_height(this, value); } | 17 void set height(int value) { _set_height(this, value); } |
| 18 static void _set__HTMLCanvasElement_height(var _this, int value) native; | 18 static void _set_height(var _this, int value) native; |
| 19 | 19 |
| 20 int get width() { return _get__HTMLCanvasElement_width(this); } | 20 int get width() { return _get_width(this); } |
| 21 static int _get__HTMLCanvasElement_width(var _this) native; | 21 static int _get_width(var _this) native; |
| 22 | 22 |
| 23 void set width(int value) { _set__HTMLCanvasElement_width(this, value); } | 23 void set width(int value) { _set_width(this, value); } |
| 24 static void _set__HTMLCanvasElement_width(var _this, int value) native; | 24 static void _set_width(var _this, int value) native; |
| 25 | 25 |
| 26 Object getContext(String contextId) { | 26 Object getContext(String contextId) { |
| 27 return _getContext(this, contextId); | 27 return _getContext(this, contextId); |
| 28 } | 28 } |
| 29 static Object _getContext(receiver, contextId) native; | 29 static Object _getContext(receiver, contextId) native; |
| 30 | 30 |
| 31 String toDataURL(String type) { | 31 String toDataURL(String type) { |
| 32 return _toDataURL(this, type); | 32 return _toDataURL(this, type); |
| 33 } | 33 } |
| 34 static String _toDataURL(receiver, type) native; | 34 static String _toDataURL(receiver, type) native; |
| 35 | 35 |
| 36 String get typeName() { return "HTMLCanvasElement"; } | 36 String get typeName() { return "HTMLCanvasElement"; } |
| 37 } | 37 } |
| OLD | NEW |