| 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> module to create, read, navigate, |
| 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 |
| 8 // example, a text editor app can use the API to read and write local documents. |
| 9 |
| 10 [availability=23] |
| 5 namespace fileSystem { | 11 namespace fileSystem { |
| 6 dictionary AcceptOption { | 12 dictionary AcceptOption { |
| 7 // This is the optional text description for this option. If not present, | 13 // This is the optional text description for this option. If not present, |
| 8 // a description will be automatically generated; typically containing an | 14 // a description will be automatically generated; typically containing an |
| 9 // expanded list of valid extensions (e.g. "text/html" may expand to | 15 // expanded list of valid extensions (e.g. "text/html" may expand to |
| 10 // "*.html, *.htm"). | 16 // "*.html, *.htm"). |
| 11 DOMString? description; | 17 DOMString? description; |
| 12 | 18 |
| 13 // Mime-types to accept, e.g. "image/jpeg" or "audio/*". One of mimeTypes or | 19 // Mime-types to accept, e.g. "image/jpeg" or "audio/*". One of mimeTypes or |
| 14 // extensions must contain at least one valid element. | 20 // extensions must contain at least one valid element. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 [nocompile] static FileEntry getEntryById(DOMString id); | 80 [nocompile] static FileEntry getEntryById(DOMString id); |
| 75 | 81 |
| 76 // Returns the id of the given file entry. This can be used to retrieve file | 82 // Returns the id of the given file entry. This can be used to retrieve file |
| 77 // entries with getEntryById(). When an app is restarted (ie: it is sent the | 83 // entries with getEntryById(). When an app is restarted (ie: it is sent the |
| 78 // onRestarted event) it can regain access to the file entries it had by | 84 // onRestarted event) it can regain access to the file entries it had by |
| 79 // remembering their ids and calling getEntryById(). | 85 // remembering their ids and calling getEntryById(). |
| 80 [nocompile] static DOMString getEntryId( | 86 [nocompile] static DOMString getEntryId( |
| 81 [instanceOf=FileEntry] object fileEntry); | 87 [instanceOf=FileEntry] object fileEntry); |
| 82 }; | 88 }; |
| 83 }; | 89 }; |
| OLD | NEW |