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

Unified Diff: chrome/browser/ui/cocoa/location_bar/selected_keyword_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/selected_keyword_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration.mm b/chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration.mm
index 2c6cda6cc317b701e6c98cb468a404c28156ef62..90b24879ce2631bf1a27fc09f4f13c3f0810c1a1 100644
--- a/chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration.mm
@@ -27,7 +27,8 @@ SelectedKeywordDecoration::SelectedKeywordDecoration(NSFont* font)
SelectedKeywordDecoration::~SelectedKeywordDecoration() {}
-CGFloat SelectedKeywordDecoration::GetWidthForSpace(CGFloat width) {
+CGFloat SelectedKeywordDecoration::GetWidthForSpace(CGFloat width,
+ CGFloat text_width) {
const CGFloat full_width =
GetWidthForImageAndLabel(search_image_, full_string_);
if (full_width <= width) {

Powered by Google App Engine
This is Rietveld 408576698