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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_
7 7
8 #include <utility>
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/string16.h" 11 #include "base/string16.h"
11 #include "chrome/browser/autofill/field_types.h" 12 #include "chrome/browser/autofill/field_types.h"
12 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" 13 #include "chrome/browser/ui/autofill/autofill_dialog_types.h"
13 #include "ui/gfx/image/image.h" 14 #include "ui/gfx/image/image.h"
14 #include "ui/gfx/native_widget_types.h" 15 #include "ui/gfx/native_widget_types.h"
15 16
16 class Profile; 17 class Profile;
17 18
(...skipping 22 matching lines...) Expand all
40 virtual string16 DialogTitle() const = 0; 41 virtual string16 DialogTitle() const = 0;
41 virtual string16 EditSuggestionText() const = 0; 42 virtual string16 EditSuggestionText() const = 0;
42 virtual string16 UseBillingForShippingText() const = 0; 43 virtual string16 UseBillingForShippingText() const = 0;
43 virtual string16 WalletOptionText() const = 0; 44 virtual string16 WalletOptionText() const = 0;
44 virtual string16 CancelButtonText() const = 0; 45 virtual string16 CancelButtonText() const = 0;
45 virtual string16 ConfirmButtonText() const = 0; 46 virtual string16 ConfirmButtonText() const = 0;
46 virtual string16 SignInText() const = 0; 47 virtual string16 SignInText() const = 0;
47 virtual string16 CancelSignInText() const = 0; 48 virtual string16 CancelSignInText() const = 0;
48 virtual string16 SaveLocallyText() const = 0; 49 virtual string16 SaveLocallyText() const = 0;
49 virtual string16 ProgressBarText() const = 0; 50 virtual string16 ProgressBarText() const = 0;
51 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.
52 FootnoteTextParts() const = 0;
50 53
51 // State --------------------------------------------------------------------- 54 // State ---------------------------------------------------------------------
52 55
53 // Whether the user is known to be signed in. 56 // Whether the user is known to be signed in.
54 virtual DialogSignedInState SignedInState() const = 0; 57 virtual DialogSignedInState SignedInState() const = 0;
55 58
59 // Whether the footnote should be showing or not.
60 virtual bool IsFootnoteShowing() const = 0;
61
62 // Returns any dialog notification that should currently be showing.
63 virtual DialogNotification CurrentNotification() const = 0;
64
56 // Detail inputs ------------------------------------------------------------- 65 // Detail inputs -------------------------------------------------------------
57 66
58 // Returns the set of inputs the page has requested which fall under 67 // Returns the set of inputs the page has requested which fall under
59 // |section|. 68 // |section|.
60 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) 69 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section)
61 const = 0; 70 const = 0;
62 71
63 // Returns the combobox model for inputs of type |type|, or NULL if the input 72 // Returns the combobox model for inputs of type |type|, or NULL if the input
64 // should be a text field. 73 // should be a text field.
65 virtual ui::ComboboxModel* ComboboxModelForAutofillType( 74 virtual ui::ComboboxModel* ComboboxModelForAutofillType(
(...skipping 20 matching lines...) Expand all
86 bool was_edit) = 0; 95 bool was_edit) = 0;
87 96
88 // The view forwards keypresses in text inputs. Returns true if there should 97 // The view forwards keypresses in text inputs. Returns true if there should
89 // be no further processing of the event. 98 // be no further processing of the event.
90 virtual bool HandleKeyPressEventInInput( 99 virtual bool HandleKeyPressEventInInput(
91 const content::NativeWebKeyboardEvent& event) = 0; 100 const content::NativeWebKeyboardEvent& event) = 0;
92 101
93 // Called when focus has changed position within the view. 102 // Called when focus has changed position within the view.
94 virtual void FocusMoved() = 0; 103 virtual void FocusMoved() = 0;
95 104
96 // Miscellany ---------------------------------------------------------------- 105 // Actions -------------------------------------------------------------------
97
98 // Called when the view has been closed. The value for |action| indicates
99 // whether the Autofill operation should be aborted.
100 virtual void ViewClosed(DialogAction action) = 0;
101
102 // Returns any dialog notification that should currently be showing.
103 virtual DialogNotification CurrentNotification() const = 0;
104 106
105 // Begins the flow to sign into Wallet. 107 // Begins the flow to sign into Wallet.
106 virtual void StartSignInFlow() = 0; 108 virtual void StartSignInFlow() = 0;
107 109
108 // Marks the signin flow into Wallet complete. 110 // Marks the signin flow into Wallet complete.
109 virtual void EndSignInFlow() = 0; 111 virtual void EndSignInFlow() = 0;
110 112
113 // Opens legal documentation in a new tab.
114 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.
115 virtual void ShowPrivacyPolicy() = 0;
116
117 // Accessors -----------------------------------------------------------------
118
111 // Returns the profile for this dialog. 119 // Returns the profile for this dialog.
112 virtual Profile* profile() = 0; 120 virtual Profile* profile() = 0;
113 121
114 // The web contents that prompted the dialog. 122 // The web contents that prompted the dialog.
115 virtual content::WebContents* web_contents() = 0; 123 virtual content::WebContents* web_contents() = 0;
116 124
125 // Miscellany ----------------------------------------------------------------
126
127 // Called when the view has been closed. The value for |action| indicates
128 // whether the Autofill operation should be aborted.
129 virtual void ViewClosed(DialogAction action) = 0;
130
117 protected: 131 protected:
118 virtual ~AutofillDialogController(); 132 virtual ~AutofillDialogController();
119 }; 133 };
120 134
121 } // namespace autofill 135 } // namespace autofill
122 136
123 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ 137 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698