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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual bool ShouldOfferToSaveInChrome() const = 0; | 69 virtual bool ShouldOfferToSaveInChrome() const = 0; |
70 | 70 |
71 // Returns the model for the account chooser. It will return NULL if the | 71 // Returns the model for the account chooser. It will return NULL if the |
72 // account chooser should not show a menu. In this case, clicking on the | 72 // account chooser should not show a menu. In this case, clicking on the |
73 // account chooser should initiate sign-in. | 73 // account chooser should initiate sign-in. |
74 virtual ui::MenuModel* MenuModelForAccountChooser() = 0; | 74 virtual ui::MenuModel* MenuModelForAccountChooser() = 0; |
75 | 75 |
76 // Returns the icon that should be shown in the account chooser. | 76 // Returns the icon that should be shown in the account chooser. |
77 virtual gfx::Image AccountChooserImage() = 0; | 77 virtual gfx::Image AccountChooserImage() = 0; |
78 | 78 |
| 79 // Whether the user last selected "Pay Without Wallet" as their payment |
| 80 // method. |
| 81 virtual bool GetPayWithoutWallet() const = 0; |
| 82 |
| 83 // Change the value of the "Pay Without Wallet" pref. |
| 84 virtual void SetPayWithoutWallet(bool pay_without_wallet) = 0; |
| 85 |
79 // Whether or not an Autocheckout flow is running. | 86 // Whether or not an Autocheckout flow is running. |
80 virtual bool AutocheckoutIsRunning() const = 0; | 87 virtual bool AutocheckoutIsRunning() const = 0; |
81 | 88 |
82 // Whether or not there was an error in an Autocheckout flow. | 89 // Whether or not there was an error in an Autocheckout flow. |
83 virtual bool HadAutocheckoutError() const = 0; | 90 virtual bool HadAutocheckoutError() const = 0; |
84 | 91 |
85 // Whether or not the |button| should be enabled. | 92 // Whether or not the |button| should be enabled. |
86 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const = 0; | 93 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const = 0; |
87 | 94 |
88 // Returns ranges to linkify in the text returned by |LegalDocumentsText()|. | 95 // Returns ranges to linkify in the text returned by |LegalDocumentsText()|. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // The web contents that prompted the dialog. | 188 // The web contents that prompted the dialog. |
182 virtual content::WebContents* web_contents() = 0; | 189 virtual content::WebContents* web_contents() = 0; |
183 | 190 |
184 protected: | 191 protected: |
185 virtual ~AutofillDialogController(); | 192 virtual ~AutofillDialogController(); |
186 }; | 193 }; |
187 | 194 |
188 } // namespace autofill | 195 } // namespace autofill |
189 | 196 |
190 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 197 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
OLD | NEW |