🏁 Add API to forward mouse messages.
As opposed to the existing setIgnoreMouseEvents this call makes Chromium aware of mouse movements, allowing the user to stop forwarding according to movements in the webpage.
This commit is contained in:
parent
5e06ac11e9
commit
a84fa0eecb
6 changed files with 111 additions and 0 deletions
|
@ -787,6 +787,10 @@ void Window::SetAppDetails(const mate::Dictionary& options) {
|
|||
relaunch_command, relaunch_display_name,
|
||||
window_->GetAcceleratedWidget());
|
||||
}
|
||||
|
||||
void Window::SetForwardMouseMessages(bool forward) {
|
||||
window_->SetForwardMouseMessages(forward);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(TOOLKIT_VIEWS)
|
||||
|
@ -1060,6 +1064,7 @@ void Window::BuildPrototype(v8::Isolate* isolate,
|
|||
.SetMethod("setThumbnailClip", &Window::SetThumbnailClip)
|
||||
.SetMethod("setThumbnailToolTip", &Window::SetThumbnailToolTip)
|
||||
.SetMethod("setAppDetails", &Window::SetAppDetails)
|
||||
.SetMethod("setForwardMouseMessages", &Window::SetForwardMouseMessages)
|
||||
#endif
|
||||
#if defined(TOOLKIT_VIEWS)
|
||||
.SetMethod("setIcon", &Window::SetIcon)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue