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 0b589617243fe5d7862ad3ceaa4d8b06f691329d..e0584f2e3c7fb886d6eed2336b702f3dd9f53403 100644 |
| --- a/chrome/common/extensions/api/file_system_provider.idl |
| +++ b/chrome/common/extensions/api/file_system_provider.idl |
| @@ -44,7 +44,7 @@ namespace fileSystemProvider { |
| // Source of the file system data. |
| enum FileSystemSource { |
| // The file system is handling a file, eg. an archive file obtained via the |
| - // <code>OnLaunched</code> event and the <code>file_handlers</code> manifest |
| + // <code>onLaunched</code> event and the <code>file_handlers</code> manifest |
| // entry. |
| FILE, |
| @@ -171,6 +171,8 @@ namespace fileSystemProvider { |
| dictionary UnmountRequestedOptions { |
| // The identifier of the file system to be unmounted. |
| DOMString fileSystemId; |
| + |
| + // The unique identifier of this request. |
| long requestId; |
| }; |
| @@ -432,6 +434,15 @@ namespace fileSystemProvider { |
| DOMString? tag; |
| }; |
| + // Options for the <code>onConfigureRequested()</code> event. |
| + dictionary ConfigureRequestedOptions { |
| + // The identifier of the file system to be configured. |
| + DOMString fileSystemId; |
| + |
| + // The unique identifier of this request. |
| + long requestId; |
| + }; |
| + |
| // Callback to receive the result of getAll() function. |
| callback GetAllCallback = void(FileSystemInfo[] fileSystems); |
| @@ -647,6 +658,21 @@ namespace fileSystemProvider { |
| ProviderSuccessCallback successCallback, |
| ProviderErrorCallback errorCallback); |
| + // Raised when showing a configuration dialog for <code>fileSystemId</code> |
| + // is requested. If it's not supported, then this event must not be handled. |
| + [maxListeners=1] static void onConfigureRequested( |
|
benwells
2015/04/16 00:29:35
Should this be nodoc until the implementation is r
mtomasz
2015/04/16 01:07:28
This is going to be shipped in M44. I can add [nod
benwells
2015/04/16 01:15:32
Having documentation for new things that work is f
mtomasz
2015/04/16 01:24:16
Makes sense. I reverted the documentation and adde
|
| + ConfigureRequestedOptions options, |
| + ProviderSuccessCallback successCallback, |
| + ProviderErrorCallback errorCallback); |
| + |
| + // Raised when showing a dialog for mounting a new file system is requested. |
| + // If the extension/app is a file handler, then this event shouldn't be |
| + // handled. Instead <code>onLaunched</code> should be handled in order to |
| + // mount new file systems when a file is opened. |
| + [maxListeners=1] static void onMountRequested( |
| + ProviderSuccessCallback successCallback, |
|
benwells
2015/04/16 00:29:36
What about options? I'd have thought providing opt
mtomasz
2015/04/16 01:07:28
It's responsibility of the providing extension to
|
| + ProviderErrorCallback errorCallback); |
| + |
| // Raised when setting a new directory watcher is requested. If an error |
| // occurs, then <code>errorCallback</code> must be called. |
| [maxListeners=1, nodoc] static void onAddWatcherRequested( |