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

Unified Diff: chrome/common/extensions/docs/static/override.html

Issue 1530002: Move history API out of experimental. Allow extensions to override history page. (Closed)
Patch Set: Rebase for commit. Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/docs/static/history.html ('k') | chrome/common/extensions/docs/tabs.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/static/override.html
diff --git a/chrome/common/extensions/docs/static/override.html b/chrome/common/extensions/docs/static/override.html
index 96b6897e0914cb3fe4813f5f19b5e1bb523d3f60..53de45c2554443a8c40d0c2dea4a1a8bd11715b9 100644
--- a/chrome/common/extensions/docs/static/override.html
+++ b/chrome/common/extensions/docs/static/override.html
@@ -26,16 +26,20 @@ Override pages are a way to replace a page
that Google Chrome provides
with an HTML file that your extension provides.
An override page usually has CSS and JavaScript code,
-in addition to HTML.
+in addition to HTML. A single extension can only override
+one page.
</p>
<p>
-Currently, the only page you can replace is
-the <em>New Tab page</em> &mdash;
-the page that appears
-when the user creates a new tab or window.
-</p>
+Currently, extensions can replace two pages:
+<ul>
+ <li> The <em>New Tab page</em> &mdash;
+ the page that appears when the user creates a new tab or window.</li>
+ <li> The <em>History page</em> &mdash;
+ the page that appears when the user selects the 'History' menu item.</li>
+</ul>
+</p>
<table id="pics">
<tr>
<td> <b>The default New Tab page</b> </td>
@@ -55,13 +59,12 @@ when the user creates a new tab or window.
</tr>
</table>
-
<h2 id="manifest">Manifest</h2>
<p>
-Register your New Tab page in the
+Register override pages in the
<a href="manifest.html">extension manifest</a>
-like this:
+using property <code>chrome_url_overrides</code>. For example, the new tabs page can be overridden like this:
</p>
<pre>{
@@ -73,18 +76,31 @@ like this:
...
}</pre>
+You can override the history page like this:
+
+<pre>{
+ "name": "My extension",
+ ...
+ <b>"chrome_url_overrides": {
+ "history": "history.html"
+ }</b>,
+ ...
+}</pre>
+
+A single extension may only override one page.
+
<h2 id="tips">Tips</h2>
<p>
-For an effective New Tab page, follow these guidelines:
+For an effective override pages, follow these guidelines:
</p>
<ul>
<li>
<p>
<b>Make your page quick and small.</b> <br />
- Because the New Tab page appears often,
- its performance is important.
+ Users expect built in browser pages to open instantly. Avoid doing things that
+ may take a long time.
For example, avoid synchronous fetches of network or database resources.
</p>
</li>
@@ -106,7 +122,7 @@ For an effective New Tab page, follow these guidelines:
</li>
<li>
<p>
- <b>Don't try to emulate the default New Tab page.</b> <br />
+ <b>Don't try to emulate the default pages.</b> <br />
The APIs necessary to create
a slightly modified version of the default New Tab page &mdash;
with top pages,
« no previous file with comments | « chrome/common/extensions/docs/static/history.html ('k') | chrome/common/extensions/docs/tabs.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698