| 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 _ArrayBufferWrappingImplementation extends DOMWrapperBase implements Array
Buffer { | 7 class _ArrayBufferWrappingImplementation extends DOMWrapperBase implements Array
Buffer { |
| 8 _ArrayBufferWrappingImplementation() : super() {} | 8 _ArrayBufferWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__ArrayBufferWrappingImplementation() native { | 10 static create__ArrayBufferWrappingImplementation() native { |
| 11 return new _ArrayBufferWrappingImplementation(); | 11 return new _ArrayBufferWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 int get byteLength() { return _get__ArrayBuffer_byteLength(this); } | 14 int get byteLength() { return _get__ArrayBuffer_byteLength(this); } |
| 15 static int _get__ArrayBuffer_byteLength(var _this) native; | 15 static int _get__ArrayBuffer_byteLength(var _this) native; |
| 16 | 16 |
| 17 ArrayBuffer slice(int begin, [int end = null]) { |
| 18 if (end === null) { |
| 19 return _slice(this, begin); |
| 20 } else { |
| 21 return _slice_2(this, begin, end); |
| 22 } |
| 23 } |
| 24 static ArrayBuffer _slice(receiver, begin) native; |
| 25 static ArrayBuffer _slice_2(receiver, begin, end) native; |
| 26 |
| 17 String get typeName() { return "ArrayBuffer"; } | 27 String get typeName() { return "ArrayBuffer"; } |
| 18 } | 28 } |
| OLD | NEW |