| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Use the <code>chrome.fileSystemProvider</code> API to create file systems, | 5 // Use the <code>chrome.fileSystemProvider</code> API to create file systems, |
| 6 // that can be accessible from the file manager on Chrome OS. | 6 // that can be accessible from the file manager on Chrome OS. |
| 7 [implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h"] | 7 [implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h"] |
| 8 namespace fileSystemProvider { | 8 namespace fileSystemProvider { |
| 9 // Error codes used by providing extensions in response to requests as well | 9 // Error codes used by providing extensions in response to requests as well |
| 10 // as in case of errors when calling methods of the API. For success, | 10 // as in case of errors when calling methods of the API. For success, |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 // Options for the $(ref:onGetActionsRequested) event. | 183 // Options for the $(ref:onGetActionsRequested) event. |
| 184 dictionary GetActionsRequestedOptions { | 184 dictionary GetActionsRequestedOptions { |
| 185 // The identifier of the file system related to this operation. | 185 // The identifier of the file system related to this operation. |
| 186 DOMString fileSystemId; | 186 DOMString fileSystemId; |
| 187 | 187 |
| 188 // The unique identifier of this request. | 188 // The unique identifier of this request. |
| 189 long requestId; | 189 long requestId; |
| 190 | 190 |
| 191 // The path of the entry to return the list of actions for. | 191 // List of paths of entries for the list of actions. |
| 192 DOMString entryPath; | 192 DOMString[] entryPaths; |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 // Options for the $(ref:onReadDirectoryRequested) event. | 195 // Options for the $(ref:onReadDirectoryRequested) event. |
| 196 dictionary ReadDirectoryRequestedOptions { | 196 dictionary ReadDirectoryRequestedOptions { |
| 197 // The identifier of the file system related to this operation. | 197 // The identifier of the file system related to this operation. |
| 198 DOMString fileSystemId; | 198 DOMString fileSystemId; |
| 199 | 199 |
| 200 // The unique identifier of this request. | 200 // The unique identifier of this request. |
| 201 long requestId; | 201 long requestId; |
| 202 | 202 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 }; | 409 }; |
| 410 | 410 |
| 411 // Options for the $(ref:onExecuteActionRequested) event. | 411 // Options for the $(ref:onExecuteActionRequested) event. |
| 412 dictionary ExecuteActionRequestedOptions { | 412 dictionary ExecuteActionRequestedOptions { |
| 413 // The identifier of the file system related to this operation. | 413 // The identifier of the file system related to this operation. |
| 414 DOMString fileSystemId; | 414 DOMString fileSystemId; |
| 415 | 415 |
| 416 // The unique identifier of this request. | 416 // The unique identifier of this request. |
| 417 long requestId; | 417 long requestId; |
| 418 | 418 |
| 419 // The path of the entry to be used for the action. | 419 // The set of paths of the entries to be used for the action. |
| 420 DOMString entryPath; | 420 DOMString[] entryPaths; |
| 421 | 421 |
| 422 // The identifier of the action to be executed. | 422 // The identifier of the action to be executed. |
| 423 DOMString actionId; | 423 DOMString actionId; |
| 424 }; | 424 }; |
| 425 | 425 |
| 426 // Information about a change happened to an entry within the observed | 426 // Information about a change happened to an entry within the observed |
| 427 // directory (including the entry itself). | 427 // directory (including the entry itself). |
| 428 dictionary Change { | 428 dictionary Change { |
| 429 // The path of the changed entry. | 429 // The path of the changed entry. |
| 430 DOMString entryPath; | 430 DOMString entryPath; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 | 583 |
| 584 // Raised when metadata of a file or a directory at <code>entryPath</code> | 584 // Raised when metadata of a file or a directory at <code>entryPath</code> |
| 585 // is requested. The metadata must be returned with the | 585 // is requested. The metadata must be returned with the |
| 586 // <code>successCallback</code> call. In case of an error, | 586 // <code>successCallback</code> call. In case of an error, |
| 587 // <code>errorCallback</code> must be called. | 587 // <code>errorCallback</code> must be called. |
| 588 [maxListeners=1] static void onGetMetadataRequested( | 588 [maxListeners=1] static void onGetMetadataRequested( |
| 589 GetMetadataRequestedOptions options, | 589 GetMetadataRequestedOptions options, |
| 590 MetadataCallback successCallback, | 590 MetadataCallback successCallback, |
| 591 ProviderErrorCallback errorCallback); | 591 ProviderErrorCallback errorCallback); |
| 592 | 592 |
| 593 // Raised when list of actions for of a file or a directory at | 593 // Raised when a list of actions for a set of files or directories at |
| 594 // <code>entryPath</code>s requested. The actions must be returned with the | 594 // <code>entryPaths</code> is requested. All of the returned actions must |
| 595 // be applicable to each entry. If there are no such actions, an empty array |
| 596 // should be returned. The actions must be returned with the |
| 595 // <code>successCallback</code> call. In case of an error, | 597 // <code>successCallback</code> call. In case of an error, |
| 596 // <code>errorCallback</code> must be called. | 598 // <code>errorCallback</code> must be called. |
| 597 [maxListeners=1, nodoc] static void onGetActionsRequested( | 599 [maxListeners=1, nodoc] static void onGetActionsRequested( |
| 598 GetActionsRequestedOptions options, | 600 GetActionsRequestedOptions options, |
| 599 ActionsCallback successCallback, | 601 ActionsCallback successCallback, |
| 600 ProviderErrorCallback errorCallback); | 602 ProviderErrorCallback errorCallback); |
| 601 | 603 |
| 602 // Raised when contents of a directory at <code>directoryPath</code> are | 604 // Raised when contents of a directory at <code>directoryPath</code> are |
| 603 // requested. The results must be returned in chunks by calling the | 605 // requested. The results must be returned in chunks by calling the |
| 604 // <code>successCallback</code> several times. In case of an error, | 606 // <code>successCallback</code> several times. In case of an error, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 ProviderSuccessCallback successCallback, | 725 ProviderSuccessCallback successCallback, |
| 724 ProviderErrorCallback errorCallback); | 726 ProviderErrorCallback errorCallback); |
| 725 | 727 |
| 726 // Raised when the watcher should be removed. If an error occurs, then | 728 // Raised when the watcher should be removed. If an error occurs, then |
| 727 // <code>errorCallback</code> must be called. | 729 // <code>errorCallback</code> must be called. |
| 728 [maxListeners=1] static void onRemoveWatcherRequested( | 730 [maxListeners=1] static void onRemoveWatcherRequested( |
| 729 RemoveWatcherRequestedOptions options, | 731 RemoveWatcherRequestedOptions options, |
| 730 ProviderSuccessCallback successCallback, | 732 ProviderSuccessCallback successCallback, |
| 731 ProviderErrorCallback errorCallback); | 733 ProviderErrorCallback errorCallback); |
| 732 | 734 |
| 733 // Raised when executing an action for a file or a directory is requested. | 735 // Raised when executing an action for a set of files or directories is\ |
| 734 // After the action is completed, <code>successCallback</code> must be | 736 // requested. After the action is completed, <code>successCallback</code> |
| 735 // called. On error, <code>errorCallback</code> must be called. | 737 // must be called. On error, <code>errorCallback</code> must be called. |
| 736 [maxListeners=1, nodoc] static void onExecuteActionRequested( | 738 [maxListeners=1, nodoc] static void onExecuteActionRequested( |
| 737 ExecuteActionRequestedOptions options, | 739 ExecuteActionRequestedOptions options, |
| 738 ProviderSuccessCallback successCallback, | 740 ProviderSuccessCallback successCallback, |
| 739 ProviderErrorCallback errorCallback); | 741 ProviderErrorCallback errorCallback); |
| 740 }; | 742 }; |
| 741 }; | 743 }; |
| 742 | 744 |
| OLD | NEW |