Permalink
Browse files

Add more window IDs

  • Loading branch information...
1 parent f8f973a commit ceecd4c85505f6271ccaea2b556d4c49966cfdd9 @joemarini joemarini committed Oct 17, 2013
View
@@ -1,5 +1,6 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
+ id: "window1",
bounds: {
width: 640,
height: 480
@@ -2,7 +2,7 @@ chrome.app.runtime.onLaunched.addListener(function() {
// width 640 for font size 12
// 720 for font size 14
chrome.app.window.create('main.html', {
- frame: 'chrome', bounds: { width: 720, height: 400}, minWidth:720, minHeight: 400
+ frame: 'chrome', id: "codewin", bounds: { width: 720, height: 400}, minWidth:720, minHeight: 400
});
});
@@ -15,7 +15,7 @@ chrome.commands.onCommand.addListener(function(command) {
if (command == "cmdNew") {
chrome.app.window.create('main.html', {
- frame: 'chrome', bounds: { width: 720, height: 400}, minWidth:720, minHeight: 400
+ frame: 'chrome', id: "codewin", bounds: { width: 720, height: 400}, minWidth:720, minHeight: 400
});
}
});
View
@@ -124,7 +124,7 @@ function handleNewButton() {
editor.setValue("");
} else {
chrome.app.window.create('main.html', {
- frame: 'chrome', bounds: { width: 720, height: 400}
+ frame: 'chrome', id: "codewin", bounds: { width: 720, height: 400}
});
}
}
View
@@ -12,6 +12,7 @@ chrome.app.runtime.onLaunched.addListener(function() {
}, 1000);
chrome.app.window.create('index.html', {
+ id: "mainwin",
bounds: {
width: 565,
height: 400
@@ -5,5 +5,5 @@
// This function gets called in the packaged app model on launch.
chrome.app.runtime.onLaunched.addListener(function() {
console.log("Push Messaging Roundtrip Sample App Launched!");
- chrome.app.window.create('push_messaging_roundtrip_sample.html');
+ chrome.app.window.create('push_messaging_roundtrip_sample.html', {id: "mainwin"});
});
@@ -1,3 +1,6 @@
chrome.app.runtime.onLaunched.addListener(function () {
- chrome.app.window.create("window.html", {bounds: {width:600, height:400}});
+ chrome.app.window.create("window.html", {
+ id: "mainwin",
+ bounds: {width:600, height:400}
+ });
});
View
@@ -6,5 +6,8 @@
*/
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('mainpage.html',
- {bounds: {width: 500, height: 309}});
+ {
+ id: "mainwin",
+ bounds: {width: 500, height: 309}
+ });
});
@@ -6,5 +6,8 @@
*/
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('main.html',
- {bounds: {width: 400, height: 350}});
+ {
+ id: "mainwin",
+ bounds: {width: 400, height: 350}
+ });
});
@@ -1,5 +1,6 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('main.html', {
+ id: "mainwin",
bounds: {
top: 0,
left: 0,
@@ -1,4 +1,8 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('comm.html#inlink',
- {frame: 'custom', bounds: {width: 343, height: 600}});
+ {
+ frame: 'custom',
+ id: "mainwin",
+ bounds: {width: 343, height: 600}
+ });
});
@@ -1,5 +1,6 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
+ id: "mainwin",
bounds: {
width: 320,
height: 240
View
@@ -1,5 +1,6 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('main.html', {
+ id: "mainwin",
bounds: {
'width': 400,
'height': 500
@@ -1,5 +1,9 @@
chrome.app.runtime.onLaunched.addListener(function (arg) {
chrome.app.window.create(
'main.html',
- { bounds: { width:780, height:490}, type:"shell" });
+ {
+ id: "mainwin",
+ bounds: { width:780, height:490},
+ type:"shell"
+ });
});
View
@@ -12,6 +12,7 @@
*/
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
+ id: "mainwin",
bounds: {
height: 550,
width: 800
View
@@ -1,5 +1,6 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
+ id: "mainwin",
"bounds": { "width": 1024, "height": 768 }
});
});
@@ -68,7 +68,7 @@ Commands.addCommand("echo",
Commands.addCommand("open",
"Open the given URL",
function(args) {
- chrome.app.window.create('commands/webview.html', {bounds: {width: 600, height: 400}},
+ chrome.app.window.create('commands/webview.html', {id: "mainwin",bounds: {width: 600, height: 400}},
function(w) {
w.contentWindow.addEventListener("DOMContentLoaded", function() {
var doc=w.contentWindow.document;
View
@@ -13,7 +13,7 @@ chrome.app.runtime.onLaunched.addListener(function() {
commandWindow.focus();
} else {
chrome.app.window.create('index.html',
- {bounds: {width: 500, height: 309, left: 0}},
+ {id: "mainwin", bounds: {width: 500, height: 309, left: 0}},
function(w) {
commandWindow = w;
});
View
@@ -6,6 +6,7 @@
*/
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('terminal.html', {
+ id: "mainwin",
bounds: {
width: 880,
height: 480
View
@@ -1,5 +1,6 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('echo_mco.html', {
+ id: "mainwin",
bounds: {
width: 680,
height: 480
View
@@ -43,6 +43,7 @@ AppWindow.prototype.createWindow_ = function(settings) {
chrome.app.window.create(
'main.html',
{
+ id: "mainwin",
bounds: { width: settings.width, height: settings.height },
frame: 'chrome'
},
@@ -6,5 +6,9 @@
*/
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html',
- {frame:"none", bounds: {width: 500, height: 400}});
+ {
+ id: "mainwin",
+ frame:"none",
+ bounds: {width: 500, height: 400}
+ });
});
View
@@ -6,6 +6,7 @@
*/
chrome.app.runtime.onLaunched.addListener(function(intentData) {
chrome.app.window.create('index.html', {
+ id: "mainwin",
bounds: {
width: 500,
height: 640
@@ -1,5 +1,6 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('window.html', {
+ id: "mainwin",
bounds: {
width: 700,
height: 600
View
@@ -24,6 +24,7 @@ function launch() {
// create the original window
chrome.app.window.create('original.html', {
+ id: "mainwin",
bounds: {
top: 128,
left: 128,
@@ -43,6 +44,7 @@ function launch() {
windows.push(originalWindow);
chrome.app.window.create('copycat.html', {
+ id: "copywin",
bounds: {
top: 128,
left: 428 + 5,

0 comments on commit ceecd4c

Please sign in to comment.