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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // Raised when opening a file at <code>filePath</code> is requested. | 137 // Raised when opening a file at <code>filePath</code> is requested. |
138 // If <code>create</code> is set to <code>true</code> and the file does not | 138 // If <code>create</code> is set to <code>true</code> and the file does not |
139 // exist, then it should be created. | 139 // exist, then it should be created. |
140 [maxListeners=1] static void onOpenFileRequested( | 140 [maxListeners=1] static void onOpenFileRequested( |
141 long fileSystemId, | 141 long fileSystemId, |
142 DOMString filePath, | 142 DOMString filePath, |
143 OpenFileMode mode, | 143 OpenFileMode mode, |
144 boolean create, | 144 boolean create, |
145 ProviderSuccessCallback successCallback, | 145 ProviderSuccessCallback successCallback, |
146 ProviderErrorCallback errorCallback); | 146 ProviderErrorCallback errorCallback); |
| 147 |
| 148 // Raised when opening a file previously opened with <code>openRequestId |
| 149 // </code> is requested to be closed. |
| 150 [maxListeners=1] static void onCloseFileRequested( |
| 151 long fileSystemId, |
| 152 long openRequestId, |
| 153 ProviderSuccessCallback successCallback, |
| 154 ProviderErrorCallback errorCallback); |
147 }; | 155 }; |
148 }; | 156 }; |
149 | 157 |
OLD | NEW |