Hello World
Item logo image for Hello World

Hello World

4.6(

8 ratings

)
Developer Tools557 users
Item media 1 screenshot

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

  • Version
    2.1
  • Updated
    March 25, 2014
  • Offered by
    Chrome App Samples
  • Size
    593KiB
  • Languages
    English (United States)
  • Non-trader
    This 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

The developer has not provided any information about the collection or usage of your data.

Support

For help with questions, suggestions, or problems, visit the developer's support site

Google apps