Add 'open-url' event for app API. Fixes #36.
This commit is contained in:
parent
ce569ebf78
commit
23dd5b4da8
7 changed files with 38 additions and 0 deletions
|
@ -36,6 +36,12 @@ void App::OnOpenFile(bool* prevent_default, const std::string& file_path) {
|
|||
*prevent_default = Emit("open-file", &args);
|
||||
}
|
||||
|
||||
void App::OnOpenURL(const std::string& url) {
|
||||
base::ListValue args;
|
||||
args.AppendString(url);
|
||||
Emit("open-url", &args);
|
||||
}
|
||||
|
||||
void App::OnWillFinishLaunching() {
|
||||
Emit("will-finish-launching");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue