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

Unified Diff: chrome/browser/autocomplete/autocomplete_popup_view_mac.mm

Issue 178007: [Mac] Tweaks to Omnibox metrics. (Closed)
Patch Set: Oops, fixed unit test. Created 11 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
« no previous file with comments | « no previous file | chrome/browser/cocoa/autocomplete_text_field_cell.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_popup_view_mac.mm
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_mac.mm b/chrome/browser/autocomplete/autocomplete_popup_view_mac.mm
index 9de258ff0c275d9d74e862bd0a956612583467ca..314bd32fed357b1295fbe287c0ba77d9abbd4519 100644
--- a/chrome/browser/autocomplete/autocomplete_popup_view_mac.mm
+++ b/chrome/browser/autocomplete/autocomplete_popup_view_mac.mm
@@ -25,7 +25,10 @@ const int kCellHeightAdjust = 7.0;
// How to round off the popup's corners. Goal is to match star and go
// buttons.
-const CGFloat kPopupRoundingRadius = 4.0;
+const CGFloat kPopupRoundingRadius = 3.5;
+
+// Gap between the field and the popup.
+const CGFloat kPopupFieldGap = 2.0;
// How much space to leave for the left and right margins.
const CGFloat kLeftRightMargin = 8.0;
@@ -356,7 +359,7 @@ void AutocompletePopupViewMac::UpdatePopupAppearance() {
// Make the window just as big.
r.size.height = [matrix frame].size.height;
- r.origin.y -= r.size.height + 2;
+ r.origin.y -= r.size.height + kPopupFieldGap;
// Update the selection.
PaintUpdatesNow();
« no previous file with comments | « no previous file | chrome/browser/cocoa/autocomplete_text_field_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698