| 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 _FileEntryWrappingImplementation extends _EntryWrappingImplementation impl
ements FileEntry { | 7 class _FileEntryWrappingImplementation extends _EntryWrappingImplementation impl
ements FileEntry { |
| 8 _FileEntryWrappingImplementation() : super() {} | 8 _FileEntryWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__FileEntryWrappingImplementation() native { | 10 static create__FileEntryWrappingImplementation() native { |
| 11 return new _FileEntryWrappingImplementation(); | 11 return new _FileEntryWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back = null]) { | 14 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back = null]) { |
| 15 if (errorCallback === null) { | 15 _createWriter(this, successCallback, errorCallback); |
| 16 _createWriter(this, successCallback); | 16 return; |
| 17 return; | |
| 18 } else { | |
| 19 _createWriter_2(this, successCallback, errorCallback); | |
| 20 return; | |
| 21 } | |
| 22 } | 17 } |
| 23 static void _createWriter(receiver, successCallback) native; | 18 static void _createWriter(receiver, successCallback, errorCallback) native; |
| 24 static void _createWriter_2(receiver, successCallback, errorCallback) native; | |
| 25 | 19 |
| 26 void file(FileCallback successCallback, [ErrorCallback errorCallback = null])
{ | 20 void file(FileCallback successCallback, [ErrorCallback errorCallback = null])
{ |
| 27 if (errorCallback === null) { | 21 _file(this, successCallback, errorCallback); |
| 28 _file(this, successCallback); | 22 return; |
| 29 return; | |
| 30 } else { | |
| 31 _file_2(this, successCallback, errorCallback); | |
| 32 return; | |
| 33 } | |
| 34 } | 23 } |
| 35 static void _file(receiver, successCallback) native; | 24 static void _file(receiver, successCallback, errorCallback) native; |
| 36 static void _file_2(receiver, successCallback, errorCallback) native; | |
| 37 | 25 |
| 38 String get typeName() { return "FileEntry"; } | 26 String get typeName() { return "FileEntry"; } |
| 39 } | 27 } |
| OLD | NEW |