Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: chrome/common/extensions/api/file_system.idl

Issue 12996003: Dynamically generate a heading for Extension Docs API pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments - Patch currently being broken up Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.
5 namespace fileSystem { 9 namespace fileSystem {
6 dictionary AcceptOption { 10 dictionary AcceptOption {
7 // 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,
8 // a description will be automatically generated; typically containing an 12 // a description will be automatically generated; typically containing an
9 // 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
10 // "*.html, *.htm"). 14 // "*.html, *.htm").
11 DOMString? description; 15 DOMString? description;
12 16
13 // 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
14 // extensions must contain at least one valid element. 18 // extensions must contain at least one valid element.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // 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.
85 // whether restoreEntry would succeed with this id now. 89 // whether restoreEntry would succeed with this id now.
86 static void isRestorable(DOMString id, IsRestorableCallback callback); 90 static void isRestorable(DOMString id, IsRestorableCallback callback);
87 91
88 // 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
89 // 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,
90 // where calls to retainEntry and restoreEntry count as use. 94 // where calls to retainEntry and restoreEntry count as use.
91 static DOMString retainEntry([instanceOf=FileEntry] object fileEntry); 95 static DOMString retainEntry([instanceOf=FileEntry] object fileEntry);
92 }; 96 };
93 }; 97 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/file_browser_handler.json ('k') | chrome/common/extensions/api/font_settings.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698