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

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: more fixes, moved resources out of build_tools directory 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..73acd2f3c1e07fbf55426236cba6f02f301b9762
--- /dev/null
+++ b/native_client_sdk/src/examples/resources/background.js
@@ -0,0 +1,9 @@
+function onLaunched(launchData) {
+ chrome.app.window.create('index.html', {
+ width: 1024,
+ height: 800,
+ frame: 'none'
+ });
+}
+
+chrome.app.runtime.onLaunched.addListener(onLaunched);

Powered by Google App Engine
This is Rietveld 408576698