| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 unsigned int GetPopupDropdownItemHeight(); | 87 unsigned int GetPopupDropdownItemHeight(); |
| 88 | 88 |
| 89 // Returns true if the icon in the credit card autofill popup must be displayed | 89 // Returns true if the icon in the credit card autofill popup must be displayed |
| 90 // before the credit card value or any other suggestion text. | 90 // before the credit card value or any other suggestion text. |
| 91 bool IsIconInCreditCardPopupAtStart(); | 91 bool IsIconInCreditCardPopupAtStart(); |
| 92 | 92 |
| 93 // Modifies the suggestion value and label if the new credit card autofill popup | 93 // Modifies the suggestion value and label if the new credit card autofill popup |
| 94 // experiment is enabled to tweak the display of the value and label. | 94 // experiment is enabled to tweak the display of the value and label. |
| 95 void ModifyAutofillCreditCardSuggestion(struct Suggestion* suggestion); | 95 void ModifyAutofillCreditCardSuggestion(struct Suggestion* suggestion); |
| 96 | 96 |
| 97 // Returns the margin for the icon, label and between icon and label. Returns 0 |
| 98 // if the margin isn't configured in an experiment to tweak autofill popup |
| 99 // layout. |
| 100 unsigned int GetPopupMargin(); |
| 101 |
| 97 } // namespace autofill | 102 } // namespace autofill |
| 98 | 103 |
| 99 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ | 104 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ |
| OLD | NEW |