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

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: Address comments 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..3e4b0410cbb61fa49af5c8df0c6317ad7b7a511c 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:{{n.parent}}.{{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

Powered by Google App Engine
This is Rietveld 408576698