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
|
@ -42,6 +42,10 @@ bool Browser::OpenFile(const std::string& file_path) {
|
|||
return prevent_default;
|
||||
}
|
||||
|
||||
void Browser::OpenURL(const std::string& url) {
|
||||
FOR_EACH_OBSERVER(BrowserObserver, observers_, OnOpenURL(url));
|
||||
}
|
||||
|
||||
void Browser::WillFinishLaunching() {
|
||||
FOR_EACH_OBSERVER(BrowserObserver, observers_, OnWillFinishLaunching());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue