summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-30 23:42:50 +0000
committergroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-30 23:42:50 +0000
commit8b5f787003144aae8a54a6932d05fb24678bfb94 (patch)
treeb1c00d95bfbec970303137b9f5371f07ba5cdc09
parent4be6fe689be1bb26bcef371326c3e9daf04ad5aa (diff)
downloadchromium_src-8b5f787003144aae8a54a6932d05fb24678bfb94.zip
chromium_src-8b5f787003144aae8a54a6932d05fb24678bfb94.tar.gz
chromium_src-8b5f787003144aae8a54a6932d05fb24678bfb94.tar.bz2
Document intents as mime type viewers
BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/9865014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139691 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/common/extensions/docs/manifest.html13
-rw-r--r--chrome/common/extensions/docs/static/manifest.html16
2 files changed, 27 insertions, 2 deletions
diff --git a/chrome/common/extensions/docs/manifest.html b/chrome/common/extensions/docs/manifest.html
index 4fe1320..38353bc 100644
--- a/chrome/common/extensions/docs/manifest.html
+++ b/chrome/common/extensions/docs/manifest.html
@@ -421,7 +421,7 @@ incognito behavior.
</p>
<h3 id="intents">intents</h3>
<p>
-A dictionary that specifies all intent handlers provided by this extension or app. Each key in the dictionary specifies the an action verb that is handled by this extension. The following example specifies two handlers for the action verb "<a href="http://webintents.org/share">http://webintents.org/share</a>".
+A dictionary that specifies all intent handlers provided by this extension or app. Each key in the dictionary specifies an action verb that is handled by this extension. The following example specifies two handlers for the action verb "<a href="http://webintents.org/share">http://webintents.org/share</a>".
</p>
<pre>{
"name": "test",
@@ -456,6 +456,17 @@ The "disposition" is either "inline" or "window". Intents with "window" disposit
<p>
For more information on intents, refer to the <a href="http://dvcs.w3.org/hg/web-intents/raw-file/tip/spec/Overview.html">Web Intents specification</a> and <a href="http://www.webintents.org">webintents.org</a>.
</p>
+<h4>Handling content types via intents</h4>
+<p>
+Web Intents can be registered as content type viewers. To do that, the action verb must be <a href="http://webintents.org/view">"http://webintents.org/view"</a>, and the content type must be a white-listed MIME type.
+</p>
+<table>
+ <tbody><tr>
+ <th>Whitelisted MIME types</th>
+ </tr>
+ <tr><td>application/rss+xml</td></tr>
+ <tr><td>application/atom+xml</td></tr>
+</tbody></table>
<h3 id="key">key</h3>
<p>
This value can be used to control
diff --git a/chrome/common/extensions/docs/static/manifest.html b/chrome/common/extensions/docs/static/manifest.html
index a0cb4b4..22fa116 100644
--- a/chrome/common/extensions/docs/static/manifest.html
+++ b/chrome/common/extensions/docs/static/manifest.html
@@ -215,7 +215,7 @@ incognito behavior.
<h3 id="intents">intents</h3>
<p>
-A dictionary that specifies all intent handlers provided by this extension or app. Each key in the dictionary specifies the an action verb that is handled by this extension. The following example specifies two handlers for the action verb "<a href="http://webintents.org/share">http://webintents.org/share</a>".
+A dictionary that specifies all intent handlers provided by this extension or app. Each key in the dictionary specifies an action verb that is handled by this extension. The following example specifies two handlers for the action verb "<a href="http://webintents.org/share">http://webintents.org/share</a>".
</p>
<pre>
@@ -257,6 +257,20 @@ The "disposition" is either "inline" or "window". Intents with "window" disposit
For more information on intents, refer to the <a href="http://dvcs.w3.org/hg/web-intents/raw-file/tip/spec/Overview.html">Web Intents specification</a> and <a href="http://www.webintents.org">webintents.org</a>.
</p>
+<h4>Handling content types via intents</h4>
+
+<p>
+Web Intents can be registered as content type viewers. To do that, the action verb must be <a href="http://webintents.org/view">"http://webintents.org/view"</a>, and the content type must be a white-listed MIME type.
+</p>
+
+<table>
+ <tr>
+ <th>Whitelisted MIME types</th>
+ </tr>
+ <tr><td>application/rss+xml</td></tr>
+ <tr><td>application/atom+xml</td></tr>
+</table>
+
<h3 id="key">key</h3>
<p>