| 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 95e117109605fb031a57646ae948b6a2e602117b..cd04ffd6e12504379dd2a6b9c302887769252446 100644
|
| --- a/chrome/browser/ui/autofill/autofill_dialog_controller.h
|
| +++ b/chrome/browser/ui/autofill/autofill_dialog_controller.h
|
| @@ -47,18 +47,24 @@ class AutofillDialogController {
|
| virtual string16 CancelSignInText() const = 0;
|
| virtual string16 SaveLocallyText() const = 0;
|
| virtual string16 ProgressBarText() const = 0;
|
| + // Even-indexed strings are text between links, odd are the text of links.
|
| + virtual std::vector<string16> FootnoteLinkParts() const = 0;
|
| + virtual string16 AcceptFootnoteLinksText() const = 0;
|
|
|
| // State ---------------------------------------------------------------------
|
|
|
| - // Whether the user is known to be signed in.
|
| - virtual DialogSignedInState SignedInState() const = 0;
|
| + // Whether the account chooser is enabled (clickable).
|
| + virtual bool AccountChooserEnabled() 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;
|
| + // Returns any dialog notification that should currently be showing.
|
| + virtual DialogNotification CurrentNotification() const = 0;
|
| +
|
| + // Whether the user is known to be signed in.
|
| + virtual DialogSignedInState SignedInState() const = 0;
|
|
|
| // Detail inputs -------------------------------------------------------------
|
|
|
| @@ -100,14 +106,7 @@ class AutofillDialogController {
|
| // Called when focus has changed position within the view.
|
| virtual void FocusMoved() = 0;
|
|
|
| - // Miscellany ----------------------------------------------------------------
|
| -
|
| - // Called when the view has been closed. The value for |action| indicates
|
| - // whether the Autofill operation should be aborted.
|
| - virtual void ViewClosed(DialogAction action) = 0;
|
| -
|
| - // Returns any dialog notification that should currently be showing.
|
| - virtual DialogNotification CurrentNotification() const = 0;
|
| + // Actions -------------------------------------------------------------------
|
|
|
| // Begins the flow to sign into Wallet.
|
| virtual void StartSignInFlow() = 0;
|
| @@ -115,12 +114,26 @@ class AutofillDialogController {
|
| // Marks the signin flow into Wallet complete.
|
| virtual void EndSignInFlow() = 0;
|
|
|
| + // Accessors -----------------------------------------------------------------
|
| +
|
| // Returns the profile for this dialog.
|
| virtual Profile* profile() = 0;
|
|
|
| // The web contents that prompted the dialog.
|
| virtual content::WebContents* web_contents() = 0;
|
|
|
| + // Event handlers -----------------------------------------------------------
|
| +
|
| + // |index| is the position of the link that's clicked in the UI. For example:
|
| + // [ Terms of Service ] [ Terms of Use ] [ Privacy ] -> 0 == terms of service.
|
| + // NOTE: Privacy policy will always be the last link as it is automatically
|
| + // appended to the list of links when any legal link needs to be shown.
|
| + virtual void LegalDocumentLinkClicked(int index) = 0;
|
| +
|
| + // Called when the view has been closed. The value for |action| indicates
|
| + // whether the Autofill operation should be aborted.
|
| + virtual void ViewClosed(DialogAction action) = 0;
|
| +
|
| protected:
|
| virtual ~AutofillDialogController();
|
| };
|
|
|