Permalink
Browse files

Rename experimental.app.onLaunched to app.runtime.onLaunched in all s…

…amples. Also, updated manifest.json and README files where appropriate.
  • Loading branch information...
1 parent 1d07177 commit 8013e3a5760e7056712040df6b49eac1cdb92855 @miu-chromium miu-chromium committed Aug 15, 2012
Showing with 75 additions and 160 deletions.
  1. +2 −8 analytics/README.md
  2. +2 −2 analytics/launch.js
  3. +0 −1 analytics/manifest.json
  4. +1 −1 appsquare/background.js
  5. +1 −2 browser-tag/README.md
  6. +2 −2 browser-tag/main.js
  7. +0 −1 browser-tag/manifest.json
  8. +2 −8 calculator/README.md
  9. +1 −1 calculator/main.js
  10. +1 −4 calculator/manifest.json
  11. +1 −1 camera-capture/background.js
  12. +0 −1 camera-capture/manifest.json
  13. +1 −1 context-menu/main.js
  14. +1 −1 context-menu/manifest.json
  15. +3 −5 diff/js/background.js
  16. +1 −2 diff/manifest.json
  17. +2 −2 dojo/build.sh
  18. +2 −2 filesystem-access/background.js
  19. +0 −1 filesystem-access/manifest.json
  20. +1 −1 gdocs/js/background.js
  21. +6 −12 hello-world/README.md
  22. +2 −2 hello-world/main.js
  23. +1 −2 hello-world/manifest.json
  24. +1 −1 identity/main.js
  25. +1 −1 io2012-presentation/helloworld/main.js
  26. +1 −4 io2012-presentation/helloworld/manifest.json
  27. +2 −6 io2012-presentation/helloworld/snippets
  28. +1 −1 io2012-presentation/js/main.js
  29. +0 −1 io2012-presentation/manifest.json
  30. +1 −1 io2012-presentation/servo/background.js
  31. +0 −1 io2012-presentation/servo/manifest.json
  32. +1 −1 ioio/background.js
  33. +1 −1 mini-code-edit/background.js
  34. +0 −1 mini-code-edit/manifest.json
  35. +2 −2 mini-code-edit/snippets.js
  36. +2 −8 sandbox/README.md
  37. +2 −2 sandbox/main.js
  38. +0 −1 sandbox/manifest.json
  39. +2 −8 sandboxed-content/README.md
  40. +2 −2 sandboxed-content/main.js
  41. +0 −3 sandboxed-content/manifest.json
  42. +1 −1 serial-control-signals/background.js
  43. +0 −1 serial-control-signals/manifest.json
  44. +1 −2 serial/adkjs/app/js/background.js
  45. +0 −3 serial/adkjs/app/manifest.json
  46. +1 −1 serial/ledtoggle/launch.js
  47. +1 −2 serial/ledtoggle/manifest.json
  48. +1 −1 servo/background.js
  49. +0 −1 servo/manifest.json
  50. +1 −7 singleton/README.md
  51. +2 −2 singleton/main.js
  52. +1 −2 singleton/manifest.json
  53. +1 −1 storage/background.js
  54. +0 −1 storage/manifest.json
  55. +1 −1 telnet/launch.js
  56. +2 −4 text-editor/background.js
  57. +0 −1 text-editor/manifest.json
  58. +1 −1 udp/main.js
  59. +1 −1 usb/knob/background.js
  60. +2 −2 weather/main.js
  61. +0 −1 weather/manifest.json
  62. +1 −1 webintents/js/background.js
  63. +0 −3 webintents/manifest.json
  64. +1 −7 windows/README.md
  65. +2 −2 windows/main.js
  66. +1 −2 windows/manifest.json
  67. +1 −1 zephyr_hxm/background.js
View
@@ -9,18 +9,12 @@ placed in a [sandbox](http://developer.chrome.com/trunk/apps/manifest.html#sandb
*Please note: You will need to modify ga_details.js to include real Google
Analytics credentials.*
-## Permissions
-
-* Experimental
-
-[See more on permissions](http://developer.chrome.com/trunk/apps/manifest.html#permissions)
-
## Resources
-* [Experimental App](http://developer.chrome.com/trunk/apps/experimental.app.html)
+* [Runtime](http://developer.chrome.com/trunk/apps/app.runtime.html)
* [Window](http://developer.chrome.com/trunk/apps/app.window.html)
* [CSP](http://developer.chrome.com/trunk/apps/app_csp.html)
* [Sandbox](http://developer.chrome.com/trunk/apps/manifest.html#sandbox)
---
-Last updated: 2012-08-10 by paullewis
+Last updated: 2012-08-14 by miu
View
@@ -1,10 +1,10 @@
/**
* Listens for the app launching then creates the window
*
- * @see http://developer.chrome.com/trunk/apps/experimental.app.html
+ * @see http://developer.chrome.com/trunk/apps/app.runtime.html
* @see http://developer.chrome.com/trunk/apps/app.window.html
*/
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('main.html',
{width: 480, height: 225});
});
@@ -10,7 +10,6 @@
"icons": {
"128": "icon_128.png"
},
- "permissions": ["experimental"],
"sandbox": {
"pages": ["embedded_ga_host.html"]
}
@@ -1,4 +1,4 @@
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('main.html', {
width: 300,
height: 600
@@ -6,7 +6,6 @@ The app's main window contains a `<browser>` that is sized to fit most of it (vi
## Permissions
-* Experimental
* browserTag
[See more on permissions](http://developer.chrome.com/trunk/apps/manifest.html#permissions)
@@ -16,4 +15,4 @@ The app's main window contains a `<browser>` that is sized to fit most of it (vi
* [Browser](http://developer.chrome.com/trunk/apps/app_external.html#browsertag)
---
-Last updated: 2012-08-08 by paullewis
+Last updated: 2012-08-14 by miu
View
@@ -1,10 +1,10 @@
/**
* Listens for the app launching then creates the window
*
- * @see http://developer.chrome.com/trunk/apps/experimental.app.html
+ * @see http://developer.chrome.com/trunk/apps/app.runtime.html
* @see http://developer.chrome.com/trunk/apps/app.window.html
*/
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('browser.html', {
'width': 1024,
'height': 768
@@ -12,7 +12,6 @@
}
},
"permissions": [
- "experimental",
"browserTag"
]
}
View
@@ -6,16 +6,10 @@ such as addition, multiplication, subtraction and division.
This sample also incorporates an MVC-style structure and requires jQuery for
DOM manipulation.
-## Permissions
-
-* Experimental
-
-[See more on permissions](http://developer.chrome.com/trunk/apps/manifest.html#permissions)
-
## APIs
-* [Experimental App](http://developer.chrome.com/trunk/apps/experimental.app.html)
+* [Runtime](http://developer.chrome.com/trunk/apps/app.runtime.html)
* [Window](http://developer.chrome.com/trunk/apps/app.window.html)
---
-Last updated: 2012-08-08 by paullewis
+Last updated: 2012-08-14 by miu
View
@@ -1,4 +1,4 @@
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('calculator.html', {
width: 244,
height: 380,
@@ -13,8 +13,5 @@
"icons": {
"16": "assets/icon-128x128.png",
"128": "assets/icon-128x128.png"
- },
- "permissions": [
- "experimental"
- ]
+ }
}
@@ -1,4 +1,4 @@
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
width: 700,
height: 600,
@@ -12,7 +12,6 @@
}
},
"permissions": [
- "experimental",
"audioCapture",
"videoCapture"
]
@@ -1,4 +1,4 @@
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('a.html', {top: 0, left: 0, width: 300, height: 300});
chrome.app.window.create('b.html', {top: 0, left: 310, width: 300, height: 300});
});
@@ -7,5 +7,5 @@
"scripts": ["main.js"]
}
},
- "permissions": ["experimental", "contextMenus"]
+ "permissions": ["contextMenus"]
}
@@ -4,15 +4,13 @@
* found in the LICENSE file.
**/
-function onLaunched(launchData) {
+chrome.app.runtime.onLaunched.addListener(function(launchData) {
chrome.app.window.create('main.html', {
width: 1270,
height: 800
});
-}
+});
-chrome.runtime.onInstalled.addListener(function() {
+chrome.runtime.onInstalled.addListener(function() {
chrome.storage.local.set({});
});
-
-chrome.experimental.app.onLaunched.addListener(onLaunched);
View
@@ -10,8 +10,7 @@
"scripts": ["js/background.js"]
}
},
- "permissions": ["experimental",
- "storage",
+ "permissions": ["storage",
"unlimitedStorage",
"fileSystem",
"fileSystemWrite",
View
@@ -31,7 +31,7 @@ EOF
function writeJS_accumulatebgtasks() {
cat ../${app}/$BGSCRIPT | \
- perl -pe "s/chrome.experimental.app.onLaunched.addListener\(/_dojo_set_app_launcher(\"$app_norm\", /g" |\
+ perl -pe "s/chrome.app.runtime.onLaunched.addListener\(/_dojo_set_app_launcher(\"$app_norm\", /g" |\
perl -pe "s%(chrome.app.window.create.*?[\"'])%\1$app/%g" \
>> ${BUILDDIR}/main.js
}
@@ -51,7 +51,7 @@ EOF
function writeJS_launch() {
cat > ${BUILDDIR}/background.js <<EOF
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
width: 600,
height: 800
@@ -1,5 +1,5 @@
-chrome.experimental.app.onLaunched.addListener(function(launchData) {
+chrome.app.runtime.onLaunched.addListener(function(launchData) {
chrome.app.window.create('index.html', {width: 800, height: 600}, function(win) {
- win.launchData = launchData;
+ win.launchData = launchData;
});
});
@@ -13,7 +13,6 @@
}
},
"permissions": [
- "experimental",
"fileSystem",
"fileSystemWrite"
],
@@ -1,4 +1,4 @@
-chrome.experimental.app.onLaunched.addListener(function(launchData) {
+chrome.app.runtime.onLaunched.addListener(function(launchData) {
chrome.app.window.create('../main.html', {
width: 800,
height: 600,
View
@@ -1,25 +1,19 @@
# Hello World
-This is the most basic application that one can create. It requires the experimental permissions because it makes use of the `chrome.experimental.app.onLaunched` event to create the application's window:
+This is the most basic application that one can create:
```javascript
// Main.js
-chrome.experimental.app.onLaunched.addListener(function() {
- chrome.app.window.create('index.html',
- {width: 500, height: 309});
+chrome.app.runtime.onLaunched.addListener(function() {
+ chrome.app.window.create('index.html',
+ {width: 500, height: 309});
});
```
-## Permissions
-
-* Experimental
-
-[See more on permissions](http://developer.chrome.com/trunk/apps/manifest.html#permissions)
-
## APIs
-* [Experimental App](http://developer.chrome.com/trunk/apps/experimental.app.html)
+* [Runtime](http://developer.chrome.com/trunk/apps/app.runtime.html)
* [Window](http://developer.chrome.com/trunk/apps/app.window.html)
---
-Last updated: 2012-07-31 by paullewis
+Last updated: 2012-08-14 by miu
View
@@ -1,10 +1,10 @@
/**
* Listens for the app launching then creates the window
*
- * @see http://developer.chrome.com/trunk/apps/experimental.app.html
+ * @see http://developer.chrome.com/trunk/apps/app.runtime.html
* @see http://developer.chrome.com/trunk/apps/app.window.html
*/
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html',
{width: 500, height: 309});
});
@@ -11,6 +11,5 @@
"background": {
"scripts": ["main.js"]
}
- },
- "permissions": ["experimental"]
+ }
}
View
@@ -1,3 +1,3 @@
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', { "width": 1024, "height": 768 });
});
@@ -1,4 +1,4 @@
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('window.html', {
width: 400,
height: 400
@@ -7,8 +7,5 @@
"background": {
"scripts": ["main.js"]
}
- },
- "permissions": [
- "experimental"
- ]
+ }
}
@@ -7,15 +7,11 @@ manifest:
"background": {
"scripts": ["main.js"]
}
- },
- "permissions": [
- "appWindow",
- "experimental"
- ]
+ }
}
main.js:
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('window.html', {
width: 400,
height: 400
@@ -3,7 +3,7 @@ var PRESENTATION_HEIGHT = 700;
var presentationWindow;
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
if (presentationWindow && !presentationWindow.closed) {
presentationWindow.chrome.app.window.focus();
return;
@@ -14,7 +14,6 @@
"128": "images/icon-128.png"
},
"permissions": [
- "experimental",
"storage",
"videoCapture"
]
@@ -1,4 +1,4 @@
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('main.html', {
top: 0,
left: 0,
@@ -12,7 +12,6 @@
},
"permissions": [
- "experimental",
"videoCapture"
]
}
View
@@ -1,4 +1,4 @@
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
width: 640,
height: 480
@@ -1,4 +1,4 @@
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
// width 640 for font size 12
// 720 for font size 14
chrome.app.window.create('main.html', {
@@ -11,7 +11,6 @@
},
"permissions": [
- "experimental",
"fileSystem",
"fileSystemWrite",
"unlimitedStorage",
@@ -3,8 +3,8 @@
// but we are not necessarily keeping these snippets up to date. Please don't expect
// that they'll work.
var SNIPPETS = {
- "Hello World: Manifest": '{\n "manifest_version": 2,\n "name": "Hello World",\n "version": "0.0.1",\n "app": {\n "background": {\n "scripts": ["main.js"]\n }\n },\n "permissions": [\n "experimental"\n ]\n}\n',
- "Hello World: main.js": "chrome.experimental.app.onLaunched.addListener(function() {\n chrome.app.window.create('window.html', {\n width: 400,\n height: 400\n });\n})",
+ "Hello World: Manifest": '{\n "manifest_version": 2,\n "name": "Hello World",\n "version": "0.0.1",\n "app": {\n "background": {\n "scripts": ["main.js"]\n }\n },\n}\n',
+ "Hello World: main.js": "chrome.app.runtime.onLaunched.addListener(function() {\n chrome.app.window.create('window.html', {\n width: 400,\n height: 400\n });\n})",
"Hello World: window.html": '<!DOCTYPE html>\n<html>\n <body>\n <h1>Hello World!</h1>\n </body>\n</html>',
"Hello World: window.html w/form": '<!DOCTYPE html>\n<html>\n <script src="window.js"></script>\n </head>\n <body> \n\n <form id="name-form">\n <input id="name-input" size="40">\n <input type="submit">\n </form>\n \n <h2>Hello <span id="output"></span></h2> \n </body>\n</html>',
"Hello World: window.js": "onload = function() {\n document.getElementById('name-form').onsubmit = function(e) {\n e.preventDefault();\n\n document.getElementById('output').innerHTML =\n document.getElementById('name-input').value;\n };\n};\n",
View
@@ -13,15 +13,9 @@ add the `sandbox` property to your app's [manifest file](http://developer.chrome
See more info on [using eval safely in packaged apps](http://developer.chrome.com/trunk/apps/sandboxingEval.html).
-## Permissions
-
-* Experimental
-
-[See more on permissions](http://developer.chrome.com/trunk/apps/manifest.html#permissions)
-
## APIs
-* [Experimental App](http://developer.chrome.com/trunk/apps/experimental.app.html)
+* [Runtime](http://developer.chrome.com/trunk/apps/app.runtime.html)
---
-Last updated: 2012-08-09 by paullewis
+Last updated: 2012-08-14 by miu
View
@@ -1,10 +1,10 @@
/**
* Listens for the app launching then creates the window
*
- * @see http://developer.chrome.com/trunk/apps/experimental.app.html
+ * @see http://developer.chrome.com/trunk/apps/app.runtime.html
* @see http://developer.chrome.com/trunk/apps/app.window.html
*/
-chrome.experimental.app.onLaunched.addListener(function() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('mainpage.html',
{width: 500, height: 309});
});
Oops, something went wrong. Retry.

1 comment on commit 8013e3a

@darrencauthon

I assume this is change coming through Canary, but I can say that last night with the latest public Canary build all of the samples were not functional. I had to checkout a commit before this in order to get any of the samples to work.

Please sign in to comment.