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 [platforms=("chromeos"), | 7 [platforms=("chromeos"), |
8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h"] | 8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h"] |
9 namespace fileSystemProvider { | 9 namespace fileSystemProvider { |
10 // Error codes used by providing extensions in response to requests. For | 10 // Error codes used by providing extensions in response to requests. For |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 }; | 134 }; |
135 | 135 |
136 // Options for the <code>onCopyEntryRequested()</code> event. | 136 // Options for the <code>onCopyEntryRequested()</code> event. |
137 dictionary CopyEntryRequestedOptions { | 137 dictionary CopyEntryRequestedOptions { |
138 DOMString fileSystemId; | 138 DOMString fileSystemId; |
139 long requestId; | 139 long requestId; |
140 DOMString sourcePath; | 140 DOMString sourcePath; |
141 DOMString targetPath; | 141 DOMString targetPath; |
142 }; | 142 }; |
143 | 143 |
| 144 // Options for the <code>onMoveEntryRequested()</code> event. |
| 145 dictionary MoveEntryRequestedOptions { |
| 146 DOMString fileSystemId; |
| 147 long requestId; |
| 148 DOMString sourcePath; |
| 149 DOMString targetPath; |
| 150 }; |
| 151 |
144 // Callback to receive the result of mount() function. | 152 // Callback to receive the result of mount() function. |
145 callback MountCallback = void([nodoc, instanceOf=DOMError] object error); | 153 callback MountCallback = void([nodoc, instanceOf=DOMError] object error); |
146 | 154 |
147 // Callback to receive the result of unmount() function. | 155 // Callback to receive the result of unmount() function. |
148 callback UnmountCallback = void([nodoc, instanceOf=DOMError] object error); | 156 callback UnmountCallback = void([nodoc, instanceOf=DOMError] object error); |
149 | 157 |
150 // Callback to handle an error raised from the browser. | 158 // Callback to handle an error raised from the browser. |
151 [nocompile] callback ErrorCallback = void([instanceOf=DOMError] object error); | 159 [nocompile] callback ErrorCallback = void([instanceOf=DOMError] object error); |
152 | 160 |
153 // Callback to be called by the providing extension in case of a success. | 161 // Callback to be called by the providing extension in case of a success. |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 CreateFileRequestedOptions options, | 282 CreateFileRequestedOptions options, |
275 ProviderSuccessCallback successCallback, | 283 ProviderSuccessCallback successCallback, |
276 ProviderErrorCallback errorCallback); | 284 ProviderErrorCallback errorCallback); |
277 | 285 |
278 // Raised when copying an entry (recursively if a directory) is requested. | 286 // Raised when copying an entry (recursively if a directory) is requested. |
279 // If an error occurs, then <code>errorCallback</code> must be called. | 287 // If an error occurs, then <code>errorCallback</code> must be called. |
280 [maxListeners=1, nodoc] static void onCopyEntryRequested( | 288 [maxListeners=1, nodoc] static void onCopyEntryRequested( |
281 CopyEntryRequestedOptions options, | 289 CopyEntryRequestedOptions options, |
282 ProviderSuccessCallback successCallback, | 290 ProviderSuccessCallback successCallback, |
283 ProviderErrorCallback errorCallback); | 291 ProviderErrorCallback errorCallback); |
| 292 |
| 293 // Raised when moving an entry (recursively if a directory) is requested. |
| 294 // If an error occurs, then <code>errorCallback</code> must be called. |
| 295 [maxListeners=1, nodoc] static void onMoveEntryRequested( |
| 296 MoveEntryRequestedOptions options, |
| 297 ProviderSuccessCallback successCallback, |
| 298 ProviderErrorCallback errorCallback); |
284 }; | 299 }; |
285 }; | 300 }; |
286 | 301 |
OLD | NEW |