mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: add did-resign-active event on app (#38018)
feat: add did-resign-active event on app Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
@@ -787,6 +787,10 @@ void App::OnNewWindowForTab() {
|
||||
void App::OnDidBecomeActive() {
|
||||
Emit("did-become-active");
|
||||
}
|
||||
|
||||
void App::OnDidResignActive() {
|
||||
Emit("did-resign-active");
|
||||
}
|
||||
#endif
|
||||
|
||||
bool App::CanCreateWindow(
|
||||
|
||||
@@ -116,6 +116,7 @@ class App : public ElectronBrowserClient::Delegate,
|
||||
base::Value::Dict user_info) override;
|
||||
void OnNewWindowForTab() override;
|
||||
void OnDidBecomeActive() override;
|
||||
void OnDidResignActive() override;
|
||||
#endif
|
||||
|
||||
// content::ContentBrowserClient:
|
||||
|
||||
Reference in New Issue
Block a user