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

Unified Diff: chrome/common/extensions/docs/apps/fileSystem.html

Issue 10692105: Updates file type selector for fileSystem API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Broken out suggested_name stuff, added test Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/apps/fileSystem.html
diff --git a/chrome/common/extensions/docs/apps/fileSystem.html b/chrome/common/extensions/docs/apps/fileSystem.html
index bbc146a4b8d97b91c86b6571bfdfd381cddf2a57..135a7e0fad96c5faa8992b953e15983ded560123 100644
--- a/chrome/common/extensions/docs/apps/fileSystem.html
+++ b/chrome/common/extensions/docs/apps/fileSystem.html
@@ -673,6 +673,60 @@
<div>
<div>
<dt>
+ <var>accepts</var>
+ <em>
+ <!-- TYPE -->
+ <div style="display:inline">
+ (
+ <span class="optional">optional</span>
+ <span id="typeTemplate">
+ <span>
+ <span>
+ array of <span><span>
+ <span>
+ <span>string</span>
+ </span>
+ </span></span>
+ </span>
+ </span>
+ </span>
+ )
+ </div>
+ </em>
+ </dt>
+ <dd>The optional list of accepted mime-types for this file opener, grouped by type. For example, <code>['image/*', 'text/html,.jso']</code> would display two type options - one accepting images - and the other accepting HTML files and those with the extension 'jso'. This field is optional. However, it is an error to not specify this field (or pass an empty array) but pass acceptsAllTypes as false.</dd>
+ <!-- OBJECT PROPERTIES -->
+ <!-- OBJECT METHODS -->
+ <!-- OBJECT EVENT FIELDS -->
+ <!-- FUNCTION PARAMETERS -->
+ </div>
+ </div><div>
+ <div>
+ <dt>
+ <var>acceptsAllTypes</var>
+ <em>
+ <!-- TYPE -->
+ <div style="display:inline">
+ (
+ <span class="optional">optional</span>
+ <span id="typeTemplate">
+ <span>
+ <span>boolean</span>
+ </span>
+ </span>
+ )
+ </div>
+ </em>
+ </dt>
+ <dd>Whether to accept all file types, in addition to the options specified in the accepts argument. The default is true.</dd>
+ <!-- OBJECT PROPERTIES -->
+ <!-- OBJECT METHODS -->
+ <!-- OBJECT EVENT FIELDS -->
+ <!-- FUNCTION PARAMETERS -->
+ </div>
+ </div><div>
+ <div>
+ <dt>
<var>suggestedName</var>
<em>
<!-- TYPE -->

Powered by Google App Engine
This is Rietveld 408576698