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

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: cleanup 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 <h2 id="manifest">Sample manifest.json</h2>
8 <pre>
9 {
10 "name": "My externally connectable {{platform}}",
11 "externally_connectable": {
12 // Extension and app IDs:
13 "ids": [
14 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
15 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
16 ...
17 ],
18 // Alternatively, for all extensions and apps:
19 "ids": ["*"],
20 // Match patterns for <em>web pages</em>, not content scripts:
21 "matches": [
22 "https://*.google.com",
23 "*://*.chromium.org",
24 ...
25 ]
26 },
27 ...
28 }
29 </pre>
30
31 <h2 id="reference">Reference</h2>
32 <p class="api_reference">
33 {{+partials.type @:apis.manifestTypes.byName.ExternallyConnectable}}
34 </p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698