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:46:59 +00:00
|
|
|
#include "shell/browser/ui/views/native_frame_view.h"
|
2015-07-24 08:04:54 +00:00
|
|
|
|
2019-06-19 20:46:59 +00:00
|
|
|
#include "shell/browser/native_window.h"
|
2015-07-24 08:04:54 +00:00
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2015-07-24 08:04:54 +00:00
|
|
|
|
2020-02-04 20:19:40 +00:00
|
|
|
const char NativeFrameView::kViewClassName[] = "ElectronNativeFrameView";
|
2015-07-24 08:04:54 +00:00
|
|
|
|
2015-10-05 11:05:59 +00:00
|
|
|
NativeFrameView::NativeFrameView(NativeWindow* window, views::Widget* widget)
|
2018-04-18 01:55:30 +00:00
|
|
|
: views::NativeFrameView(widget), window_(window) {}
|
2015-07-24 08:04:54 +00:00
|
|
|
|
|
|
|
gfx::Size NativeFrameView::GetMinimumSize() const {
|
|
|
|
return window_->GetMinimumSize();
|
|
|
|
}
|
|
|
|
|
|
|
|
gfx::Size NativeFrameView::GetMaximumSize() const {
|
|
|
|
return window_->GetMaximumSize();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* NativeFrameView::GetClassName() const {
|
|
|
|
return kViewClassName;
|
|
|
|
}
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|