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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller.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/autofill/autofill_dialog_controller.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller.h b/chrome/browser/ui/autofill/autofill_dialog_controller.h
index a008b5b5b3d88918078812ee142ab229272a9929..95e117109605fb031a57646ae948b6a2e602117b 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller.h
@@ -38,12 +38,12 @@ class AutofillDialogController {
// Strings -------------------------------------------------------------------
virtual string16 DialogTitle() const = 0;
+ virtual string16 AccountChooserText() const = 0;
virtual string16 EditSuggestionText() const = 0;
virtual string16 UseBillingForShippingText() const = 0;
virtual string16 WalletOptionText() const = 0;
virtual string16 CancelButtonText() const = 0;
virtual string16 ConfirmButtonText() const = 0;
- virtual string16 SignInText() const = 0;
virtual string16 CancelSignInText() const = 0;
virtual string16 SaveLocallyText() const = 0;
virtual string16 ProgressBarText() const = 0;
@@ -53,6 +53,13 @@ class AutofillDialogController {
// Whether the user is known to be signed in.
virtual DialogSignedInState SignedInState() const = 0;
+ // Whether or not Wallet can be used for this transaction. Returns false if
+ // any network/Wallet errors occur while running this dialog.
+ virtual bool CanPayWithWallet() const = 0;
+
+ // Whether the account chooser is enabled (clickable).
+ virtual bool AccountChooserEnabled() const = 0;
+
// Detail inputs -------------------------------------------------------------
// Returns the set of inputs the page has requested which fall under
« no previous file with comments | « chrome/browser/autofill/wallet/wallet_client_unittest.cc ('k') | chrome/browser/ui/autofill/autofill_dialog_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698