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

Unified Diff: chrome/common/extensions/docs/server2/templates/articles/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: Another merge before retrying commit. 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/server2/templates/articles/app_intents.html
diff --git a/chrome/common/extensions/docs/server2/templates/articles/app_intents.html b/chrome/common/extensions/docs/server2/templates/articles/app_intents.html
index fcbdf02026334a756e814a910513675bf7f9cd40..533fb152e2134ba02d7f53038ab597f8376b4a41 100644
--- a/chrome/common/extensions/docs/server2/templates/articles/app_intents.html
+++ b/chrome/common/extensions/docs/server2/templates/articles/app_intents.html
@@ -66,7 +66,7 @@ feeds, you would add the following to your manifest.
Your application will receive intent payload through the <code>onLaunched</code> event.
</p>
<pre>
-chrome.experimental.app.onLaunched(function(intent) {
+chrome.app.runtime.onLaunched(function(intent) {
// App Launched
if(intent.action == "http://webinents.org/view" &amp;&amp;
intent.type == "application/atom+xml") {
@@ -92,7 +92,7 @@ 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) {
+chrome.app.runtime.onLaunched(function(intent) {
// App Launched
var data = intent.data;
});
@@ -109,7 +109,7 @@ chrome.experimental.app.onLaunched(function(intent) {
</p>
<pre>
-chrome.experimental.app.onLaunched(function(intent) {
+chrome.app.runtime.onLaunched(function(intent) {
// App Launched
var data = intent.data;
if(data instanceof FileEntry) {
@@ -140,7 +140,7 @@ using <code>intent.postResult</code>:
</p>
<pre>
-chrome.experimental.app.onLaunched(function(intent) {
+chrome.app.runtime.onLaunched(function(intent) {
// App Launched
console.log(intent.action);
console.log(intent.type);
@@ -211,7 +211,7 @@ window.navigator.webkitStartActivity(intent, onSuccess, onError);
<h3>Service</h3>
<pre>
-chrome.experimental.app.onLaunched(function(intent) {
+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