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

Unified Diff: chrome/browser/ui/cocoa/location_bar/button_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/button_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/button_decoration.mm b/chrome/browser/ui/cocoa/location_bar/button_decoration.mm
index 859278384378fc7e88f8ae01a3fba74198dce236..63d07e0a986c5ae38675d500c1c04d1d93e91aaf 100644
--- a/chrome/browser/ui/cocoa/location_bar/button_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/button_decoration.mm
@@ -35,7 +35,7 @@ bool ButtonDecoration::OnMousePressedWithView(
return handled;
}
-CGFloat ButtonDecoration::GetWidthForSpace(CGFloat width) {
+CGFloat ButtonDecoration::GetWidthForSpace(CGFloat width, CGFloat text_width) {
NSImage* image = GetImage();
if (image) {
const CGFloat image_width = [image size].width;

Powered by Google App Engine
This is Rietveld 408576698