Permalink
Browse files

Add IDs to sample apps that create windows

  • Loading branch information...
1 parent 870a751 commit 70fb580c94b604b087a7d229911603e68137eb08 @joemarini joemarini committed Oct 16, 2013
View
2 analytics/background.js
@@ -13,5 +13,5 @@
// limitations under the License.
chrome.app.runtime.onLaunched.addListener(function() {
- chrome.app.window.create('main.html', {}, function() {});
+ chrome.app.window.create('main.html', {"id": "analyticsWinID"}, function() {});
});
View
1 appengine_channelapi/app/main.js
@@ -6,6 +6,7 @@
*/
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
+ id: "appEngineSampleID",
bounds: {
width: 500,
height: 300
View
1 appsquare/background.js
@@ -1,5 +1,6 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('main.html', {
+ id: "appSquareID",
bounds: {
width: 300,
height: 600
View
1 browser/main.js
@@ -24,6 +24,7 @@ chrome.app.runtime.onRestarted.addListener(function() {
*/
function runApp() {
chrome.app.window.create('browser.html', {
+ id: "browserWinID",
bounds: {
'width': 1024,
'height': 768
View
1 calculator/main.js
@@ -12,6 +12,7 @@
*/
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('calculator.html', {
+ id: "calcWinID",
bounds: {
width: 244,
height: 380
View
1 camera-capture/background.js
@@ -6,6 +6,7 @@
*/
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
+ id: "camCaptureID",
bounds: {
width: 700,
height: 600
View
1 clock/main.js
@@ -12,6 +12,7 @@
*/
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
+ id: "clockWinID",
bounds: {
height: 550,
width: 800,
View
1 diff/js/background.js
@@ -6,6 +6,7 @@
function onLaunched(launchData) {
chrome.app.window.create('main.html', {
+ id: "diffWinID",
bounds: {
width: 1270,
height: 800
View
1 frameless-window/background.js
@@ -1,6 +1,7 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create("frameless_window.html",
{ frame: "none",
+ id: "framelessWinID",
bounds: {
width: 360,
height: 300,
View
1 hello-world-sync/main.js
@@ -1,5 +1,6 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
+ id: "helloWorldSyncID",
bounds: {
width: 500,
height: 415
View
1 hello-world/README.md
@@ -16,6 +16,7 @@ chrome.app.runtime.onLaunched.addListener(function() {
var height = 300;
chrome.app.window.create('index.html', {
+ id: "helloWorldID",
bounds: {
width: width,
height: height,
View
1 hello-world/main.js
@@ -12,6 +12,7 @@ chrome.app.runtime.onLaunched.addListener(function() {
var height = 300;
chrome.app.window.create('index.html', {
+ id: "helloWorldID",
bounds: {
width: width,
height: height,
View
1 instagram-auth/main.js
@@ -6,6 +6,7 @@
*/
chrome.app.runtime.onLaunched.addListener(function(intentData) {
chrome.app.window.create('index.html', {
+ id: "instagramAuthWinID",
bounds: {
width: 500,
height: 309
View
1 keyboard-handler/background.js
@@ -11,6 +11,7 @@ chrome.app.runtime.onLaunched.addListener(function() {
};
chrome.app.window.create('window.html', {
+ id: "keyboardWinID",
bounds: b
});
});
View
5 messaging/app1/main.js
@@ -6,6 +6,9 @@
*/
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html',
- {bounds: {width: 800, height: 500}});
+ {
+ id: "messagingEx1ID",
+ bounds: {width: 800, height: 500}
+ });
});
//function addExternalMessageListener
View
5 messaging/app2/main.js
@@ -6,6 +6,9 @@
*/
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html',
- {bounds: {width: 800, height: 500}});
+ {
+ id: "messagingEx2ID",
+ bounds: {width: 800, height: 500}
+ });
});
//function addExternalMessageListener

0 comments on commit 70fb580

Please sign in to comment.