Index: ui/views/bubble/bubble_delegate.cc |
diff --git a/ui/views/bubble/bubble_delegate.cc b/ui/views/bubble/bubble_delegate.cc |
index 3987589f3fcb6a66486b20d74f63a5de755ccbd1..05df97cae09ad43eeb35337efdfc2624b440348a 100644 |
--- a/ui/views/bubble/bubble_delegate.cc |
+++ b/ui/views/bubble/bubble_delegate.cc |
@@ -381,6 +381,12 @@ gfx::Rect BubbleDelegateView::GetBubbleBounds() { |
GetPreferredSize(), adjust_if_offscreen_); |
} |
+gfx::Size BubbleDelegateView::GetPreferredSizeForTitle() { |
+ NonClientFrameView* fv = GetWidget()->non_client_view()->frame_view(); |
msw
2013/08/08 21:56:52
nit: use GetBubbleFrameView(), avoid acronym ident
Dan Beam
2013/08/09 01:47:58
Done.
|
+ int width = fv->GetBoundsForClientView().width() - GetInsets().width(); |
+ return gfx::Size(width, GetHeightForWidth(width)); |
+} |
+ |
int BubbleDelegateView::GetFadeDuration() { |
return kHideFadeDurationMS; |
} |