Chromium Code Reviews| 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); |