Set up legacy window subclass and mouse hook during setForwardMouseMessages.
As opposed to when a legacy window is created/destroyed. This enables forwarding on a per-window basis.
This commit is contained in:
parent
0736de1e8d
commit
60c0bf1636
3 changed files with 39 additions and 39 deletions
|
@ -1064,13 +1064,6 @@ 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