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

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 <vector> 8 #include <vector>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 29 matching lines...) Expand all
40 virtual string16 DialogTitle() const = 0; 40 virtual string16 DialogTitle() const = 0;
41 virtual string16 EditSuggestionText() const = 0; 41 virtual string16 EditSuggestionText() const = 0;
42 virtual string16 UseBillingForShippingText() const = 0; 42 virtual string16 UseBillingForShippingText() const = 0;
43 virtual string16 WalletOptionText() const = 0; 43 virtual string16 WalletOptionText() const = 0;
44 virtual string16 CancelButtonText() const = 0; 44 virtual string16 CancelButtonText() const = 0;
45 virtual string16 ConfirmButtonText() const = 0; 45 virtual string16 ConfirmButtonText() const = 0;
46 virtual string16 SignInText() const = 0; 46 virtual string16 SignInText() const = 0;
47 virtual string16 CancelSignInText() const = 0; 47 virtual string16 CancelSignInText() const = 0;
48 virtual string16 SaveLocallyText() const = 0; 48 virtual string16 SaveLocallyText() const = 0;
49 virtual string16 ProgressBarText() const = 0; 49 virtual string16 ProgressBarText() const = 0;
50 // Even indexed strings are text between links, odd are the text of links.
51 virtual std::vector<string16> FootnoteLinkParts() const = 0;
Evan Stade 2013/02/11 01:05:23 Hyphen between even and indexed (otherwise this is
Dan Beam 2013/02/11 19:27:51 Done.
52 virtual string16 AcceptFootnoteLinksText() 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 // Returns any dialog notification that should currently be showing.
60 virtual DialogNotification CurrentNotification() const = 0;
61
56 // Detail inputs ------------------------------------------------------------- 62 // Detail inputs -------------------------------------------------------------
57 63
58 // Returns the set of inputs the page has requested which fall under 64 // Returns the set of inputs the page has requested which fall under
59 // |section|. 65 // |section|.
60 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) 66 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section)
61 const = 0; 67 const = 0;
62 68
63 // Returns the combobox model for inputs of type |type|, or NULL if the input 69 // Returns the combobox model for inputs of type |type|, or NULL if the input
64 // should be a text field. 70 // should be a text field.
65 virtual ui::ComboboxModel* ComboboxModelForAutofillType( 71 virtual ui::ComboboxModel* ComboboxModelForAutofillType(
(...skipping 20 matching lines...) Expand all
86 bool was_edit) = 0; 92 bool was_edit) = 0;
87 93
88 // The view forwards keypresses in text inputs. Returns true if there should 94 // The view forwards keypresses in text inputs. Returns true if there should
89 // be no further processing of the event. 95 // be no further processing of the event.
90 virtual bool HandleKeyPressEventInInput( 96 virtual bool HandleKeyPressEventInInput(
91 const content::NativeWebKeyboardEvent& event) = 0; 97 const content::NativeWebKeyboardEvent& event) = 0;
92 98
93 // Called when focus has changed position within the view. 99 // Called when focus has changed position within the view.
94 virtual void FocusMoved() = 0; 100 virtual void FocusMoved() = 0;
95 101
96 // Miscellany ---------------------------------------------------------------- 102 // 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 103
105 // Begins the flow to sign into Wallet. 104 // Begins the flow to sign into Wallet.
106 virtual void StartSignInFlow() = 0; 105 virtual void StartSignInFlow() = 0;
107 106
108 // Marks the signin flow into Wallet complete. 107 // Marks the signin flow into Wallet complete.
109 virtual void EndSignInFlow() = 0; 108 virtual void EndSignInFlow() = 0;
110 109
110 // Accessors -----------------------------------------------------------------
111
111 // Returns the profile for this dialog. 112 // Returns the profile for this dialog.
112 virtual Profile* profile() = 0; 113 virtual Profile* profile() = 0;
113 114
114 // The web contents that prompted the dialog. 115 // The web contents that prompted the dialog.
115 virtual content::WebContents* web_contents() = 0; 116 virtual content::WebContents* web_contents() = 0;
116 117
118 // Event handlers -----------------------------------------------------------
119
120 virtual void LegalDocumentLinkClicked(size_t index) = 0;
Evan Stade 2013/02/11 01:05:23 docs, what is index
Dan Beam 2013/02/11 19:27:51 Done.
121
122 // Called when the view has been closed. The value for |action| indicates
123 // whether the Autofill operation should be aborted.
124 virtual void ViewClosed(DialogAction action) = 0;
125
117 protected: 126 protected:
118 virtual ~AutofillDialogController(); 127 virtual ~AutofillDialogController();
119 }; 128 };
120 129
121 } // namespace autofill 130 } // namespace autofill
122 131
123 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ 132 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698