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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // Returns dialog notifications that the view should currently be showing in | 157 // Returns dialog notifications that the view should currently be showing in |
158 // order from top to bottom. | 158 // order from top to bottom. |
159 virtual std::vector<DialogNotification> CurrentNotifications() const = 0; | 159 virtual std::vector<DialogNotification> CurrentNotifications() const = 0; |
160 | 160 |
161 // Begins the flow to sign into Wallet. | 161 // Begins the flow to sign into Wallet. |
162 virtual void StartSignInFlow() = 0; | 162 virtual void StartSignInFlow() = 0; |
163 | 163 |
164 // Marks the signin flow into Wallet complete. | 164 // Marks the signin flow into Wallet complete. |
165 virtual void EndSignInFlow() = 0; | 165 virtual void EndSignInFlow() = 0; |
166 | 166 |
| 167 // Called when a checkbox in the notification area has changed its state. |
| 168 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, |
| 169 bool checked) = 0; |
| 170 |
167 // A legal document link has been clicked. | 171 // A legal document link has been clicked. |
168 virtual void LegalDocumentLinkClicked(const ui::Range& range) = 0; | 172 virtual void LegalDocumentLinkClicked(const ui::Range& range) = 0; |
169 | 173 |
170 // Called when the view has been cancelled. | 174 // Called when the view has been cancelled. |
171 virtual void OnCancel() = 0; | 175 virtual void OnCancel() = 0; |
172 | 176 |
173 // Called when the view has been accepted. This could be to submit the payment | 177 // Called when the view has been accepted. This could be to submit the payment |
174 // info or to handle a required action. | 178 // info or to handle a required action. |
175 virtual void OnAccept() = 0; | 179 virtual void OnAccept() = 0; |
176 | 180 |
177 // Returns the profile for this dialog. | 181 // Returns the profile for this dialog. |
178 virtual Profile* profile() = 0; | 182 virtual Profile* profile() = 0; |
179 | 183 |
180 // The web contents that prompted the dialog. | 184 // The web contents that prompted the dialog. |
181 virtual content::WebContents* web_contents() = 0; | 185 virtual content::WebContents* web_contents() = 0; |
182 | 186 |
183 protected: | 187 protected: |
184 virtual ~AutofillDialogController(); | 188 virtual ~AutofillDialogController(); |
185 }; | 189 }; |
186 | 190 |
187 } // namespace autofill | 191 } // namespace autofill |
188 | 192 |
189 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 193 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
OLD | NEW |