fix: emit 'shutdown' outside -[NSApplication terminate:] (#24111)
This commit is contained in:
parent
0b830ba9e5
commit
9c7d73c6d6
3 changed files with 21 additions and 2 deletions
|
@ -17,6 +17,7 @@
|
|||
base::scoped_nsobject<NSUserActivity> currentActivity_;
|
||||
NSCondition* handoffLock_;
|
||||
BOOL updateReceived_;
|
||||
BOOL userStoppedShutdown_;
|
||||
base::Callback<bool()> shouldShutdown_;
|
||||
}
|
||||
|
||||
|
@ -25,6 +26,9 @@
|
|||
- (void)setShutdownHandler:(base::Callback<bool()>)handler;
|
||||
- (void)registerURLHandler;
|
||||
|
||||
// Called when macOS itself is shutting down.
|
||||
- (void)willPowerOff:(NSNotification*)notify;
|
||||
|
||||
// CrAppProtocol:
|
||||
- (BOOL)isHandlingSendEvent;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue