summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/templates/intros/extension.html
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/docs/templates/intros/extension.html')
-rw-r--r--chrome/common/extensions/docs/templates/intros/extension.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/chrome/common/extensions/docs/templates/intros/extension.html b/chrome/common/extensions/docs/templates/intros/extension.html
new file mode 100644
index 0000000..2ab3f08
--- /dev/null
+++ b/chrome/common/extensions/docs/templates/intros/extension.html
@@ -0,0 +1,44 @@
+<p id="classSummary">
+The <code>chrome.extension</code> module
+has utilities that can be used by any extension page.
+It includes support for exchanging messages
+between an extension and its content scripts
+or between extensions,
+as described in detail in
+<a href="messaging.html">Message Passing</a>.
+</p>
+
+<h2 id="content scripts">Support for content scripts</h2>
+<p>
+Unlike the other chrome.* APIs,
+parts of <code>chrome.extension</code>
+can be used by content scripts:
+</p>
+
+<dl>
+ <dt>
+ <a href="#method-sendMessage"><code>sendMessage()</code></a> and
+ <a href="#event-onMessage"><code>onMessage</code></a>
+ </dt>
+ <dd>
+ Simple communication with extension pages
+ </dd>
+ <dt>
+ <a href="#method-connect"><code>connect()</code></a> and
+ <a href="#event-onConnect"><code>onConnect</code></a>
+ </dt>
+ <dd>
+ Extended communication with extension pages
+ </dd>
+ <dt>
+ <a href="#method-getURL"><code>getURL()</code></a>
+ </dt>
+ <dd>
+ Access to extension resources such as image files
+ </dd>
+</dl>
+
+<p>
+For details, see
+<a href="content_scripts.html">Content Scripts</a>.
+</p> \ No newline at end of file