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

Unified Diff: chrome/common/extensions/docs/apps/app_intents.html

Issue 10834261: Move chrome.experimental.app.onLaunched event handler to chrome.app.runtime.onLaunched. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced/merged, resolved conflicts. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/apps/app_intents.html
diff --git a/chrome/common/extensions/docs/apps/app_intents.html b/chrome/common/extensions/docs/apps/app_intents.html
index 12d23be8cd181634f064b79138cad27a5c46698d..2eba1ee464fec18495b6d2ebcb70634387e52610 100644
--- a/chrome/common/extensions/docs/apps/app_intents.html
+++ b/chrome/common/extensions/docs/apps/app_intents.html
@@ -261,7 +261,7 @@ feeds, you would add the following to your manifest.
<p>
Your application will receive intent payload through the <code>onLaunched</code> event.
</p>
-<pre>chrome.experimental.app.onLaunched(function(intent) {
+<pre>chrome.app.runtime.onLaunched(function(intent) {
// App Launched
if(intent.action == "http://webinents.org/view" &amp;&amp;
intent.type == "application/atom+xml") {
@@ -282,7 +282,7 @@ This will implicity launch your application with an intent payload populated
with the action set to "http://webintents.org/view", the type set to the
mime-type of the file and the data as a <code>FileEntry</code> object.
</p>
-<pre>chrome.experimental.app.onLaunched(function(intent) {
+<pre>chrome.app.runtime.onLaunched(function(intent) {
// App Launched
var data = intent.data;
});
@@ -296,7 +296,7 @@ mime-type of the file and the data as a <code>FileEntry</code> object.
file on the disk,
and you can write data back to it.
</p>
-<pre>chrome.experimental.app.onLaunched(function(intent) {
+<pre>chrome.app.runtime.onLaunched(function(intent) {
// App Launched
var data = intent.data;
if(data instanceof FileEntry) {
@@ -322,7 +322,7 @@ with the app that invoked them.
It's easy to send data back to the calling client
using <code>intent.postResult</code>:
</p>
-<pre>chrome.experimental.app.onLaunched(function(intent) {
+<pre>chrome.app.runtime.onLaunched(function(intent) {
// App Launched
console.log(intent.action);
console.log(intent.type);
@@ -376,7 +376,7 @@ var onError = function() {};
window.navigator.webkitStartActivity(intent, onSuccess, onError);
</pre>
<a name="H3-9"></a><h3>Service</h3>
-<pre>chrome.experimental.app.onLaunched(function(intent) {
+<pre>chrome.app.runtime.onLaunched(function(intent) {
// App Launched
console.log(intent.action);
console.log(intent.type);

Powered by Google App Engine
This is Rietveld 408576698