Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(568)

Unified Diff: ui/views/bubble/bubble_delegate.cc

Issue 21668003: Implement newly saved card bubble for realz and update generated card bubble to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698