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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_controller_impl.h

Issue 1422533008: Enable GetValueFontListForRow and GetLabelFontList in AutofillPopupController for aura Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/autofill/autofill_popup_controller_impl.h
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_impl.h b/chrome/browser/ui/autofill/autofill_popup_controller_impl.h
index e8540419e9ea57e1720b5382b8dcd07bb36c4752..ecb981db29051fe86878220c3576d003feee9cec 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller_impl.h
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_impl.h
@@ -90,7 +90,7 @@ class AutofillPopupControllerImpl : public AutofillPopupController {
base::string16* title,
base::string16* body) override;
bool RemoveSuggestion(int list_index) override;
-#if !defined(OS_ANDROID)
+#if !defined(OS_ANDROID) || defined(USE_AURA)
const gfx::FontList& GetValueFontListForRow(size_t index) const override;
const gfx::FontList& GetLabelFontList() const override;
#endif
@@ -133,7 +133,7 @@ class AutofillPopupControllerImpl : public AutofillPopupController {
virtual void InvalidateRow(size_t row);
// Protected so tests can access.
-#if !defined(OS_ANDROID)
+#if !defined(OS_ANDROID) || defined(USE_AURA)
// Calculates the desired width of the popup based on its contents.
int GetDesiredPopupWidth() const;
@@ -157,7 +157,7 @@ class AutofillPopupControllerImpl : public AutofillPopupController {
// when the popup is reused it doesn't leak values between uses.
void ClearState();
-#if !defined(OS_ANDROID)
+#if !defined(OS_ANDROID) || defined(USE_AURA)
// Calculates and sets the bounds of the popup, including placing it properly
// to prevent it from going off the screen.
void UpdatePopupBounds();
@@ -180,7 +180,7 @@ class AutofillPopupControllerImpl : public AutofillPopupController {
std::vector<base::string16> elided_values_;
std::vector<base::string16> elided_labels_;
-#if !defined(OS_ANDROID)
+#if !defined(OS_ANDROID) || defined(USE_AURA)
// The fonts for the popup text.
gfx::FontList value_font_list_;
gfx::FontList label_font_list_;

Powered by Google App Engine
This is Rietveld 408576698