Make it work only on Windows
Limiting the solution to Windows only.
This commit is contained in:
parent
aea1f8aebb
commit
c34c123b33
2 changed files with 6 additions and 8 deletions
|
@ -104,15 +104,11 @@ gfx::Size FramelessView::GetPreferredSize() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
gfx::Size FramelessView::GetMinimumSize() const {
|
gfx::Size FramelessView::GetMinimumSize() const {
|
||||||
gfx::Size size = window_->WindowSizeToFramelessSize(
|
return window_->GetMinimumSize();
|
||||||
window_->GetMinimumSize());
|
|
||||||
return size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gfx::Size FramelessView::GetMaximumSize() const {
|
gfx::Size FramelessView::GetMaximumSize() const {
|
||||||
gfx::Size size = window_->WindowSizeToFramelessSize(
|
return window_->GetMaximumSize();
|
||||||
window_->GetMaximumSize());
|
|
||||||
return size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* FramelessView::GetClassName() const {
|
const char* FramelessView::GetClassName() const {
|
||||||
|
|
|
@ -40,12 +40,14 @@ int WinFrameView::NonClientHitTest(const gfx::Point& point) {
|
||||||
}
|
}
|
||||||
|
|
||||||
gfx::Size WinFrameView::GetMinimumSize() const {
|
gfx::Size WinFrameView::GetMinimumSize() const {
|
||||||
gfx::Size size = FramelessView::GetMinimumSize();
|
gfx::Size size = window_->WindowSizeToFramelessSize(
|
||||||
|
window_->GetMinimumSize());
|
||||||
return gfx::win::DIPToScreenSize(size);
|
return gfx::win::DIPToScreenSize(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
gfx::Size WinFrameView::GetMaximumSize() const {
|
gfx::Size WinFrameView::GetMaximumSize() const {
|
||||||
gfx::Size size = FramelessView::GetMaximumSize();
|
gfx::Size size = window_->WindowSizeToFramelessSize(
|
||||||
|
window_->GetMaximumSize());
|
||||||
return gfx::win::DIPToScreenSize(size);
|
return gfx::win::DIPToScreenSize(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue