|
@@ -1485,8 +1485,14 @@ bool NativeWindowMac::IsDocumentEdited() {
|
|
|
return [window_ isDocumentEdited];
|
|
|
}
|
|
|
|
|
|
-void NativeWindowMac::SetIgnoreMouseEvents(bool ignore, bool) {
|
|
|
+void NativeWindowMac::SetIgnoreMouseEvents(bool ignore, bool forward) {
|
|
|
[window_ setIgnoresMouseEvents:ignore];
|
|
|
+
|
|
|
+ if (!ignore) {
|
|
|
+ SetForwardMouseMessages(NO);
|
|
|
+ } else {
|
|
|
+ SetForwardMouseMessages(forward);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void NativeWindowMac::SetContentProtection(bool enable) {
|
|
@@ -1823,6 +1829,10 @@ void NativeWindowMac::InstallView(NSView* view) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+void NativeWindowMac::SetForwardMouseMessages(bool forward) {
|
|
|
+ [window_ setAcceptsMouseMovedEvents:forward];
|
|
|
+}
|
|
|
+
|
|
|
void NativeWindowMac::SetStyleMask(bool on, NSUInteger flag) {
|
|
|
// Changing the styleMask of a frameless windows causes it to change size so
|
|
|
// we explicitly disable resizing while setting it.
|