Remove OnMessageReceived from NativeWindow

This commit is contained in:
Cheng Zhao 2018-02-22 15:26:04 +09:00
parent 44e7282b4b
commit bffb31c337
8 changed files with 27 additions and 21 deletions

View file

@ -296,7 +296,7 @@ bool ScopedDisableResize::disable_resize_ = false;
}
- (void)windowDidResize:(NSNotification*)notification {
shell_->UpdateDraggableRegions(nullptr, shell_->draggable_regions());
shell_->UpdateDraggableRegions(shell_->draggable_regions());
shell_->NotifyWindowResize();
}
@ -1816,7 +1816,6 @@ gfx::Rect NativeWindowMac::WindowBoundsToContentBounds(
}
void NativeWindowMac::UpdateDraggableRegions(
content::RenderFrameHost* rfh,
const std::vector<DraggableRegion>& regions) {
if (has_frame())
return;