From: Cheng Zhao Date: Wed, 3 Sep 2014 15:17:00 +0000 (+0800) Subject: win: Fix compilation with Chrome 37. X-Git-Tag: v0.16.0~7 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ca881c5aaf1886890e5c465de36025d5e02723d8;p=electron.git win: Fix compilation with Chrome 37. --- diff --git a/atom/browser/ui/views/win_frame_view.cc b/atom/browser/ui/views/win_frame_view.cc index 4a7e90ce..74cad23a 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 6cc65c93..7a353cc2 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: