feat: allow macOS apps to set activation policies (#21983)
This commit is contained in:
parent
3341a2c3b4
commit
303ca10846
5 changed files with 42 additions and 0 deletions
|
@ -201,6 +201,8 @@ class App : public ElectronBrowserClient::Delegate,
|
|||
bool CanBrowserClientUseCustomSiteInstance();
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
void SetActivationPolicy(gin_helper::ErrorThrower thrower,
|
||||
const std::string& policy);
|
||||
bool MoveToApplicationsFolder(gin_helper::ErrorThrower, gin::Arguments* args);
|
||||
bool IsInApplicationsFolder();
|
||||
v8::Local<v8::Value> GetDockAPI(v8::Isolate* isolate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue