| 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 _BlobWrappingImplementation extends DOMWrapperBase implements Blob { | |
| 8 _BlobWrappingImplementation() : super() {} | |
| 9 | |
| 10 static create__BlobWrappingImplementation() native { | |
| 11 return new _BlobWrappingImplementation(); | |
| 12 } | |
| 13 | |
| 14 int get size() { return _get_size(this); } | |
| 15 static int _get_size(var _this) native; | |
| 16 | |
| 17 String get type() { return _get_type(this); } | |
| 18 static String _get_type(var _this) native; | |
| 19 | |
| 20 Blob webkitSlice([int start = null, int end = null, String contentType = null]
) { | |
| 21 if (start === null) { | |
| 22 if (end === null) { | |
| 23 if (contentType === null) { | |
| 24 return _webkitSlice(this); | |
| 25 } | |
| 26 } | |
| 27 } else { | |
| 28 if (end === null) { | |
| 29 if (contentType === null) { | |
| 30 return _webkitSlice_2(this, start); | |
| 31 } | |
| 32 } else { | |
| 33 if (contentType === null) { | |
| 34 return _webkitSlice_3(this, start, end); | |
| 35 } else { | |
| 36 return _webkitSlice_4(this, start, end, contentType); | |
| 37 } | |
| 38 } | |
| 39 } | |
| 40 throw "Incorrect number or type of arguments"; | |
| 41 } | |
| 42 static Blob _webkitSlice(receiver) native; | |
| 43 static Blob _webkitSlice_2(receiver, start) native; | |
| 44 static Blob _webkitSlice_3(receiver, start, end) native; | |
| 45 static Blob _webkitSlice_4(receiver, start, end, contentType) native; | |
| 46 | |
| 47 String get typeName() { return "Blob"; } | |
| 48 } | |
| OLD | NEW |