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

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

Issue 12221040: Interactive autofill: Handle Online Wallet being unavailable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 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 abc1c6363da63570db1a92af51cabe75e78681ab..dbdab484b48f84e5249c1f62e5bdb273d12d206e 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.h
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.h
@@ -34,6 +34,7 @@ class FocusManager;
class ImageButton;
class ImageView;
class Label;
+class Link;
class MenuRunner;
class TextButton;
class Textfield;
@@ -140,10 +141,10 @@ class AutofillDialogViews : public AutofillDialogView,
DISALLOW_COPY_AND_ASSIGN(DecoratedTextfield);
};
- // An area for notifications. Some types of notifications point at stuff.
+ // An area for notifications. Some notifications point at the account chooser.
class NotificationArea : public views::View {
public:
- NotificationArea();
+ explicit NotificationArea(views::View* arrow_centering_anchor);
virtual ~NotificationArea();
void SetNotification(const DialogNotification& notification);
@@ -154,6 +155,10 @@ class AutofillDialogViews : public AutofillDialogView,
private:
views::Label* label_;
+
+ // If |notification_.HasArrow()| is true, the arrow should point at this.
+ views::View* arrow_centering_anchor_; // weak.
+
DialogNotification notification_;
DISALLOW_COPY_AND_ASSIGN(NotificationArea);
@@ -340,8 +345,8 @@ class AutofillDialogViews : public AutofillDialogView,
// Runs the suggestion menu (triggered by each section's |suggested_button|.
scoped_ptr<views::MenuRunner> menu_runner_;
- // The link that initiates the sign in flow.
- views::Link* sign_in_link_;
+ // A link to allow choosing different accounts to pay with.
+ views::Link* account_chooser_link_;
// View to host the signin dialog and related controls.
views::View* sign_in_container_;

Powered by Google App Engine
This is Rietveld 408576698