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

Unified Diff: examples/games/scummvm/packaged_app/background.js

Issue 37213005: Update scummvm to 1.6.0, also make it a packaged app. (Closed) Base URL: https://naclports.googlecode.com/svn/trunk/src
Patch Set: use default .scummvmrc to have games automatically "loaded" Created 7 years, 2 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: examples/games/scummvm/packaged_app/background.js
diff --git a/examples/games/scummvm/packaged_app/background.js b/examples/games/scummvm/packaged_app/background.js
new file mode 100644
index 0000000000000000000000000000000000000000..6b88bf00590a34e1d7fd6b3defd22b999980fd6c
--- /dev/null
+++ b/examples/games/scummvm/packaged_app/background.js
@@ -0,0 +1,13 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+function onLaunched(launchData) {
+ chrome.app.window.create('index.html', {
+ width: 640,
+ height: 800,
+ frame: 'none'
+ });
+}
+
+chrome.app.runtime.onLaunched.addListener(onLaunched);

Powered by Google App Engine
This is Rietveld 408576698