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

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..a71d67c850372aa4252d6c6254792a08519ab73f 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,12 +141,16 @@ 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();
virtual ~NotificationArea();
+ void set_arrow_centering_anchor(views::View* arrow_centering_anchor) {
+ arrow_centering_anchor_ = arrow_centering_anchor;
+ }
+
void SetNotification(const DialogNotification& notification);
// views::View implementation.
@@ -154,6 +159,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 +349,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