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

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

Issue 9582009: Fix typo in new background page syntax ("page" takes a string, not an array) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « chrome/common/extensions/docs/background_pages.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <div id="pageData-name" class="pageData">Background Pages</div> 1 <div id="pageData-name" class="pageData">Background Pages</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 A common need for extensions is to have 5 A common need for extensions is to have
6 a single long-running script to manage some task or state. 6 a single long-running script to manage some task or state.
7 Background pages to the rescue. 7 Background pages to the rescue.
8 </p> 8 </p>
9 9
10 <p> 10 <p>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 If you need to specify HTML 58 If you need to specify HTML
59 in your background page, you can 59 in your background page, you can
60 do that using the <code>page</code> 60 do that using the <code>page</code>
61 property instead: 61 property instead:
62 </p> 62 </p>
63 63
64 <pre>{ 64 <pre>{
65 "name": "My extension", 65 "name": "My extension",
66 ... 66 ...
67 <b>"background": { 67 <b>"background": {
68 "page": ["background.html"] 68 "page": "background.html"
69 }</b>, 69 }</b>,
70 ... 70 ...
71 }</pre> 71 }</pre>
72 72
73 <p> 73 <p>
74 If you need the browser to start up early&mdash;so 74 If you need the browser to start up early&mdash;so
75 you can display notifications, for example&mdash;then 75 you can display notifications, for example&mdash;then
76 you might also want to specify the 76 you might also want to specify the
77 <a href="manifest.html#permissions">"background" permission</a>. 77 <a href="manifest.html#permissions">"background" permission</a>.
78 </p> 78 </p>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 &lt;body> 146 &lt;body>
147 &lt;p> 147 &lt;p>
148 Image here: 148 Image here:
149 &lt;/p> 149 &lt;/p>
150 150
151 &lt;img id="target" src="white.png" width="640" height="480"> 151 &lt;img id="target" src="white.png" width="640" height="480">
152 152
153 &lt;/body> 153 &lt;/body>
154 &lt;/html> 154 &lt;/html>
155 </pre> 155 </pre>
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/background_pages.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698