Merge pull request #10232 from electron/drag-browser-view
Add -webkit-app-region support to BrowserView
This commit is contained in:
commit
7ecac42214
6 changed files with 167 additions and 1 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue