| 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 1c4d70cc76ed90c98de89e469f0c8c7b23fb994b..8df63f1e48dc0269dca168f4c0af07557660d694 100644
|
| --- a/ui/views/bubble/bubble_frame_view.cc
|
| +++ b/ui/views/bubble/bubble_frame_view.cc
|
| @@ -170,11 +170,11 @@ gfx::Insets BubbleFrameView::GetInsets() const {
|
| return insets;
|
| }
|
|
|
| -gfx::Size BubbleFrameView::GetPreferredSize() {
|
| +gfx::Size BubbleFrameView::GetPreferredSize() const {
|
| return GetSizeForClientSize(GetWidget()->client_view()->GetPreferredSize());
|
| }
|
|
|
| -gfx::Size BubbleFrameView::GetMinimumSize() {
|
| +gfx::Size BubbleFrameView::GetMinimumSize() const {
|
| return GetSizeForClientSize(GetWidget()->client_view()->GetMinimumSize());
|
| }
|
|
|
| @@ -345,7 +345,8 @@ void BubbleFrameView::OffsetArrowIfOffScreen(const gfx::Rect& anchor_rect,
|
| SchedulePaint();
|
| }
|
|
|
| -gfx::Size BubbleFrameView::GetSizeForClientSize(const gfx::Size& client_size) {
|
| +gfx::Size BubbleFrameView::GetSizeForClientSize(
|
| + const gfx::Size& client_size) const {
|
| // Accommodate the width of the title bar elements.
|
| int title_bar_width = GetInsets().width() + border()->GetInsets().width();
|
| if (!title_->text().empty())
|
|
|