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

Unified Diff: chrome/common/extensions/docs/templates/articles/content_scripts.html

Issue 375133002: Docserver: Display API features that are available to content scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 6 years, 5 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
Index: chrome/common/extensions/docs/templates/articles/content_scripts.html
diff --git a/chrome/common/extensions/docs/templates/articles/content_scripts.html b/chrome/common/extensions/docs/templates/articles/content_scripts.html
index eca015edee7e9ed576ef9c6f1aef0da8026f70f7..a312c048fee9369f51ce29dde0533d10363bb367 100644
--- a/chrome/common/extensions/docs/templates/articles/content_scripts.html
+++ b/chrome/common/extensions/docs/templates/articles/content_scripts.html
@@ -27,9 +27,20 @@ They <b>cannot</b>:
<ul>
<li>
- Use chrome.* APIs
- (except for parts of
- <a href="extension"><code>chrome.extension</code></a>)
+ Use chrome.* APIs, with the exception of:
+ <ul id="content_script_supported_nodes">
+ {{#api:content_scripts}}
+ <li>
+ $(ref:{{api.name}})
+ {{?api.restrictedTo}}
+ ({{#n:api.restrictedTo}}
+ $(ref:{{api.name}}.{{n.node}} {{n.node}})
+ {{^n.last}},{{/n.last}}
+ {{/api.restrictedTo}})
+ {{/api.restrictedTo}}
+ </li>
+ {{/content_scripts}}
+ </ul>
</li>
<li>
Use variables or functions defined by their extension's pages
« no previous file with comments | « chrome/common/extensions/docs/static/sass/_api.scss ('k') | chrome/common/extensions/docs/templates/intros/extension.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698