Chromium Code Reviews| 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..c3c3b0c20ff66b586f6186534b70be4596b09279 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 show, |
| + 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 show; |
|
Ilya Sherman
2013/08/06 08:00:23
nit: Perhaps "should_be_shown"? This currently s
Evan Stade
2013/08/06 19:00:37
will change to |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; |