summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 17:26:30 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 17:26:30 +0000
commitfc72076a7fa4c7260312fcb092294ab6e2a39821 (patch)
tree34ca8cca838e7f2aaf317a74034e60033ae8009f /chrome/browser/autocomplete
parente5ef3c8b7bebbce20319c73ccf153f3da596d650 (diff)
downloadchromium_src-fc72076a7fa4c7260312fcb092294ab6e2a39821.zip
chromium_src-fc72076a7fa4c7260312fcb092294ab6e2a39821.tar.gz
chromium_src-fc72076a7fa4c7260312fcb092294ab6e2a39821.tar.bz2
[Mac] Tweaks to Omnibox metrics.
Pull in the popup corners by half a pixel to more closely match the rounding on the buttons. Pull up the gap between the popup and the field by one pixel to match Windows. http://crbug.com/20446 Review URL: http://codereview.chromium.org/178007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24739 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r--chrome/browser/autocomplete/autocomplete_popup_view_mac.mm7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_mac.mm b/chrome/browser/autocomplete/autocomplete_popup_view_mac.mm
index 9de258f..314bd32 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();