532039ea2c
* chore: bump chromium in DEPS to 123.0.6300.2 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * chore: bump chromium in DEPS to 123.0.6301.2 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * chore: update patches Co-authored-by: deepak1556 <hop2deep@gmail.com> * chore: bump chromium in DEPS to 123.0.6302.0 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * chore: bump chromium in DEPS to 123.0.6304.0 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * chore: update patches Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> * chore: bump chromium in DEPS to 123.0.6306.2 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * chore: update patches Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> * chore: bump chromium in DEPS to 123.0.6308.0 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * chore: update patches Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> * Refactor //components/pdf/common constants https://chromium-review.googlesource.com/c/chromium/src/+/5292816 Co-authored-by: deepak1556 <hop2deep@gmail.com> * Rename URLLoaderFactoryParams::is_corb_enabled to is_orb_enabled. Refs https://chromium-review.googlesource.com/c/chromium/src/+/5277040 Co-authored-by: deepak1556 <hop2deep@gmail.com> * Add placeholder of speaker-selection permission. Refs https://chromium-review.googlesource.com/c/chromium/src/+/5278243 Co-authored-by: deepak1556 <hop2deep@gmail.com> * Move kPdfMimeType to //components/pdf/common/constants.h Refs https://chromium-review.googlesource.com/c/chromium/src/+/5293155 Co-authored-by: deepak1556 <hop2deep@gmail.com> * chore: gen-libc++-filenames.js Co-authored-by: deepak1556 <hop2deep@gmail.com> * Make GetClassName non virtual Refs https://chromium-review.googlesource.com/c/chromium/src/+/5293075 Refs https://issues.chromium.org/issues/324596267 Co-authored-by: deepak1556 <hop2deep@gmail.com> * chore: bump chromium in DEPS to 123.0.6310.0 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * chore: update filenames.libcxx.gni Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * 5282732: Compute input region using correct pixel size. https://chromium-review.googlesource.com/c/chromium/src/+/5282732 Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * fixup: Make GetClassName non virtual Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * chore: bump chromium in DEPS to 123.0.6312.0 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * chore: update patches Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> * chore: bump chromium in DEPS to 123.0.6312.5 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * fixup: Make GetClassName non virtual Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * docs: document speaker-selection https://chromium-review.googlesource.com/c/chromium/src/+/5278243 Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: deepak1556 <hop2deep@gmail.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
29 lines
924 B
C++
29 lines
924 B
C++
// Copyright (c) 2015 GitHub, Inc.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "shell/browser/ui/views/native_frame_view.h"
|
|
|
|
#include "shell/browser/native_window.h"
|
|
#include "ui/base/metadata/metadata_impl_macros.h"
|
|
|
|
namespace electron {
|
|
|
|
NativeFrameView::NativeFrameView(NativeWindow* window, views::Widget* widget)
|
|
: views::NativeFrameView(widget), window_(window) {}
|
|
|
|
gfx::Size NativeFrameView::GetMinimumSize() const {
|
|
return window_->GetMinimumSize();
|
|
}
|
|
|
|
gfx::Size NativeFrameView::GetMaximumSize() const {
|
|
gfx::Size size = window_->GetMaximumSize();
|
|
// Electron public APIs returns (0, 0) when maximum size is not set, but it
|
|
// would break internal window APIs like HWNDMessageHandler::SetAspectRatio.
|
|
return size.IsEmpty() ? gfx::Size(INT_MAX, INT_MAX) : size;
|
|
}
|
|
|
|
BEGIN_METADATA(NativeFrameView)
|
|
END_METADATA
|
|
|
|
} // namespace electron
|