Commit bfec6140 authored by mkearney@google.com's avatar mkearney@google.com

Added deprecation notice for web intents.

Also added public template for app_intents.html doc back in so that previous bookmarks do not result in a 404.

Note that I've repeated the deprecation warning under each <h2> in case a developer winds up in a section via search. Eventually we will want to add an 'Instead, use...' sentence/paragraph once this is defined and at the same time
remove the bulk of content in place.

BUG=174262

Review URL: https://codereview.chromium.org/12211131

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182058 0039d316-1c4b-4281-b951-d872f2087c98
parent 008114ea
<h1>Connect Apps with Web Intents</h1> <h1>Connect Apps with Web Intents</h1>
<p class="warning">
<b>Warning: </b>
Deprecated in Chrome 24.
Web intents are no longer supported.
</p>
<p> <p>
<a href="http://webintents.org/">Web Intents</a> <a href="http://webintents.org/">Web Intents</a>
...@@ -22,6 +27,12 @@ Check out the ...@@ -22,6 +27,12 @@ Check out the
<h2 id="register">Register your app to handle an action</h2> <h2 id="register">Register your app to handle an action</h2>
<p class="warning">
<b>Warning: </b>
Deprecated in Chrome 24.
Web intents are no longer supported.
</p>
<p> <p>
You must supply the intent in the manifest: You must supply the intent in the manifest:
</p> </p>
...@@ -44,6 +55,12 @@ launch - the <code>onLaunched</code> event. ...@@ -44,6 +55,12 @@ launch - the <code>onLaunched</code> event.
<h2 id="content">Handling content types</h2> <h2 id="content">Handling content types</h2>
<p class="warning">
<b>Warning: </b>
Deprecated in Chrome 24.
Web intents are no longer supported.
</p>
<p> <p>
Your application can be the user's preferred choice for handling a file type. Your application can be the user's preferred choice for handling a file type.
For example, your application could handle viewing images or viewing pdfs. For example, your application could handle viewing images or viewing pdfs.
...@@ -77,8 +94,14 @@ chrome.app.runtime.onLaunched(function(intent) { ...@@ -77,8 +94,14 @@ chrome.app.runtime.onLaunched(function(intent) {
}); });
</pre> </pre>
<h2 id="launching">Launching an app with a file</h2> <h2 id="launching">Launching an app with a file</h2>
<p class="warning">
<b>Warning: </b>
Deprecated in Chrome 24.
Web intents are no longer supported.
</p>
<p> <p>
If your app handles the <code>view</code> intent, If your app handles the <code>view</code> intent,
it is possible to launch it from the command line with a file as a parameter. it is possible to launch it from the command line with a file as a parameter.
...@@ -99,6 +122,13 @@ chrome.app.runtime.onLaunched(function(intent) { ...@@ -99,6 +122,13 @@ chrome.app.runtime.onLaunched(function(intent) {
</pre> </pre>
<h2 id="launching">Manipulating the file</h2> <h2 id="launching">Manipulating the file</h2>
<p class="warning">
<b>Warning: </b>
Deprecated in Chrome 24.
Web intents are no longer supported.
</p>
<p> <p>
When your application is launched with a file as the parameter When your application is launched with a file as the parameter
on the command-line, on the command-line,
...@@ -131,6 +161,13 @@ chrome.app.runtime.onLaunched(function(intent) { ...@@ -131,6 +161,13 @@ chrome.app.runtime.onLaunched(function(intent) {
</pre> </pre>
<h2 id="return">Returning data to calling application</h2> <h2 id="return">Returning data to calling application</h2>
<p class="warning">
<b>Warning: </b>
Deprecated in Chrome 24.
Web intents are no longer supported.
</p>
<p> <p>
Lots of applications want to cooperate Lots of applications want to cooperate
with the app that invoked them. with the app that invoked them.
...@@ -152,6 +189,12 @@ chrome.app.runtime.onLaunched(function(intent) { ...@@ -152,6 +189,12 @@ chrome.app.runtime.onLaunched(function(intent) {
<h2 id="localize">Localizing your app title</h2> <h2 id="localize">Localizing your app title</h2>
<p class="warning">
<b>Warning: </b>
Deprecated in Chrome 24.
Web intents are no longer supported.
</p>
<p> <p>
If your application or extension is localized If your application or extension is localized
as per the guidelines in as per the guidelines in
...@@ -171,6 +214,13 @@ using the exact same infrastructure: ...@@ -171,6 +214,13 @@ using the exact same infrastructure:
</pre> </pre>
<h2 id="invoke">Invoking an action</h2> <h2 id="invoke">Invoking an action</h2>
<p class="warning">
<b>Warning: </b>
Deprecated in Chrome 24.
Web intents are no longer supported.
</p>
<p> <p>
If your application needs to be able If your application needs to be able
to use the functionality of another application, to use the functionality of another application,
...@@ -188,6 +238,13 @@ window.navigator.webkitStartActivity(intent, function(data) { ...@@ -188,6 +238,13 @@ window.navigator.webkitStartActivity(intent, function(data) {
</pre> </pre>
<h2 id="errors">Handling Errors and Exceptions</h2> <h2 id="errors">Handling Errors and Exceptions</h2>
<p class="warning">
<b>Warning: </b>
Deprecated in Chrome 24.
Web intents are no longer supported.
</p>
<p> <p>
If your service application needs to signal to the client application If your service application needs to signal to the client application
that an unrecoverable error has occurred, that an unrecoverable error has occurred,
......
{{+partials.standard_apps_article article:intros.app_intents}}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment