Mouse forward on macOS (#12281)
* Accept mouse events according to the forward parameter on macOS. * Update BrowserWindow docs: mouse forward is available on macOS
This commit is contained in:
parent
0e5aaab0b5
commit
6b5e09478c
3 changed files with 17 additions and 5 deletions
|
@ -89,7 +89,7 @@ class NativeWindowMac : public NativeWindow {
|
|||
std::string GetRepresentedFilename() override;
|
||||
void SetDocumentEdited(bool edited) override;
|
||||
bool IsDocumentEdited() override;
|
||||
void SetIgnoreMouseEvents(bool ignore, bool) override;
|
||||
void SetIgnoreMouseEvents(bool ignore, bool forward) override;
|
||||
void SetContentProtection(bool enable) override;
|
||||
void SetBrowserView(NativeBrowserView* browser_view) override;
|
||||
void SetParentWindow(NativeWindow* parent) override;
|
||||
|
@ -143,6 +143,8 @@ class NativeWindowMac : public NativeWindow {
|
|||
|
||||
void InstallView(NSView* view);
|
||||
|
||||
void SetForwardMouseMessages(bool forward);
|
||||
|
||||
base::scoped_nsobject<AtomNSWindow> window_;
|
||||
base::scoped_nsobject<AtomNSWindowDelegate> window_delegate_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue