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

Side by Side Diff: chrome/common/extensions/docs/static/mediaGalleries.html

Issue 10832079: Update media galleries documentation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
OLDNEW
(Empty)
1 <div id="pageData-name" class="pageData">Media Galleries</div>
2
3 <!-- BEGIN AUTHORED CONTENT -->
4 <p>
5 The media galleries API allows you to access media files (images,
6 video, audio) from the user's local disks (with the user's consent).
7 </p>
8
9 <p>
10 Using the API, you can prompt the user for permission to access the media
11 galleries. The permission dialog will contain common media locations for
12 the platform and will allow the user to add additional locations. From those
13 locations, only media files will be present in the file system objects.
14 </P>
15
16 <h2 id="manifest">Manifest</h2>
17 <p>You must declare the type of access to the media gallery you require
18 in your extension's manifest to use the API. Currently only the
19 "mediaGalleriesRead" permission is allowed. This permission does not
20 currently trigger an install time permission prompt because it requires
21 the user to grant permission at runtime.</p>
22
23 <p>
24 You may also specify the "mediaGalleriesAllGalleries" permission to get
25 access to all auto-detected media galleries on the user's computer. This
26 permission displays an install time prompt indicating that the extension
27 will have access to all of the user's media files.
28 </p>
29
30 <!-- END AUTHORED CONTENT -->
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698