mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
win: Fix compilation with Chrome 37.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user