| 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 the user's local file system. With this API, Chrome Apps can | 6 // and write to the user's local file system. With this API, Chrome Apps can |
| 7 // read and write to a user-selected location. For example, a text editor app | 7 // read and write to a user-selected location. For example, a text editor app |
| 8 // can use the API to read and write local documents. All failures are notified | 8 // can use the API to read and write local documents. All failures are notified |
| 9 // via chrome.runtime.lastError. | 9 // via chrome.runtime.lastError. |
| 10 namespace fileSystem { | 10 [use_movable_types=true] namespace fileSystem { |
| 11 dictionary AcceptOption { | 11 dictionary AcceptOption { |
| 12 // This is the optional text description for this option. If not present, | 12 // This is the optional text description for this option. If not present, |
| 13 // a description will be automatically generated; typically containing an | 13 // a description will be automatically generated; typically containing an |
| 14 // expanded list of valid extensions (e.g. "text/html" may expand to | 14 // expanded list of valid extensions (e.g. "text/html" may expand to |
| 15 // "*.html, *.htm"). | 15 // "*.html, *.htm"). |
| 16 DOMString? description; | 16 DOMString? description; |
| 17 | 17 |
| 18 // Mime-types to accept, e.g. "image/jpeg" or "audio/*". One of mimeTypes or | 18 // Mime-types to accept, e.g. "image/jpeg" or "audio/*". One of mimeTypes or |
| 19 // extensions must contain at least one valid element. | 19 // extensions must contain at least one valid element. |
| 20 DOMString[]? mimeTypes; | 20 DOMString[]? mimeTypes; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // Called when a list of available volumes is changed. | 225 // Called when a list of available volumes is changed. |
| 226 static void onVolumeListChanged(VolumeListChangedEvent event); | 226 static void onVolumeListChanged(VolumeListChangedEvent event); |
| 227 | 227 |
| 228 // Called when an observed entry is changed. | 228 // Called when an observed entry is changed. |
| 229 [nodoc] static void onEntryChanged(EntryChangedEvent event); | 229 [nodoc] static void onEntryChanged(EntryChangedEvent event); |
| 230 | 230 |
| 231 // Called when an observed entry is removed. | 231 // Called when an observed entry is removed. |
| 232 [nodoc] static void onEntryRemoved(EntryRemovedEvent event); | 232 [nodoc] static void onEntryRemoved(EntryRemovedEvent event); |
| 233 }; | 233 }; |
| 234 }; | 234 }; |
| OLD | NEW |