feat: allow macOS apps to set activation policies (#21983)

This commit is contained in:
Shelley Vohr 2020-02-05 19:12:25 +00:00 committed by GitHub
parent 3341a2c3b4
commit 303ca10846
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 42 additions and 0 deletions

View file

@ -1459,6 +1459,7 @@ void App::BuildPrototype(v8::Isolate* isolate,
base::BindRepeating(&Browser::UpdateCurrentActivity, browser))
.SetMethod("moveToApplicationsFolder", &App::MoveToApplicationsFolder)
.SetMethod("isInApplicationsFolder", &App::IsInApplicationsFolder)
.SetMethod("setActivationPolicy", &App::SetActivationPolicy)
#endif
.SetMethod("setAboutPanelOptions",
base::BindRepeating(&Browser::SetAboutPanelOptions, browser))