// These snippets contain code that was valid at the time of the June 2012 Google I/O // presentation during which we used this code editor. The APIs have evolved since then, // but we are not necessarily keeping these snippets up to date. Please don't expect // that they'll work. var SNIPPETS = { "Hello World: Manifest": '{\n "manifest_version": 2,\n "name": "Hello World",\n "version": "0.0.1",\n "app": {\n "background": {\n "scripts": ["main.js"]\n }\n },\n}\n', "Hello World: main.js": "chrome.app.runtime.onLaunched.addListener(function() {\n chrome.app.window.create('window.html', {\n bounds: { \n width: 400,\n height: 400\n }});\n})", "Hello World: window.html": '\n\n
\n