views::Widget::InitParams params;
params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;
params.delegate = this;
- params.type = has_frame_ ? views::Widget::InitParams::TYPE_WINDOW :
- views::Widget::InitParams::TYPE_WINDOW_FRAMELESS;
+ params.type = views::Widget::InitParams::TYPE_WINDOW;
params.top_level = true;
params.remove_standard_frame = true;
window_->Init(params);
if (!bounds().Contains(point))
return HTNOWHERE;
+ // Check for possible draggable region in the client area for the frameless
+ // window.
+ SkRegion* draggable_region = window_->draggable_region();
+ if (draggable_region && draggable_region->contains(point.x(), point.y()))
+ return HTCAPTION;
+
int frame_component = frame_->client_view()->NonClientHitTest(point);
// See if we're in the sysmenu region. (We check the ClientView first to be
}
bool LinuxFrameView::ShouldShowTitleBarAndBorder() const {
+ if (!window_->has_frame())
+ return false;
+
if (frame_->IsFullscreen())
return false;
['OS!="linux" and OS!="openbsd" and OS!="freebsd"', {
'sources/': [
['exclude', '_linux(_unittest)?\\.(h|cc)$'],
- ['exclude', '(^|/)linux/'],
+ ['exclude', '(^|/)linux_[^/]*\\.(h|cc)$'],
['exclude', '(^|/)linux/'],
],
}],