OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.fileSystem</code> API to create, read, navigate, | 5 // Use the <code>chrome.fileSystem</code> API to create, read, navigate, |
6 // and write to a sandboxed section of the user's local file system. With this | 6 // and write to a sandboxed section of the user's local file system. With this |
7 // API, packaged apps can read and write to a user-seleced location. For | 7 // API, packaged apps can read and write to a user-selected location. For |
8 // example, a text editor app can use the API to read and write local documents. | 8 // example, a text editor app can use the API to read and write local documents. |
9 namespace fileSystem { | 9 namespace fileSystem { |
10 dictionary AcceptOption { | 10 dictionary AcceptOption { |
11 // This is the optional text description for this option. If not present, | 11 // This is the optional text description for this option. If not present, |
12 // a description will be automatically generated; typically containing an | 12 // a description will be automatically generated; typically containing an |
13 // expanded list of valid extensions (e.g. "text/html" may expand to | 13 // expanded list of valid extensions (e.g. "text/html" may expand to |
14 // "*.html, *.htm"). | 14 // "*.html, *.htm"). |
15 DOMString? description; | 15 DOMString? description; |
16 | 16 |
17 // Mime-types to accept, e.g. "image/jpeg" or "audio/*". One of mimeTypes or | 17 // Mime-types to accept, e.g. "image/jpeg" or "audio/*". One of mimeTypes or |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // Returns whether a file entry for the given id can be restored, i.e. | 88 // Returns whether a file entry for the given id can be restored, i.e. |
89 // whether restoreEntry would succeed with this id now. | 89 // whether restoreEntry would succeed with this id now. |
90 static void isRestorable(DOMString id, IsRestorableCallback callback); | 90 static void isRestorable(DOMString id, IsRestorableCallback callback); |
91 | 91 |
92 // Returns an id that can be passed to restoreEntry to regain access to a | 92 // Returns an id that can be passed to restoreEntry to regain access to a |
93 // given file entry. Only the 500 most recently used entries are retained, | 93 // given file entry. Only the 500 most recently used entries are retained, |
94 // where calls to retainEntry and restoreEntry count as use. | 94 // where calls to retainEntry and restoreEntry count as use. |
95 static DOMString retainEntry([instanceOf=FileEntry] object fileEntry); | 95 static DOMString retainEntry([instanceOf=FileEntry] object fileEntry); |
96 }; | 96 }; |
97 }; | 97 }; |
OLD | NEW |