summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-04 18:22:33 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-04 18:22:33 +0000
commited0e37c5ab370dbdc5dbc7800b43ffa38b91ef99 (patch)
treec527c9e7c7bb84234982222d15828d7842b95c33 /chrome
parent41fa9a3211fe4d603dd9932636b54f8e1fe70c22 (diff)
downloadchromium_src-ed0e37c5ab370dbdc5dbc7800b43ffa38b91ef99.zip
chromium_src-ed0e37c5ab370dbdc5dbc7800b43ffa38b91ef99.tar.gz
chromium_src-ed0e37c5ab370dbdc5dbc7800b43ffa38b91ef99.tar.bz2
Add some more content to the content scripts docs.
TBR=rafaelw@chormium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22397 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/tab_contents/render_view_host_delegate_helper.cc7
-rwxr-xr-xchrome/common/extensions/docs/css/ApiRefStyles.css16
-rwxr-xr-xchrome/common/extensions/docs/static/index.html29
3 files changed, 35 insertions, 17 deletions
diff --git a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
index 1c1ca24..d28d0f5 100644
--- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
+++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
@@ -176,8 +176,13 @@ WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs(
command_line.HasSwitch(switches::kEnableRemoteFonts);
web_prefs.xss_auditor_enabled =
command_line.HasSwitch(switches::kEnableXSSAuditor);
+
+ // NOTE: We imply local storage enabledness for extensions because the
+ // extensions team is beta testing local storage and we like to live on the
+ // edge.
web_prefs.local_storage_enabled =
- command_line.HasSwitch(switches::kEnableLocalStorage);
+ command_line.HasSwitch(switches::kEnableLocalStorage) ||
+ command_line.HasSwitch(switches::kEnableExtensions);
web_prefs.session_storage_enabled =
command_line.HasSwitch(switches::kEnableSessionStorage);
}
diff --git a/chrome/common/extensions/docs/css/ApiRefStyles.css b/chrome/common/extensions/docs/css/ApiRefStyles.css
index 709f975..212d65c 100755
--- a/chrome/common/extensions/docs/css/ApiRefStyles.css
+++ b/chrome/common/extensions/docs/css/ApiRefStyles.css
@@ -160,3 +160,19 @@ p#classSummary {
#pageFooter {
}
+
+#mainColumn table {
+ border-collapse:collapse;
+}
+
+#mainColumn th {
+ background:#ccc;
+ border:1px solid #999;
+}
+
+#mainColumn td {
+ text-align:left;
+ vertical-align:top;
+ border:1px solid #999;
+ padding:6px;
+}
diff --git a/chrome/common/extensions/docs/static/index.html b/chrome/common/extensions/docs/static/index.html
index 94a407c..5168b00 100755
--- a/chrome/common/extensions/docs/static/index.html
+++ b/chrome/common/extensions/docs/static/index.html
@@ -6,28 +6,25 @@
This documentation is just being written; here's what we have so far.
You might also want to look at <a href="#other">Other resources</a>.
If you just want to <em>make</em> something,
- go to <a href="helloworld.html">Get Started</a>.
+ go to <a href="getstarted.html">Get Started</a>.
</p>
<ul>
<li><a href="overview.html">Overview</a></li>
- <li><a href="helloworld.html">Get Started</a> (Hello, World!)</li>
+ <li><a href="getstarted.html">Get Started</a> (Hello, World!)</li>
<li><a href="devguide.html">Developer's Guide</a></li>
- <li><a href="reference/index.html">Reference</a></li>
+ <li><a href="reference/index.html">Reference</a>
<ul>
- <li>Supported APIs</li>
- <ul>
- <li>standard JavaScript libraries</li>
- <li>XMLHttpRequest</li>
- <li>anything in WebKit</li>
- <li>anything in V8</li>
- <li>anything you put in your zipfile</li>
- </ul>
- <li><a href="reference/chrome-api-index.html">chrome.* APIs</a>
- <ul>
- <li>[PENDING: fill this out automatically. In the meantime, start at the <a href="reference/bookmarks.html">chrome.bookmarks</a> page and click the links in the left column.]</li>
- </ul>
- </li>
+ <li>manifest.json</li>
+ <li>Toolstrips and Moles</li>
+ <li>Background pages</li>
+ <li>Page actions</li>
+ <li><a href="content_scripts.html">Content scripts</a></li>
+ <li>Cross-Origin XMLHttpRequest</li>
+ <li>Bookmarks</li>
+ <li>Tabs</li>
+ <li>Windows</li>
+ <li>[PENDING: Fill out the programmatic API bullets automatically?]</li>
</ul>
<li>Samples</li>
<ul>