2018-05-02 06:39:43 +00:00
|
|
|
// Copyright (c) 2018 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_COCOA_ROOT_VIEW_MAC_H_
|
|
|
|
#define SHELL_BROWSER_UI_COCOA_ROOT_VIEW_MAC_H_
|
2018-05-02 06:39:43 +00:00
|
|
|
|
|
|
|
#include "ui/views/view.h"
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2018-05-02 06:39:43 +00:00
|
|
|
|
|
|
|
class NativeWindow;
|
|
|
|
|
|
|
|
class RootViewMac : public views::View {
|
|
|
|
public:
|
|
|
|
explicit RootViewMac(NativeWindow* window);
|
|
|
|
~RootViewMac() override;
|
|
|
|
|
|
|
|
// views::View:
|
|
|
|
void Layout() override;
|
|
|
|
gfx::Size GetMinimumSize() const override;
|
|
|
|
gfx::Size GetMaximumSize() const override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
// Parent window, weak ref.
|
|
|
|
NativeWindow* window_;
|
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(RootViewMac);
|
|
|
|
};
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|
2018-05-02 06:39:43 +00:00
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#endif // SHELL_BROWSER_UI_COCOA_ROOT_VIEW_MAC_H_
|