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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
247 // errorCallback</code> must be called. | 255 // errorCallback</code> must be called. |
248 [maxListeners=1] static void onReadFileRequested( | 256 [maxListeners=1] static void onReadFileRequested( |
249 ReadFileRequestedOptions options, | 257 ReadFileRequestedOptions options, |
250 FileDataCallback successCallback, | 258 FileDataCallback successCallback, |
251 ProviderErrorCallback errorCallback); | 259 ProviderErrorCallback errorCallback); |
252 | 260 |
253 // Raised when creating a directory is requested. If <code>exclusive</code> | 261 // Raised when creating a directory is requested. If <code>exclusive</code> |
254 // is set to true, then the operation must fail if the target directory | 262 // is set to true, then the operation must fail if the target directory |
255 // already exists. If <code>recursive</code> is true, then all of the | 263 // already exists. If <code>recursive</code> is true, then all of the |
256 // missing directories on the directory path must be created. | 264 // missing directories on the directory path must be created. |
257 [maxListeners=1, nodoc] static void onCreateDirectoryRequested( | 265 [maxListeners=1, nodoc] static void onCreateDirectoryRequested( |
benwells
2014/07/18 04:28:18
Hmm ... why are these all nodoc?
mtomasz
2014/07/19 01:22:23
All R/W operations are nodoc, since we don't want
| |
258 CreateDirectoryRequestedOptions options, | 266 CreateDirectoryRequestedOptions options, |
259 ProviderSuccessCallback successCallback, | 267 ProviderSuccessCallback successCallback, |
260 ProviderErrorCallback errorCallback); | 268 ProviderErrorCallback errorCallback); |
261 | 269 |
262 // Raised when deleting an entry is requested. If <code>recursive</code> is | 270 // Raised when deleting an entry is requested. If <code>recursive</code> is |
263 // true, and the entry is a directory, then all of the entries inside | 271 // true, and the entry is a directory, then all of the entries inside |
264 // must be recursively deleted as well. | 272 // must be recursively deleted as well. |
265 [maxListeners=1, nodoc] static void onDeleteEntryRequested( | 273 [maxListeners=1, nodoc] static void onDeleteEntryRequested( |
266 DeleteEntryRequestedOptions options, | 274 DeleteEntryRequestedOptions options, |
267 ProviderSuccessCallback successCallback, | 275 ProviderSuccessCallback successCallback, |
268 ProviderErrorCallback errorCallback); | 276 ProviderErrorCallback errorCallback); |
269 | 277 |
270 // Raised when creating a file is requested. If the file already exists, | 278 // Raised when creating a file is requested. If the file already exists, |
271 // then <code>errorCallback</code> must be called with the <code>EXISTS | 279 // then <code>errorCallback</code> must be called with the <code>EXISTS |
272 // </code> error code. | 280 // </code> error code. |
273 [maxListeners=1, nodoc] static void onCreateFileRequested( | 281 [maxListeners=1, nodoc] static void onCreateFileRequested( |
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 |