| 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 use_movable_types=true] |
| 8 namespace fileSystemProvider { | 9 namespace fileSystemProvider { |
| 9 // Error codes used by providing extensions in response to requests as well | 10 // 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, | 11 // as in case of errors when calling methods of the API. For success, |
| 11 // <code>"OK"</code> must be used. | 12 // <code>"OK"</code> must be used. |
| 12 enum ProviderError { | 13 enum ProviderError { |
| 13 OK, | 14 OK, |
| 14 FAILED, | 15 FAILED, |
| 15 IN_USE, | 16 IN_USE, |
| 16 EXISTS, | 17 EXISTS, |
| 17 NOT_FOUND, | 18 NOT_FOUND, |
| (...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 // Raised when executing an action for a set of files or directories is\ | 775 // Raised when executing an action for a set of files or directories is\ |
| 775 // requested. After the action is completed, <code>successCallback</code> | 776 // requested. After the action is completed, <code>successCallback</code> |
| 776 // must be called. On error, <code>errorCallback</code> must be called. | 777 // must be called. On error, <code>errorCallback</code> must be called. |
| 777 [maxListeners=1] static void onExecuteActionRequested( | 778 [maxListeners=1] static void onExecuteActionRequested( |
| 778 ExecuteActionRequestedOptions options, | 779 ExecuteActionRequestedOptions options, |
| 779 ProviderSuccessCallback successCallback, | 780 ProviderSuccessCallback successCallback, |
| 780 ProviderErrorCallback errorCallback); | 781 ProviderErrorCallback errorCallback); |
| 781 }; | 782 }; |
| 782 }; | 783 }; |
| 783 | 784 |
| OLD | NEW |