| 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 _FileReaderSyncWrappingImplementation extends DOMWrapperBase implements Fi
leReaderSync { | |
| 8 _FileReaderSyncWrappingImplementation() : super() {} | |
| 9 | |
| 10 static create__FileReaderSyncWrappingImplementation() native { | |
| 11 return new _FileReaderSyncWrappingImplementation(); | |
| 12 } | |
| 13 | |
| 14 ArrayBuffer readAsArrayBuffer(Blob blob) { | |
| 15 return _readAsArrayBuffer(this, blob); | |
| 16 } | |
| 17 static ArrayBuffer _readAsArrayBuffer(receiver, blob) native; | |
| 18 | |
| 19 String readAsBinaryString(Blob blob) { | |
| 20 return _readAsBinaryString(this, blob); | |
| 21 } | |
| 22 static String _readAsBinaryString(receiver, blob) native; | |
| 23 | |
| 24 String readAsDataURL(Blob blob) { | |
| 25 return _readAsDataURL(this, blob); | |
| 26 } | |
| 27 static String _readAsDataURL(receiver, blob) native; | |
| 28 | |
| 29 String readAsText(Blob blob, [String encoding = null]) { | |
| 30 if (encoding === null) { | |
| 31 return _readAsText(this, blob); | |
| 32 } else { | |
| 33 return _readAsText_2(this, blob, encoding); | |
| 34 } | |
| 35 } | |
| 36 static String _readAsText(receiver, blob) native; | |
| 37 static String _readAsText_2(receiver, blob, encoding) native; | |
| 38 | |
| 39 String get typeName() { return "FileReaderSync"; } | |
| 40 } | |
| OLD | NEW |