electron/shell/browser/ui/views/win_frame_view.h

33 lines
834 B
C
Raw Normal View History

// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
2019-06-19 20:56:58 +00:00
#ifndef SHELL_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_
#define SHELL_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_
#include "shell/browser/ui/views/frameless_view.h"
namespace electron {
2014-07-16 07:33:40 +00:00
class WinFrameView : public FramelessView {
public:
static const char kViewClassName[];
2014-07-16 07:33:40 +00:00
WinFrameView();
~WinFrameView() override;
// views::NonClientFrameView:
gfx::Rect GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const override;
int NonClientHitTest(const gfx::Point& point) override;
// views::View:
const char* GetClassName() const override;
private:
DISALLOW_COPY_AND_ASSIGN(WinFrameView);
};
} // namespace electron
2019-06-19 20:56:58 +00:00
#endif // SHELL_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_