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

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

Issue 7038045: Add documentation for clipboardRead and clipboardWrite permissions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 7 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 <div id="pageData-name" class="pageData">Formats: Manifest Files</div> 1 <div id="pageData-name" class="pageData">Formats: Manifest Files</div>
2 <div id="pageData-showTOC" class="pageData">true</div> 2 <div id="pageData-showTOC" class="pageData">true</div>
3 3
4 <p> 4 <p>
5 Every extension, installable web app, and theme has a 5 Every extension, installable web app, and theme has a
6 <a href="http://www.json.org">JSON</a>-formatted manifest file, 6 <a href="http://www.json.org">JSON</a>-formatted manifest file,
7 named <code>manifest.json</code>, 7 named <code>manifest.json</code>,
8 that provides important information. 8 that provides important information.
9 </p> 9 </p>
10 10
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 </pre> 291 </pre>
292 292
293 <p> 293 <p>
294 The following table lists the permissions an extension 294 The following table lists the permissions an extension
295 or packaged app can use. 295 or packaged app can use.
296 </p> 296 </p>
297 297
298 <p class="note"> 298 <p class="note">
299 <strong>Note:</strong> 299 <strong>Note:</strong>
300 Hosted apps can use the 300 Hosted apps can use the
301 "background", "geolocation", "notifications", and "unlimitedStorage" permissions , 301 "background", "clipboardRead", "clipboardWrite", "geolocation", "notifications",
302 but not any other permissions listed in this table. 302 and "unlimitedStorage" permissions, but not any other permissions listed in this
303 table.
303 </p> 304 </p>
304 305
305 <table> 306 <table>
306 <tr> 307 <tr>
307 <th> Permission </th> <th> Description </th> 308 <th> Permission </th> <th> Description </th>
308 </tr> 309 </tr>
309 <tr> 310 <tr>
310 <td> <em>match pattern</em> </td> 311 <td> <em>match pattern</em> </td>
311 <td> Specifies a <em>host permission</em>. 312 <td> Specifies a <em>host permission</em>.
312 Required if the extension wants to interact 313 Required if the extension wants to interact
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 <td> Required if the extension uses the 361 <td> Required if the extension uses the
361 "chrome://favicon/<em>url</em>" mechanism 362 "chrome://favicon/<em>url</em>" mechanism
362 to display the favicon of a page. 363 to display the favicon of a page.
363 For example, to display the favicon of http://www.google.com/, 364 For example, to display the favicon of http://www.google.com/,
364 you declare the "chrome://favicon/" permission 365 you declare the "chrome://favicon/" permission
365 and use HTML code like this: 366 and use HTML code like this:
366 <pre>&lt;img src="chrome://favicon/http://www.google.com/"></pre> 367 <pre>&lt;img src="chrome://favicon/http://www.google.com/"></pre>
367 </td> 368 </td>
368 </tr> 369 </tr>
369 <tr> 370 <tr>
371 <td> "clipboardRead" </td>
372 <td> Required if the extension uses
373 <code>document.execCommand('paste')</code>. </td>
374 </tr>
375 <tr>
376 <td> "clipboardWrite" </td>
377 <td> Indicates an app or extension uses
378 <code>document.execCommand('copy')</code> or
379 <code>document.execCommand('cut')</code>. This permission is <b>required
380 for hosted apps</b>; it's recommended for extensions and packaged apps.
381 </td>
382 </tr>
383 <tr>
370 <td> "contextMenus" </td> 384 <td> "contextMenus" </td>
371 <td> Required if the extension uses the 385 <td> Required if the extension uses the
372 <a href="contextMenus.html">chrome.contextMenus</a> module. </td> 386 <a href="contextMenus.html">chrome.contextMenus</a> module. </td>
373 </tr> 387 </tr>
374 <tr> 388 <tr>
375 <td> "cookies" </td> 389 <td> "cookies" </td>
376 <td> Required if the extension uses the 390 <td> Required if the extension uses the
377 <a href="cookies.html">chrome.cookies</a> module. </td> 391 <a href="cookies.html">chrome.cookies</a> module. </td>
378 </tr> 392 </tr>
379 <tr> 393 <tr>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 A missing integer is equal to zero. 498 A missing integer is equal to zero.
485 For example, 1.1.9.9999 is newer than 1.1. 499 For example, 1.1.9.9999 is newer than 1.1.
486 </p> 500 </p>
487 501
488 <p> 502 <p>
489 For more information, see 503 For more information, see
490 <a href="autoupdate.html">Autoupdating</a>. 504 <a href="autoupdate.html">Autoupdating</a>.
491 </p> 505 </p>
492 506
493 <!-- [PENDING: Possibly: point to the store/dashboard and make a big deal of the fact that autoupdating is free if you use them.] --> 507 <!-- [PENDING: Possibly: point to the store/dashboard and make a big deal of the fact that autoupdating is free if you use them.] -->
OLDNEW
« chrome/common/extensions/docs/manifest.html ('K') | « chrome/common/extensions/docs/manifest.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698