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

Unified Diff: chrome/browser/autofill/autofill_popup_view.cc

Issue 10987018: Share Font Code for New Autofill. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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/autofill/autofill_popup_view.cc
diff --git a/chrome/browser/autofill/autofill_popup_view.cc b/chrome/browser/autofill/autofill_popup_view.cc
index 8a9f5322d5bbae95bf32eca520f97c060a44244f..47ce1c1ff118d9f5a96b71c1a12b53b0b694cecd 100644
--- a/chrome/browser/autofill/autofill_popup_view.cc
+++ b/chrome/browser/autofill/autofill_popup_view.cc
@@ -22,6 +22,9 @@ namespace {
// Used to indicate that no line is currently selected by the user.
const int kNoSelection = -1;
+// Size difference between value text and label text in pixels.
+const int kLabelFontSizeDelta = -2;
+
struct DataResource {
const char* name;
int id;
@@ -56,6 +59,8 @@ AutofillPopupView::AutofillPopupView(
content::NOTIFICATION_NAV_ENTRY_COMMITTED,
content::Source<content::NavigationController>(
&(web_contents->GetController())));
+
+ label_font_ = value_font_.DeriveFont(kLabelFontSizeDelta);
}
AutofillPopupView::~AutofillPopupView() {}

Powered by Google App Engine
This is Rietveld 408576698