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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 DOMString filePath; | 169 DOMString filePath; |
170 double length; | 170 double length; |
171 }; | 171 }; |
172 | 172 |
173 // Options for the <code>onWriteFileRequested()</code> event. | 173 // Options for the <code>onWriteFileRequested()</code> event. |
174 dictionary WriteFileRequestedOptions { | 174 dictionary WriteFileRequestedOptions { |
175 DOMString fileSystemId; | 175 DOMString fileSystemId; |
176 long requestId; | 176 long requestId; |
177 long openRequestId; | 177 long openRequestId; |
178 double offset; | 178 double offset; |
179 double length; | |
180 ArrayBuffer data; | 179 ArrayBuffer data; |
181 }; | 180 }; |
182 | 181 |
183 // Options for the <code>onAbortRequested()</code> event. | 182 // Options for the <code>onAbortRequested()</code> event. |
184 dictionary AbortRequestedOptions { | 183 dictionary AbortRequestedOptions { |
185 DOMString fileSystemId; | 184 DOMString fileSystemId; |
186 long requestId; | 185 long requestId; |
187 long operationRequestId; | 186 long operationRequestId; |
188 }; | 187 }; |
189 | 188 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 // </code> must be called. Note, that callbacks of the aborted operation | 361 // </code> must be called. Note, that callbacks of the aborted operation |
363 // should not be called, as they will be ignored. Despite calling <code> | 362 // should not be called, as they will be ignored. Despite calling <code> |
364 // errorCallback</code>, the request may be forcibly aborted. | 363 // errorCallback</code>, the request may be forcibly aborted. |
365 [maxListeners=1, nodoc] static void onAbortRequested( | 364 [maxListeners=1, nodoc] static void onAbortRequested( |
366 AbortRequestedOptions options, | 365 AbortRequestedOptions options, |
367 ProviderSuccessCallback successCallback, | 366 ProviderSuccessCallback successCallback, |
368 ProviderErrorCallback errorCallback); | 367 ProviderErrorCallback errorCallback); |
369 }; | 368 }; |
370 }; | 369 }; |
371 | 370 |
OLD | NEW |