2014-10-31 18:17:05 +00:00
|
|
|
// Copyright (c) 2014 GitHub, Inc.
|
2014-07-12 03:36:08 +00:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef ATOM_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_
|
|
|
|
#define ATOM_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_
|
|
|
|
|
2014-07-16 07:33:40 +00:00
|
|
|
#include "atom/browser/ui/views/frameless_view.h"
|
2014-07-12 03:36:08 +00:00
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
2014-07-16 07:33:40 +00:00
|
|
|
class WinFrameView : public FramelessView {
|
2014-07-12 03:36:08 +00:00
|
|
|
public:
|
2014-07-16 07:33:40 +00:00
|
|
|
WinFrameView();
|
2014-07-12 03:36:08 +00:00
|
|
|
virtual ~WinFrameView();
|
|
|
|
|
|
|
|
// views::NonClientFrameView:
|
2014-11-16 07:54:40 +00:00
|
|
|
gfx::Rect GetWindowBoundsForClientBounds(
|
|
|
|
const gfx::Rect& client_bounds) const override;
|
|
|
|
int NonClientHitTest(const gfx::Point& point) override;
|
2014-07-12 03:36:08 +00:00
|
|
|
|
|
|
|
// views::View:
|
2014-11-16 07:54:40 +00:00
|
|
|
gfx::Size GetMinimumSize() const override;
|
|
|
|
gfx::Size GetMaximumSize() const override;
|
|
|
|
const char* GetClassName() const override;
|
2014-07-12 03:36:08 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(WinFrameView);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace atom
|
|
|
|
|
|
|
|
#endif // ATOM_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_
|