andreasgal / B2G

Boot to Gecko aims to create a complete, standalone operating system for the open web.
https://wiki.mozilla.org/B2G
909 stars 158 forks source link

where is the source code for app.launch()? #310

Closed lltboe closed 12 years ago

lltboe commented 12 years ago

In lastest B2G source code, B2G\gaia\apps\system\js\windows\window_manager.js, exists code follow:


function start(origin) { if (isRunning(origin)) return;

var app = Applications.getByOrigin(origin);

app.launch();

}


I want get the source code for the method launch(), Thank you!

vingtetun commented 12 years ago

On 02/07/2012 11:36, lltboe wrote:

In lastest B2G source code, B2G\gaia\apps\system\js\windows\window_manager.js, exists code follow:


function start(origin) { if (isRunning(origin)) return;

 var app = Applications.getByOrigin(origin);

 app.launch();

}


I want get the source code for the method launch(), Thank you!

You want to digg a litlle bit but you want to read WebApps.js and WebApps.jsm in the source code of Gecko.

lltboe commented 12 years ago

I get the Webapps.jsm that you say, is B2G\gecko\dom\apps\src\Webapps.jsm?

After app.launch() done, it starts a new child thread? Or still in Main UI Thread?

lltboe commented 12 years ago

I get the Webapps.jsm that you say, is B2G\gecko\dom\apps\src\Webapps.jsm?

After app.launch() done, it starts a new child thread? Or still in Main UI Thread?

wang-bin commented 11 years ago

app is an object of mozIDOMApplication. defined in gecko/dom/interfaces/apps/nsIDOMApplicationRegistry.idl