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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller.h

Issue 12225095: Interactive autofill: Adds footnote view to accept legal documents in the UI. (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..3e106f3ec5e2ce2f7d54e4d5235c12c2a8e31dd1 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_
#define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_
+#include <utility>
#include <vector>
#include "base/string16.h"
@@ -47,12 +48,20 @@ class AutofillDialogController {
virtual string16 CancelSignInText() const = 0;
virtual string16 SaveLocallyText() const = 0;
virtual string16 ProgressBarText() const = 0;
+ virtual std::pair<std::vector<string16>, string16>
Evan Stade 2013/02/08 15:38:53 This definitely requires docs
Dan Beam 2013/02/08 20:53:06 Done.
+ FootnoteTextParts() const = 0;
// State ---------------------------------------------------------------------
// Whether the user is known to be signed in.
virtual DialogSignedInState SignedInState() const = 0;
+ // Whether the footnote should be showing or not.
+ virtual bool IsFootnoteShowing() const = 0;
+
+ // Returns any dialog notification that should currently be showing.
+ virtual DialogNotification CurrentNotification() const = 0;
+
// Detail inputs -------------------------------------------------------------
// Returns the set of inputs the page has requested which fall under
@@ -93,14 +102,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;
@@ -108,12 +110,24 @@ class AutofillDialogController {
// Marks the signin flow into Wallet complete.
virtual void EndSignInFlow() = 0;
+ // Opens legal documentation in a new tab.
+ virtual void ShowTermsOfService() = 0;
Evan Stade 2013/02/08 15:38:53 Call these functions FooLinkClicked
Dan Beam 2013/02/08 20:53:06 Done.
+ virtual void ShowPrivacyPolicy() = 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;
+ // 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;
+
protected:
virtual ~AutofillDialogController();
};

Powered by Google App Engine
This is Rietveld 408576698