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

Unified Diff: chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.mm

Issue 12042002: Alternate NTP: Add search token to omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 7 years, 11 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: chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.mm b/chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.mm
index 7a129a48c2813fc2bd9a39f8f163a31bb07f5223..923c3ec9b1a7c87057ab8edafcd7c153ede88f76 100644
--- a/chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.mm
@@ -72,7 +72,8 @@ NSPoint EVBubbleDecoration::GetBubblePointInFrame(NSRect frame) {
NSMaxY(image_rect) - kPageInfoBubblePointYOffset);
}
-CGFloat EVBubbleDecoration::GetWidthForSpace(CGFloat width) {
+CGFloat EVBubbleDecoration::GetWidthForSpace(CGFloat width,
+ CGFloat text_width) {
// Limit with to not take up too much of the available width, but
// also don't let it shrink too much.
width = std::max(width * kMaxBubbleFraction, kMinElidedBubbleWidth);

Powered by Google App Engine
This is Rietveld 408576698