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

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

Issue 21724002: rAc: try really hard not to ellipsize addresses (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync'd Created 7 years, 4 months 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_dialog_types.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_types.h b/chrome/browser/ui/autofill/autofill_dialog_types.h
index d40d90a0b030c06504b3c48983d7f3293dd16d0b..9b48b0a489ae1549da5fe9a148f555fa95fc0366 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;
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc ('k') | chrome/browser/ui/autofill/autofill_dialog_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698