| Index: ui/views/bubble/bubble_frame_view.cc
|
| diff --git a/ui/views/bubble/bubble_frame_view.cc b/ui/views/bubble/bubble_frame_view.cc
|
| index 2bd579d79d958067b35b74627a189f297f84aab7..93d4659dbeff4c816c6be7c6c68e1807f6c49f87 100644
|
| --- a/ui/views/bubble/bubble_frame_view.cc
|
| +++ b/ui/views/bubble/bubble_frame_view.cc
|
| @@ -168,8 +168,16 @@ gfx::Insets BubbleFrameView::GetInsets() const {
|
| }
|
|
|
| gfx::Size BubbleFrameView::GetPreferredSize() {
|
| - const gfx::Size client(GetWidget()->client_view()->GetPreferredSize());
|
| - gfx::Size size(GetUpdatedWindowBounds(gfx::Rect(), client, false).size());
|
| + return GetNeededSize(GetWidget()->client_view()->GetPreferredSize());
|
| +}
|
| +
|
| +gfx::Size BubbleFrameView::GetMinimumSize() {
|
| + return GetNeededSize(GetWidget()->client_view()->GetMinimumSize());
|
| +}
|
| +
|
| +gfx::Size BubbleFrameView::GetNeededSize(const gfx::Size& client_size) {
|
| + gfx::Size size(
|
| + GetUpdatedWindowBounds(gfx::Rect(), client_size, false).size());
|
| // Accommodate the width of the title bar elements.
|
| int title_bar_width = GetInsets().width() + border()->GetInsets().width();
|
| if (!title_->text().empty())
|
|
|