Hello World
8 ratings
)Overview
Hello World This is a starter application. It contains a basic manifest file with no additional permissions. The manifest denotes a…
Hello World This is a starter application. It contains a basic manifest file with no additional permissions. The manifest denotes a background script, main.js, detailed below: ```javascript chrome.app.runtime.onLaunched.addListener(function() { // Center window on screen. var screenWidth = screen.availWidth; var screenHeight = screen.availHeight; var width = 500; var height = 300; chrome.app.window.create('index.html', { id: "helloWorldID", bounds: { width: width, height: height, left: Math.round((screenWidth-width)/2), top: Math.round((screenHeight-height)/2) } }); }); ``` This simply waits for the launch event for the application (chrome.app.runtime.onLaunched.addListener) and, at that point, creates a window using a basic HTML page, index.html, as the source. See the source code at https://github.com/GoogleChrome/chrome-app-samples/tree/master/hello-world This version was built from git commit 5d38663 https://github.com/GoogleChrome/chrome-app-samples/tree/5d38663/hello-world
4.6 out of 58 ratings
Google doesn't verify reviews. Learn more about results and reviews.
Details
- Version2.1
- UpdatedMarch 25, 2014
- Offered byChrome App Samples
- Size593KiB
- LanguagesEnglish (United States)
- Non-traderThis developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.
Privacy
Support
For help with questions, suggestions, or problems, visit the developer's support site