| Index: chrome/browser/ui/autofill/autofill_dialog_types.h
|
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_types.h b/chrome/browser/ui/autofill/autofill_dialog_types.h
|
| index 94f312b6264918e3cc3cfe1aac70ac06d7681567..f794fc503c2bc879e50280b3f391eb6844f9b486 100644
|
| --- a/chrome/browser/ui/autofill/autofill_dialog_types.h
|
| +++ b/chrome/browser/ui/autofill/autofill_dialog_types.h
|
| @@ -188,14 +188,22 @@ enum AutocheckoutState {
|
| };
|
|
|
| struct SuggestionState {
|
| - SuggestionState(const string16& text,
|
| - gfx::Font::FontStyle text_style,
|
| + SuggestionState();
|
| + SuggestionState(bool visible,
|
| + const string16& vertically_compact_text,
|
| + const string16& horizontally_compact_text,
|
| const gfx::Image& icon,
|
| const string16& extra_text,
|
| const gfx::Image& extra_icon);
|
| ~SuggestionState();
|
| - string16 text;
|
| - gfx::Font::FontStyle text_style;
|
| + // Whether a suggestion should be shown.
|
| + bool visible;
|
| + // Text to be shown for the suggestion. This should be preferred over
|
| + // |horizontally_compact_text| when there's enough horizontal space available
|
| + // to display it. When there's not enough space, fall back to
|
| + // |horizontally_compact_text|.
|
| + base::string16 vertically_compact_text;
|
| + base::string16 horizontally_compact_text;
|
| gfx::Image icon;
|
| string16 extra_text;
|
| gfx::Image extra_icon;
|
|
|