diff --git a/atom/browser/ui/views/win_frame_view.cc b/atom/browser/ui/views/win_frame_view.cc index 4a7e90ce5bf3..74cad23a883f 100644 --- a/atom/browser/ui/views/win_frame_view.cc +++ b/atom/browser/ui/views/win_frame_view.cc @@ -39,12 +39,12 @@ int WinFrameView::NonClientHitTest(const gfx::Point& point) { return FramelessView::NonClientHitTest(point); } -gfx::Size WinFrameView::GetMinimumSize() { +gfx::Size WinFrameView::GetMinimumSize() const { gfx::Size size = FramelessView::GetMinimumSize(); return gfx::win::DIPToScreenSize(size); } -gfx::Size WinFrameView::GetMaximumSize() { +gfx::Size WinFrameView::GetMaximumSize() const { gfx::Size size = FramelessView::GetMaximumSize(); return gfx::win::DIPToScreenSize(size); } diff --git a/atom/browser/ui/views/win_frame_view.h b/atom/browser/ui/views/win_frame_view.h index 6cc65c937026..7a353cc22291 100644 --- a/atom/browser/ui/views/win_frame_view.h +++ b/atom/browser/ui/views/win_frame_view.h @@ -20,8 +20,8 @@ class WinFrameView : public FramelessView { virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; // views::View: - virtual gfx::Size GetMinimumSize() OVERRIDE; - virtual gfx::Size GetMaximumSize() OVERRIDE; + virtual gfx::Size GetMinimumSize() const OVERRIDE; + virtual gfx::Size GetMaximumSize() const OVERRIDE; virtual const char* GetClassName() const OVERRIDE; private: