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 _DirectoryReaderWrappingImplementation extends DOMWrapperBase implements D
irectoryReader { | 7 class _DirectoryReaderWrappingImplementation extends DOMWrapperBase implements D
irectoryReader { |
8 _DirectoryReaderWrappingImplementation() : super() {} | 8 _DirectoryReaderWrappingImplementation() : super() {} |
9 | 9 |
10 static create__DirectoryReaderWrappingImplementation() native { | 10 static create__DirectoryReaderWrappingImplementation() native { |
11 return new _DirectoryReaderWrappingImplementation(); | 11 return new _DirectoryReaderWrappingImplementation(); |
12 } | 12 } |
13 | 13 |
14 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
= null]) { | 14 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
= null]) { |
15 if (errorCallback === null) { | 15 _readEntries(this, successCallback, errorCallback); |
16 _readEntries(this, successCallback); | 16 return; |
17 return; | |
18 } else { | |
19 _readEntries_2(this, successCallback, errorCallback); | |
20 return; | |
21 } | |
22 } | 17 } |
23 static void _readEntries(receiver, successCallback) native; | 18 static void _readEntries(receiver, successCallback, errorCallback) native; |
24 static void _readEntries_2(receiver, successCallback, errorCallback) native; | |
25 | 19 |
26 String get typeName() { return "DirectoryReader"; } | 20 String get typeName() { return "DirectoryReader"; } |
27 } | 21 } |
OLD | NEW |