Rename GetPrefferedSize to CalculatePrefferedSize

See https://chromium-review.googlesource.com/c/chromium/src/+/516542
This commit is contained in:
Tony Ganch 2017-09-12 15:32:11 +00:00 committed by Cheng Zhao
parent 7f5fbb04e2
commit d7e4e8d6cc
2 changed files with 2 additions and 2 deletions

View file

@ -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();
}

View file

@ -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;