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

Unified Diff: chrome/common/extensions/docs/examples/extensions/calculator/main.js

Issue 9969087: Switch platform apps from a declarative launch container to handling an onLaunched event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review Created 8 years, 9 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/examples/extensions/calculator/main.js
diff --git a/chrome/common/extensions/docs/examples/extensions/calculator/main.js b/chrome/common/extensions/docs/examples/extensions/calculator/main.js
new file mode 100644
index 0000000000000000000000000000000000000000..f72736b62b498feb1e0abcb7a965ebc438b51638
--- /dev/null
+++ b/chrome/common/extensions/docs/examples/extensions/calculator/main.js
@@ -0,0 +1,8 @@
+chrome.experimental.runtime.onLaunched.addListener(function() {
+ chrome.windows.create({
+ url: 'calculator.html',
+ type: 'shell',
+ width: 217,
+ height: 223
+ });
+});

Powered by Google App Engine
This is Rietveld 408576698