Implement titleBarStyle without using NSFullSizeContentViewWindowMask

This commit is contained in:
Cheng Zhao 2016-05-17 15:48:14 +09:00
parent ecbb088ea6
commit f53aabaef5
4 changed files with 19 additions and 25 deletions

View file

@ -49,7 +49,6 @@ NativeWindow::NativeWindow(
const mate::Dictionary& options)
: content::WebContentsObserver(inspectable_web_contents->GetWebContents()),
has_frame_(true),
force_using_draggable_region_(false),
transparent_(false),
enable_larger_than_screen_(false),
is_closed_(false),
@ -573,7 +572,7 @@ bool NativeWindow::OnMessageReceived(const IPC::Message& message) {
void NativeWindow::UpdateDraggableRegions(
const std::vector<DraggableRegion>& regions) {
// Draggable region is not supported for non-frameless window.
if (has_frame_ && !force_using_draggable_region_)
if (has_frame_)
return;
draggable_region_ = DraggableRegionsToSkRegion(regions);
}