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

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

Issue 439923003: Remove confusing version qualitication from chrome.app.filesystem docs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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> 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 namespace fileSystem {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 // Gets whether this Entry is writable or not. 101 // Gets whether this Entry is writable or not.
102 static void isWritableEntry([instanceOf=Entry] object entry, 102 static void isWritableEntry([instanceOf=Entry] object entry,
103 IsWritableCallback callback); 103 IsWritableCallback callback);
104 104
105 // Ask the user to choose a file or directory. 105 // Ask the user to choose a file or directory.
106 static void chooseEntry(optional ChooseEntryOptions options, 106 static void chooseEntry(optional ChooseEntryOptions options,
107 EntriesCallback callback); 107 EntriesCallback callback);
108 108
109 // Returns the file entry with the given id if it can be restored. This call 109 // Returns the file entry with the given id if it can be restored. This call
110 // will fail with a runtime error otherwise. This method is new in Chrome 110 // will fail with a runtime error otherwise.
111 // 31.
112 static void restoreEntry(DOMString id, EntryCallback callback); 111 static void restoreEntry(DOMString id, EntryCallback callback);
113 112
114 // Returns whether the app has permission to restore the entry with the 113 // Returns whether the app has permission to restore the entry with the
115 // given id. This method is new in Chrome 31. 114 // given id.
116 static void isRestorable(DOMString id, IsRestorableCallback callback); 115 static void isRestorable(DOMString id, IsRestorableCallback callback);
117 116
118 // Returns an id that can be passed to restoreEntry to regain access to a 117 // Returns an id that can be passed to restoreEntry to regain access to a
119 // given file entry. Only the 500 most recently used entries are retained, 118 // given file entry. Only the 500 most recently used entries are retained,
120 // where calls to retainEntry and restoreEntry count as use. If the app has 119 // where calls to retainEntry and restoreEntry count as use. If the app has
121 // the 'retainEntries' permission under 'fileSystem', entries are retained 120 // the 'retainEntries' permission under 'fileSystem', entries are retained
122 // indefinitely. Otherwise, entries are retained only while the app is 121 // indefinitely. Otherwise, entries are retained only while the app is
123 // running and across restarts. This method is new in Chrome 31. 122 // running and across restarts.
124 static DOMString retainEntry([instanceOf=Entry] object entry); 123 static DOMString retainEntry([instanceOf=Entry] object entry);
125 }; 124 };
126 }; 125 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698