Add a focus
event to BrowserWindow
- Tested in OSX - Untested in GTK, but I expect it should work - Did not see any similar constructs for notifications in Windows
This commit is contained in:
parent
9721c4e761
commit
b08ec402d2
9 changed files with 27 additions and 0 deletions
|
@ -368,6 +368,10 @@ void NativeWindow::NotifyWindowBlur() {
|
|||
FOR_EACH_OBSERVER(NativeWindowObserver, observers_, OnWindowBlur());
|
||||
}
|
||||
|
||||
void NativeWindow::NotifyWindowFocus() {
|
||||
FOR_EACH_OBSERVER(NativeWindowObserver, observers_, OnWindowFocus());
|
||||
}
|
||||
|
||||
// In atom-shell all reloads and navigations started by renderer process would
|
||||
// be redirected to this method, so we can have precise control of how we
|
||||
// would open the url (in our case, is to restart the renderer process). See
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue