mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 882142 - Add an interface attribute to determine if the app is restarting. r=jimm
This commit is contained in:
parent
5fe8c7843a
commit
c0c7ce39ad
@ -515,6 +515,13 @@ nsAppStartup::GetShuttingDown(bool *aResult)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsAppStartup::GetRestarting(bool *aResult)
|
||||
{
|
||||
*aResult = mRestart;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsAppStartup::SetInterrupted(bool aInterrupted)
|
||||
{
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
interface nsICmdLineService;
|
||||
|
||||
[scriptable, uuid(2b51b67f-6f05-4145-b37e-7369bbc92b19)]
|
||||
[scriptable, uuid(380618f8-479a-435b-b58e-7398ab937531)]
|
||||
interface nsIAppStartup : nsISupports
|
||||
{
|
||||
/**
|
||||
@ -135,6 +135,11 @@ interface nsIAppStartup : nsISupports
|
||||
*/
|
||||
readonly attribute boolean shuttingDown;
|
||||
|
||||
/**
|
||||
* True if the application is being restarted
|
||||
*/
|
||||
readonly attribute boolean restarting;
|
||||
|
||||
/**
|
||||
* Returns an object with main, process, firstPaint, sessionRestored properties.
|
||||
* Properties may not be available depending on platform or application
|
||||
|
Loading…
Reference in New Issue
Block a user