Rename GetPrefferedSize to CalculatePrefferedSize
See https://chromium-review.googlesource.com/c/chromium/src/+/516542
This commit is contained in:
parent
7f5fbb04e2
commit
d7e4e8d6cc
2 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ void FramelessView::UpdateWindowTitle() {
|
|||
void FramelessView::SizeConstraintsChanged() {
|
||||
}
|
||||
|
||||
gfx::Size FramelessView::GetPreferredSize() const {
|
||||
gfx::Size FramelessView::CalculatePreferredSize() const {
|
||||
return frame_->non_client_view()->GetWindowBoundsForClientBounds(
|
||||
gfx::Rect(frame_->client_view()->GetPreferredSize())).size();
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ class FramelessView : public views::NonClientFrameView {
|
|||
void SizeConstraintsChanged() override;
|
||||
|
||||
// Overridden from View:
|
||||
gfx::Size GetPreferredSize() const override;
|
||||
gfx::Size CalculatePreferredSize() const override;
|
||||
gfx::Size GetMinimumSize() const override;
|
||||
gfx::Size GetMaximumSize() const override;
|
||||
const char* GetClassName() const override;
|
||||
|
|
Loading…
Reference in a new issue