Make mouse forward option of setIgnoreMouseMessages and update documentation.
This commit is contained in:
parent
60c0bf1636
commit
3d33da7696
7 changed files with 28 additions and 31 deletions
|
@ -651,8 +651,11 @@ bool Window::IsDocumentEdited() {
|
|||
return window_->IsDocumentEdited();
|
||||
}
|
||||
|
||||
void Window::SetIgnoreMouseEvents(bool ignore) {
|
||||
return window_->SetIgnoreMouseEvents(ignore);
|
||||
void Window::SetIgnoreMouseEvents(bool ignore, mate::Arguments* args) {
|
||||
mate::Dictionary options;
|
||||
bool forward = false;
|
||||
args->GetNext(&options) && options.Get("forward", &forward);
|
||||
return window_->SetIgnoreMouseEvents(ignore, forward);
|
||||
}
|
||||
|
||||
void Window::SetContentProtection(bool enable) {
|
||||
|
@ -787,10 +790,6 @@ 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)
|
||||
|
@ -1064,7 +1063,6 @@ 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