Make it work only on Windows

Limiting the solution to Windows only.
This commit is contained in:
Eran Tiktin 2015-10-05 04:01:25 +03:00
parent aea1f8aebb
commit c34c123b33
2 changed files with 6 additions and 8 deletions

View file

@ -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 {

View file

@ -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);
} }