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

Unified Diff: native_client_sdk/src/examples/resources/background.js

Issue 13488007: [NaCl SDK] Make the SDK examples buildable as a packaged app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license headers Created 7 years, 8 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: native_client_sdk/src/examples/resources/background.js
diff --git a/native_client_sdk/src/examples/resources/background.js b/native_client_sdk/src/examples/resources/background.js
new file mode 100644
index 0000000000000000000000000000000000000000..1fc5a19b3ac8722945ca5283e58162ac9ccaa4d3
--- /dev/null
+++ b/native_client_sdk/src/examples/resources/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: 1024,
+ height: 800,
+ frame: 'none'
+ });
+}
+
+chrome.app.runtime.onLaunched.addListener(onLaunched);
« no previous file with comments | « native_client_sdk/src/examples/pi_generator/example.dsc ('k') | native_client_sdk/src/examples/resources/index.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698