🏁 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
|
@ -1064,6 +1064,13 @@ void NativeWindowViews::SetEnabled(bool enable) {
|
|||
#endif
|
||||
}
|
||||
|
||||
#if defined(OS_WIN)
|
||||
void NativeWindowViews::SetForwardMouseMessages(bool forward) {
|
||||
forwarding_mouse_messages_ = forward;
|
||||
SetIgnoreMouseEvents(forward);
|
||||
}
|
||||
#endif
|
||||
|
||||
void NativeWindowViews::OnWidgetActivationChanged(
|
||||
views::Widget* widget, bool active) {
|
||||
if (widget != window_.get())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue