Chromium Code Reviews| Index: chrome/common/extensions/api/file_system_provider.idl |
| diff --git a/chrome/common/extensions/api/file_system_provider.idl b/chrome/common/extensions/api/file_system_provider.idl |
| index 5ca491161001b80fed59f47eebfa32e293c152c0..1e638bf2f92cf566cef023abc20d2e4e01f237be 100644 |
| --- a/chrome/common/extensions/api/file_system_provider.idl |
| +++ b/chrome/common/extensions/api/file_system_provider.idl |
| @@ -69,6 +69,12 @@ namespace fileSystemProvider { |
| // Success callback for the <code>onGetMetadataRequested</code> event. |
| callback MetadataCallback = void(EntryMetadata metadata); |
| + // Success callback for the <code>onDirectoryRequested</code> event. If more |
| + // entries will be returned, then <code>hasNext</code> must be true, and it |
| + // has to be called again with additional entries. If no more entries are |
| + // available, then <code>hasNext</code> must be set to false. |
| + callback EntriesCallback = void(ResourceEntry[] entries, bool hasNext); |
| + |
| interface Functions { |
| // Mounts a file system with the given <code>displayName</code>. |
| // <code>displayName</code> will be shown in the left panel of |
| @@ -111,6 +117,16 @@ namespace fileSystemProvider { |
| DOMString entryPath, |
| MetadataCallback successCallback, |
| ErrorCallback errorCallback); |
| + |
| + // Raised when contents of a directory at <code>directoryPath</code> is |
|
benwells
2014/05/05 01:07:24
Grammar nit: should be "Raised when /the/ contents
mtomasz
2014/05/07 04:57:30
Done.
|
| + // requested. Results should be returned in chunks by calling the <code> |
| + // successCallback</code> several times. In case of an error, <code> |
| + // errorCallback</code> must be called. |
| + [maxListeners=1] static void onReadDirectoryRequested( |
| + long fileSystemId, |
| + DOMString directoryPath, |
| + EntriesCallback successCallback, |
| + ErrorCallback errorCallback); |
| }; |
| }; |