Permalink
Browse files

Added links to APIs

  • Loading branch information...
1 parent 3f813b6 commit 867b5db86cf1a5c04eb8295b00d6e54555ca0fd2 @paullewis paullewis committed Aug 6, 2012
Showing with 12 additions and 18 deletions.
  1. +6 −1 hello-world/README.md
  2. +0 −17 hello-world/index.html
  3. +6 −0 hello-world/main.js
@@ -2,7 +2,7 @@
This is the most basic application that one can create. It requires the experimental permissions because it makes use of the `chrome.experimental.app.onLaunched` event to create the application's window:
-```javascript
+```javascript
// Main.js
chrome.experimental.app.onLaunched.addListener(function() {
chrome.app.window.create('index.html',
@@ -14,5 +14,10 @@ chrome.experimental.app.onLaunched.addListener(function() {
* Experimental
+## APIs
+
+* [Experimental App](http://developer.chrome.com/trunk/apps/experimental.app.html)
+* [chrome.app.window](http://developer.chrome.com/trunk/apps/app.window.html)
+
---
Last updated: 2012-07-31 by paullewis
@@ -1,23 +1,6 @@
<!DOCTYPE html>
<html>
<head>
- <!--
-
- Copyright 2012 - Google, Inc.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- -->
<meta charset="utf-8">
<title>Hello World</title>
<link href="styles/main.css" rel="stylesheet">
View
@@ -1,3 +1,9 @@
+/**
+ * Listens for the app launching then creates the window
+ *
+ * @see http://developer.chrome.com/trunk/apps/experimental.app.html
+ * @see http://developer.chrome.com/trunk/apps/app.window.html
+ */
chrome.experimental.app.onLaunched.addListener(function() {
chrome.app.window.create('index.html',
{width: 500, height: 309});

0 comments on commit 867b5db

Please sign in to comment.