🔧 Draggable (using the window’s regions)

This commit is contained in:
Felix Rieseberg 2017-08-08 17:00:00 -07:00
parent d06eeeede8
commit df66223f4c
5 changed files with 68 additions and 1 deletions

View file

@ -1753,6 +1753,12 @@ void NativeWindowMac::UpdateDraggableRegionViews(
[webView setMouseDownCanMoveWindow:YES];
}
// Call down to a BrowserView, if it exists, and inform it about the
// draggable areas
if (browser_view_) {
browser_view_->UpdateDraggableRegions(regions);
}
// Remove all ControlRegionViews that are added last time.
// Note that [webView subviews] returns the view's mutable internal array and
// it should be copied to avoid mutating the original array while enumerating