Permalink
Browse files

Updated line endings

  • Loading branch information...
1 parent 7c005e0 commit 91757d2da1c298bd05be37b556c7076d886e35ca @paullewis paullewis committed Aug 6, 2012
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -1,15 +1,15 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
- <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
-]>
-<svg version="1.1"
- xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
- x="0px" y="0px" width="21px" height="21px" viewBox="0 0 21 21" overflow="visible" enable-background="new 0 0 21 21"
- xml:space="preserve">
-<defs>
-</defs>
-<path d="M10.5,7C8.566,7,6.531,8.098,5.097,9.597L3,7.5V14h6.5l-2.259-2.259C8.125,10.747,9.904,9.1,12,9.1
- c2.434,0,4.656,1.041,6,3.9C17,9,14,7,10.5,7z"/>
-<rect opacity="0" fill="#4387FD" width="21" height="21"/>
-</svg>
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
+ <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
+]>
+<svg version="1.1"
+ xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
+ x="0px" y="0px" width="21px" height="21px" viewBox="0 0 21 21" overflow="visible" enable-background="new 0 0 21 21"
+ xml:space="preserve">
+<defs>
+</defs>
+<path d="M10.5,7C8.566,7,6.531,8.098,5.097,9.597L3,7.5V14h6.5l-2.259-2.259C8.125,10.747,9.904,9.1,12,9.1
+ c2.434,0,4.656,1.041,6,3.9C17,9,14,7,10.5,7z"/>
+<rect opacity="0" fill="#4387FD" width="21" height="21"/>
+</svg>
View
@@ -1,12 +1,12 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
-<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="100px" height="55.154px" viewBox="0 0 100 55.154" enable-background="new 0 0 100 55.154" xml:space="preserve">
-<path d="M77.959,11.074c-3.73,0-7.34,0.932-10.543,2.682C63.516,5.536,55.109,0,45.693,0c-12.85,0-23.376,10.141-23.998,22.838
- c-5.901,0.703-10.961,4.62-13.149,10.089C3.643,34.152,0,38.595,0,43.873c0,6.22,5.061,11.281,11.282,11.281h32.974
- c0-5.915,0-11.83,0-17.744c-1.384,0-4.083,0-5.468,0c-1.058,0-1.413-1.208-0.802-1.94c3.298-3.962,7.912-7.925,11.21-11.887
- c0.242-0.291,0.528-0.397,0.803-0.378c0.275-0.019,0.561,0.087,0.803,0.378c3.298,3.962,7.913,7.925,11.21,11.887
- c0.61,0.732,0.256,1.94-0.803,1.94c-1.385,0-4.084,0-5.468,0c0,5.914,0,11.829,0,17.744h22.216c12.154,0,22.041-9.887,22.041-22.04
- S90.111,11.074,77.959,11.074z"/>
-</svg>
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363) -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
+<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ width="100px" height="55.154px" viewBox="0 0 100 55.154" enable-background="new 0 0 100 55.154" xml:space="preserve">
+<path d="M77.959,11.074c-3.73,0-7.34,0.932-10.543,2.682C63.516,5.536,55.109,0,45.693,0c-12.85,0-23.376,10.141-23.998,22.838
+ c-5.901,0.703-10.961,4.62-13.149,10.089C3.643,34.152,0,38.595,0,43.873c0,6.22,5.061,11.281,11.282,11.281h32.974
+ c0-5.915,0-11.83,0-17.744c-1.384,0-4.083,0-5.468,0c-1.058,0-1.413-1.208-0.802-1.94c3.298-3.962,7.912-7.925,11.21-11.887
+ c0.242-0.291,0.528-0.397,0.803-0.378c0.275-0.019,0.561,0.087,0.803,0.378c3.298,3.962,7.913,7.925,11.21,11.887
+ c0.61,0.732,0.256,1.94-0.803,1.94c-1.385,0-4.084,0-5.468,0c0,5.914,0,11.829,0,17.744h22.216c12.154,0,22.041-9.887,22.041-22.04
+ S90.111,11.074,77.959,11.074z"/>
+</svg>
View
@@ -2,26 +2,25 @@
<html>
<head>
<!--
- Hello World App
+
+ 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>
- <style>
-
- body {
- background: url("hello_world.png") no-repeat;
- }
-
- h1 {
- text-align: center;
- width: 100%;
- line-height: 120%;
- padding-top: 200px;
- font-family: Arial, sans-serif;
- color: rgb(66,66,66);
- letter-spacing: -0.05em;
- }
- </style>
+ <link href="styles/main.css" rel="stylesheet">
</head>
<body>
<h1>Hello, World!</h1>
@@ -0,0 +1,13 @@
+body {
+ background: url("hello_world.png") no-repeat;
+}
+
+h1 {
+ text-align: center;
+ width: 100%;
+ line-height: 120%;
+ padding-top: 200px;
+ font-family: Arial, sans-serif;
+ color: rgb(66,66,66);
+ letter-spacing: -0.05em;
+}
View
@@ -1,52 +1,52 @@
-function onImageFetched(e) {
- var elem = document.getElementById('user_info');
- if (!elem) return;
- if (this.status != 200) return;
- var imgElem = document.createElement('img');
- imgElem.src = window.webkitURL.createObjectURL(this.response);
- elem.appendChild(imgElem);
-}
-
-function fetchImageBytes(user_info) {
- if (!user_info || !user_info.picture) return;
- var xhr = new XMLHttpRequest();
- xhr.open('GET', user_info.picture, true);
- xhr.responseType = 'blob';
- xhr.onload = onImageFetched;
- xhr.send();
-}
-
-function populateUserInfo(user_info) {
- var elem = document.getElementById('user_info');
- if (!elem) return;
- var nameElem = document.createElement('div');
- nameElem.innerHTML = "<b>Hello " + user_info.name + "</b>";
- elem.appendChild(nameElem);
- fetchImageBytes(user_info);
-}
-
-function onUserInfoFetched(e) {
- if (this.status != 200) return;
- console.log("Got the following user info: " + this.response);
- var user_info = JSON.parse(this.response);
- populateUserInfo(user_info);
-}
-
-function onGetAuthToken(auth_token) {
- if (!auth_token) {
- document.getElementById('user_info').innerHTML = "Not signed in to Chrome, Sign in to Chrome first";
- return;
- }
- // Use the auth token to do an XHR to get the user information.
- var xhr = new XMLHttpRequest();
- xhr.open('GET', 'https://www.googleapis.com/oauth2/v1/userinfo?alt=json');
- xhr.setRequestHeader('Authorization', 'Bearer ' + auth_token);
- xhr.onload = onUserInfoFetched;
- xhr.send();
-}
-
-function getUserInfo() {
- chrome.experimental.identity.getAuthToken({ 'interactive': false }, onGetAuthToken);
-}
-
-window.onload = getUserInfo;
+function onImageFetched(e) {
+ var elem = document.getElementById('user_info');
+ if (!elem) return;
+ if (this.status != 200) return;
+ var imgElem = document.createElement('img');
+ imgElem.src = window.webkitURL.createObjectURL(this.response);
+ elem.appendChild(imgElem);
+}
+
+function fetchImageBytes(user_info) {
+ if (!user_info || !user_info.picture) return;
+ var xhr = new XMLHttpRequest();
+ xhr.open('GET', user_info.picture, true);
+ xhr.responseType = 'blob';
+ xhr.onload = onImageFetched;
+ xhr.send();
+}
+
+function populateUserInfo(user_info) {
+ var elem = document.getElementById('user_info');
+ if (!elem) return;
+ var nameElem = document.createElement('div');
+ nameElem.innerHTML = "<b>Hello " + user_info.name + "</b>";
+ elem.appendChild(nameElem);
+ fetchImageBytes(user_info);
+}
+
+function onUserInfoFetched(e) {
+ if (this.status != 200) return;
+ console.log("Got the following user info: " + this.response);
+ var user_info = JSON.parse(this.response);
+ populateUserInfo(user_info);
+}
+
+function onGetAuthToken(auth_token) {
+ if (!auth_token) {
+ document.getElementById('user_info').innerHTML = "Not signed in to Chrome, Sign in to Chrome first";
+ return;
+ }
+ // Use the auth token to do an XHR to get the user information.
+ var xhr = new XMLHttpRequest();
+ xhr.open('GET', 'https://www.googleapis.com/oauth2/v1/userinfo?alt=json');
+ xhr.setRequestHeader('Authorization', 'Bearer ' + auth_token);
+ xhr.onload = onUserInfoFetched;
+ xhr.send();
+}
+
+function getUserInfo() {
+ chrome.experimental.identity.getAuthToken({ 'interactive': false }, onGetAuthToken);
+}
+
+window.onload = getUserInfo;
View
@@ -1,9 +1,9 @@
-<html>
- <head>
- <title>Identity API Sample App</title>
- <script src="identity.js"></script>
- </head>
- <body>
- <div id="user_info"></div>
- </body>
-</html>
+<html>
+ <head>
+ <title>Identity API Sample App</title>
+ <script src="identity.js"></script>
+ </head>
+ <body>
+ <div id="user_info"></div>
+ </body>
+</html>
View
@@ -1,3 +1,3 @@
-chrome.experimental.app.onLaunched.addListener(function() {
- chrome.app.window.create('index.html', { "width": 1024, "height": 768 });
-});
+chrome.experimental.app.onLaunched.addListener(function() {
+ chrome.app.window.create('index.html', { "width": 1024, "height": 768 });
+});
View
@@ -1,16 +1,16 @@
-{
- "name": "Identity API",
- "version": "1",
- "manifest_version": 2,
- "key": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefgh",
- "app": {
- "background": {
- "scripts": ["main.js"]
- }
- },
- "permissions": ["experimental"],
- "oauth2": {
- "client_id": "503955758982.apps.googleusercontent.com",
- "scopes": ["https://www.googleapis.com/auth/userinfo.profile"]
- }
-}
+{
+ "name": "Identity API",
+ "version": "1",
+ "manifest_version": 2,
+ "key": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefgh",
+ "app": {
+ "background": {
+ "scripts": ["main.js"]
+ }
+ },
+ "permissions": ["experimental"],
+ "oauth2": {
+ "client_id": "503955758982.apps.googleusercontent.com",
+ "scopes": ["https://www.googleapis.com/auth/userinfo.profile"]
+ }
+}
Oops, something went wrong.

0 comments on commit 91757d2

Please sign in to comment.