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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.h

Issue 12052059: requestAutocomplete - more elaborate suggestion labels (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: isherman review Created 7 years, 11 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/views/autofill/autofill_dialog_views.h
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.h b/chrome/browser/ui/views/autofill/autofill_dialog_views.h
index 2b1c520bdef16f74c157128ce5714c40053cf093..5971195d543c557fcba6cdb2668d7e88ad63597b 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.h
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.h
@@ -22,11 +22,16 @@ namespace content {
class KeyboardListener;
}
+namespace gfx {
+class Image;
+}
+
namespace views {
class Checkbox;
class Combobox;
class FocusManager;
class ImageButton;
+class ImageView;
class Label;
class MenuRunner;
class TextButton;
@@ -171,13 +176,19 @@ class AutofillDialogViews : public AutofillDialogView,
views::LinkListener* edit_listener);
virtual ~SuggestionView();
- // Sets the display text of the suggestion. TODO(estade): this needs to
- // support credit card icons as well.
+ // Sets the display text of the suggestion.
void SetSuggestionText(const string16& text);
+ // Sets the icon which should be displayed ahead of the text.
+ void SetSuggestionIcon(const gfx::Image& image);
+
private:
// The label that holds the suggestion description text.
views::Label* label_;
+ // The icon that comes just before |label_|.
+ views::ImageView* icon_;
+ // A view to contain |label_| and |icon_|.
+ views::View* label_container_;
DISALLOW_COPY_AND_ASSIGN(SuggestionView);
};

Powered by Google App Engine
This is Rietveld 408576698