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

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

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
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_popup_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_popup_view.h
diff --git a/chrome/browser/autofill/autofill_popup_view.h b/chrome/browser/autofill/autofill_popup_view.h
index 93793a03e89359f0085ff5be4c93782e98ce315c..d4cd2c290d2579474a34d8d0bdad77b144af57f0 100644
--- a/chrome/browser/autofill/autofill_popup_view.h
+++ b/chrome/browser/autofill/autofill_popup_view.h
@@ -11,6 +11,7 @@
#include "base/string16.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_observer.h"
+#include "ui/gfx/font.h"
#include "ui/gfx/rect.h"
namespace content {
@@ -70,6 +71,9 @@ class AutofillPopupView : public content::NotificationObserver {
return autofill_unique_ids_;
}
+ const gfx::Font& label_font() const { return label_font_; }
+ const gfx::Font& value_font() const { return value_font_; }
+
int selected_line() const { return selected_line_; }
// Change which line is currently selected by the user.
@@ -123,6 +127,10 @@ class AutofillPopupView : public content::NotificationObserver {
std::vector<string16> autofill_icons_;
std::vector<int> autofill_unique_ids_;
+ // The fonts for the popup text.
+ gfx::Font value_font_;
+ gfx::Font label_font_;
+
// The line that is currently selected by the user.
// |kNoSelection| indicates that no line is currently selected.
int selected_line_;
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_popup_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698