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

36 lines
934 B
C
Raw Normal View History

2015-07-24 08:04:54 +00:00
// Copyright (c) 2015 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_NATIVE_FRAME_VIEW_H_
#define SHELL_BROWSER_UI_VIEWS_NATIVE_FRAME_VIEW_H_
2015-07-24 08:04:54 +00:00
#include "ui/views/window/native_frame_view.h"
namespace atom {
class NativeWindow;
2015-07-24 08:04:54 +00:00
// Like the views::NativeFrameView, but returns the min/max size from the
// NativeWindowViews.
class NativeFrameView : public views::NativeFrameView {
public:
static const char kViewClassName[];
NativeFrameView(NativeWindow* window, views::Widget* widget);
2015-07-24 08:04:54 +00:00
protected:
// views::View:
gfx::Size GetMinimumSize() const override;
gfx::Size GetMaximumSize() const override;
const char* GetClassName() const override;
private:
NativeWindow* window_; // weak ref.
2015-07-24 08:04:54 +00:00
DISALLOW_COPY_AND_ASSIGN(NativeFrameView);
};
} // namespace atom
2019-06-19 20:56:58 +00:00
#endif // SHELL_BROWSER_UI_VIEWS_NATIVE_FRAME_VIEW_H_