OLD | NEW |
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 30 matching lines...) Expand all Loading... |
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 | 50 |
51 // State --------------------------------------------------------------------- | |
52 | |
53 // Whether the user is known to be signed in. | |
54 virtual DialogSignedInState SignedInState() const = 0; | |
55 | |
56 // Detail inputs ------------------------------------------------------------- | 51 // Detail inputs ------------------------------------------------------------- |
57 | 52 |
58 // Returns the set of inputs the page has requested which fall under | 53 // Returns the set of inputs the page has requested which fall under |
59 // |section|. | 54 // |section|. |
60 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) | 55 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) |
61 const = 0; | 56 const = 0; |
62 | 57 |
63 // Returns the combobox model for inputs of type |type|, or NULL if the input | 58 // Returns the combobox model for inputs of type |type|, or NULL if the input |
64 // should be a text field. | 59 // should be a text field. |
65 virtual ui::ComboboxModel* ComboboxModelForAutofillType( | 60 virtual ui::ComboboxModel* ComboboxModelForAutofillType( |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // The web contents that prompted the dialog. | 109 // The web contents that prompted the dialog. |
115 virtual content::WebContents* web_contents() = 0; | 110 virtual content::WebContents* web_contents() = 0; |
116 | 111 |
117 protected: | 112 protected: |
118 virtual ~AutofillDialogController(); | 113 virtual ~AutofillDialogController(); |
119 }; | 114 }; |
120 | 115 |
121 } // namespace autofill | 116 } // namespace autofill |
122 | 117 |
123 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 118 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
OLD | NEW |