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

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

Issue 27335003: Add docs for chrome.wallpaper API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reviews Created 7 years, 2 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 | chrome/common/extensions/docs/templates/public/apps/wallpaper.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <h2 id="manifest">Manifest</h2>
2 <p>You must declare the "wallpaper" permission in the app
3 <a href="manifest.html">manifest</a> to use the wallpaper API. If you use the
4 url property of setWallpaper, you must also whitelist the domain of your URL in
5 the manifest permissions.
6 For example:</p>
not at google - send to devlin 2013/10/16 21:17:27 This text should go in permissions.json: https://
bshe 2013/10/17 18:13:32 Done.
7 <pre data-filename="manifest.json">
8 {
9 "name": "My extension",
10 ...
11 <b>"permissions": [
12 "wallpaper",
13 "http://example.com/*"
14 ]</b>,
15 ...
16 }</pre>
17
18 <h2 id="overview-examples">Examples</h2>
19
20 <p>
21 Here's sample code to change wallpaper:
22 </p>
not at google - send to devlin 2013/10/16 21:17:27 This paragraph isn't much use. You can make it bet
bshe 2013/10/17 18:13:32 Done.
23
24 <pre>
25 chrome.wallpaper.setWallpaper(
26 {
27 'url': 'http://example.com/a_file.jpg',
28 'layout': 'CENTER_CROPPED',
29 'name': 'test_wallpaper'
30 }, function() { console.error(chrome.runtime.lastError.message); });
31 </pre>
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/docs/templates/public/apps/wallpaper.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698