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

Side by Side Diff: chrome/common/extensions/docs/templates/articles/manifest/externally_connectable.html

Issue 22854025: Use the externally_connectable schema from manifest_types.json to generate its (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <h1>externally_connectable</h1>
2
3 <p>
4 The <code>externally_connectable</code> manifest property declares which extensi ons, apps, and web pages can connect to your extension via <a href="../runtime.h tml#method-connect">runtime.connect</a> and <a href="../runtime.html#method-send Message">runtime.sendMessage</a>.
5 </p>
6
7 <p>
8 For a tutorial on message passing see <a href="../messaging.html#external">cross -extension and app messaging</a> and <a href="../messaging.html#external-webpage ">sending messages from web pages</a>.
9 </p>
10
11 <h2 id="manifest">Sample manifest.json</h2>
12 <pre>
13 {
14 "name": "My externally connectable {{platform}}",
15 "externally_connectable": {
16 // Extension and app IDs:
17 "ids": [
18 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
19 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
20 ...
21 ],
22 // Alternatively, for all extensions and apps:
23 "ids": ["*"],
24 // Match patterns for <em>web pages</em>, not content scripts:
25 "matches": [
26 "https://*.google.com",
27 "*://*.chromium.org",
28 ...
29 ]
30 },
31 ...
32 }
33 </pre>
34
35 <h2 id="reference">Reference</h2>
36 <p class="api_reference">
37 {{+partials.type @:apis.manifestTypes.byName.ExternallyConnectable}}
38 </p>
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/static/css/site.css ('k') | chrome/common/extensions/docs/templates/json/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698