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

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

Issue 12213076: Media Galleries: Disable write support. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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
1 <table class="intro"> 1 <table class="intro">
2 <tr> 2 <tr>
3 <th scope="col"></th> 3 <th scope="col"></th>
4 <th scope="col"></th> 4 <th scope="col"></th>
5 </tr> 5 </tr>
6 <tr> 6 <tr>
7 <td><strong>Description:</strong></td> 7 <td><strong>Description:</strong></td>
8 <td>Use the <code>chrome.mediaGalleries</code> API 8 <td>Use the <code>chrome.mediaGalleries</code> API
9 to access media files (images, video, audio) 9 to access media files (images, video, audio)
10 from the user's local disks (with the user's consent).</td> 10 from the user's local disks (with the user's consent).</td>
11 </tr> 11 </tr>
12 <tr> 12 <tr>
13 <td><strong>Availability:</strong></td> 13 <td><strong>Availability:</strong></td>
14 <td>Google Chrome 23 (read permission)<br> 14 <td>Google Chrome 23 (read permission)</td>
15 Google Chrome 26 (write permission)</td>
16 </tr> 15 </tr>
17 <tr> 16 <tr>
18 <td><strong>Permissions:</strong></td> 17 <td><strong>Permissions:</strong></td>
19 <td><code>"mediaGalleries": ["accessType"]</code>, 18 <td><code>"mediaGalleries": ["read"]</code>,
20 <code>"mediaGalleries": ["accessType", "allAutoDetected"]</code><br> 19 <code>"mediaGalleries": ["read", "allAutoDetected"]</code><br>
21 See <a href="#manifest">Manifest</a> below 20 See <a href="#manifest">Manifest</a> below
22 for more information.</td> 21 for more information.</td>
23 </tr> 22 </tr>
24 <tr> 23 <tr>
25 <td><strong>Learn more:</strong></td> 24 <td><strong>Learn more:</strong></td>
26 <td><a href="https://developers.google.com/live/shows/10479832/">Chrome Offi ce Hours: The Media Galleries API</a></td> 25 <td><a href="https://developers.google.com/live/shows/10479832/">Chrome Offi ce Hours: The Media Galleries API</a></td>
27 </tr> 26 </tr>
28 </table> 27 </table>
29 28
30 <h2 id="usage">Usage</h2> 29 <h2 id="usage">Usage</h2>
(...skipping 28 matching lines...) Expand all
59 58
60 <pre>{ 59 <pre>{
61 "name": "My extension", 60 "name": "My extension",
62 ... 61 ...
63 "permissions": [ 62 "permissions": [
64 <b>{ "mediaGalleries": ["read", "allAutoDetected"] }</b> 63 <b>{ "mediaGalleries": ["read", "allAutoDetected"] }</b>
65 ], 64 ],
66 ... 65 ...
67 }</pre> 66 }</pre>
68 67
69 <p>The above permission will trigger an install time permission prompt 68 <p>This permission will trigger an install time permission prompt
70 and let the extension read from all auto-detected media galleries on the 69 and let the extension read from all auto-detected media galleries on the
71 user's computer. The user may add or remove galleries using the 70 user's computer. The user may add or remove galleries using the
72 media gallery management dialog, after which the extension will be able 71 media gallery management dialog, after which the extension will be able
73 to read all the media files from galleries that the user has selected.</p> 72 to read all the media files from galleries that the user has selected.</p>
74 73
75 <p>Another possible access type is "write", which can be put in place of 74 <p>Currently "read" is the only access type supported by
76 "read". Specifying "write" allows read and write access to the accessible 75 this API. Read-write and add-file access with be implemented soon.</p>
77 media galleries.
78 </p>
79
80 <p>Currently "read" and "write" access types are supported by
81 this API. Add-file access with be implemented soon.</p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698