Merge pull request #10232 from electron/drag-browser-view

Add -webkit-app-region support to BrowserView
This commit is contained in:
Samuel Attard 2017-08-24 10:30:56 +10:00 committed by GitHub
commit 7ecac42214
6 changed files with 167 additions and 1 deletions

View file

@ -1767,6 +1767,10 @@ void NativeWindowMac::UpdateDraggableRegionViews(
std::vector<gfx::Rect> system_drag_exclude_areas =
CalculateNonDraggableRegions(regions, webViewWidth, webViewHeight);
if (browser_view_) {
browser_view_->UpdateDraggableRegions(system_drag_exclude_areas);
}
// Create and add a ControlRegionView for each region that needs to be
// excluded from the dragging.
for (std::vector<gfx::Rect>::const_iterator iter =