| Index: components/autofill/core/browser/autofill_experiments.h
|
| diff --git a/components/autofill/core/browser/autofill_experiments.h b/components/autofill/core/browser/autofill_experiments.h
|
| index 9fe4fc0b55631195de8afbfd5b1ddc999e4391ea..19ee69bdd9310b45537fc9e51b2f2e79490d3fbf 100644
|
| --- a/components/autofill/core/browser/autofill_experiments.h
|
| +++ b/components/autofill/core/browser/autofill_experiments.h
|
| @@ -7,6 +7,9 @@
|
|
|
| #include <string>
|
|
|
| +#include "base/strings/string16.h"
|
| +#include "third_party/skia/include/core/SkColor.h"
|
| +
|
| class PrefService;
|
|
|
| namespace base {
|
| @@ -19,11 +22,15 @@ class SyncService;
|
|
|
| namespace autofill {
|
|
|
| +struct Suggestion;
|
| +
|
| extern const base::Feature kAutofillCreditCardAssist;
|
| extern const base::Feature kAutofillCreditCardSigninPromo;
|
| extern const base::Feature kAutofillProfileCleanup;
|
| extern const base::Feature kAutofillScanCardholderName;
|
| +extern const base::Feature kAutofillCreditCardPopupLayout;
|
| extern const char kCreditCardSigninPromoImpressionLimitParamKey[];
|
| +extern const char kAutofillCreditCardPopupSettingsSuggestionValueKey[];
|
|
|
| // Returns true if autofill should be enabled. See also
|
| // IsInAutofillSuggestionsDisabledExperiment below.
|
| @@ -64,6 +71,35 @@ bool IsCreditCardUploadEnabled(const PrefService* pref_service,
|
| // in the autofill dropdown when credit card fields are on an HTTP page.
|
| bool IsCreditCardAutofillHttpWarningEnabled();
|
|
|
| +// Returns whether the new Autofill credit card popup layout experiment is
|
| +// enabled.
|
| +bool IsAutofillCreditCardPopupLayoutExperimentEnabled();
|
| +
|
| +// Returns the background color for credit card autofill popup, or 0 if the new
|
| +// credit card autofill popup layout experiment is not enabled.
|
| +SkColor GetCreditCardPopupBackgroundColor();
|
| +
|
| +// Returns the divider color for credit card autofill popup, or 0 if the new
|
| +// credit card autofill popup layout experiment is not enabled.
|
| +SkColor GetCreditCardPopupDividerColor();
|
| +
|
| +// Returns true if the credit card autofill popup suggestion value is displayed
|
| +// in bold type face.
|
| +bool IsCreditCardPopupValueBold();
|
| +
|
| +// Returns the dropdown item height for credit card autofill popup, returning
|
| +// -1 if the dropdown item height isn't configured in an experiment to tweak
|
| +// autofill popup layout.
|
| +unsigned int GetCreditCardPopupDropdownItemHeight();
|
| +
|
| +// Returns true if the credit card icon in the autofill popup must be displayed
|
| +// to the left of the credit card value.
|
| +bool IsCreditCardIconInPopupAtLeft();
|
| +
|
| +// Modifies the suggestion value and label if the new credit card autofill popup
|
| +// experiment is enabled to tweak the display of the value and label.
|
| +void ModifyAutofillCreditCardSuggestion(struct Suggestion* suggestion);
|
| +
|
| } // namespace autofill
|
|
|
| #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_
|
|
|