| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_VIEW_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // Begins or aborts the flow to sign into Wallet. | 180 // Begins or aborts the flow to sign into Wallet. |
| 181 virtual void SignInLinkClicked() = 0; | 181 virtual void SignInLinkClicked() = 0; |
| 182 | 182 |
| 183 // Called when a checkbox in the notification area has changed its state. | 183 // Called when a checkbox in the notification area has changed its state. |
| 184 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, | 184 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, |
| 185 bool checked) = 0; | 185 bool checked) = 0; |
| 186 | 186 |
| 187 // A legal document link has been clicked. | 187 // A legal document link has been clicked. |
| 188 virtual void LegalDocumentLinkClicked(const ui::Range& range) = 0; | 188 virtual void LegalDocumentLinkClicked(const ui::Range& range) = 0; |
| 189 | 189 |
| 190 // A button in the dialog's overlay has been pressed. | |
| 191 virtual void OverlayButtonPressed() = 0; | |
| 192 | |
| 193 // Called when the view has been cancelled. Returns true if the dialog should | 190 // Called when the view has been cancelled. Returns true if the dialog should |
| 194 // now close, or false to keep it open. | 191 // now close, or false to keep it open. |
| 195 virtual bool OnCancel() = 0; | 192 virtual bool OnCancel() = 0; |
| 196 | 193 |
| 197 // Called when the view has been accepted. This could be to submit the payment | 194 // Called when the view has been accepted. This could be to submit the payment |
| 198 // info or to handle a required action. Returns true if the dialog should now | 195 // info or to handle a required action. Returns true if the dialog should now |
| 199 // close, or false to keep it open. | 196 // close, or false to keep it open. |
| 200 virtual bool OnAccept() = 0; | 197 virtual bool OnAccept() = 0; |
| 201 | 198 |
| 202 // Returns the profile for this dialog. | 199 // Returns the profile for this dialog. |
| 203 virtual Profile* profile() = 0; | 200 virtual Profile* profile() = 0; |
| 204 | 201 |
| 205 // The web contents that prompted the dialog. | 202 // The web contents that prompted the dialog. |
| 206 virtual content::WebContents* GetWebContents() = 0; | 203 virtual content::WebContents* GetWebContents() = 0; |
| 207 | 204 |
| 208 protected: | 205 protected: |
| 209 virtual ~AutofillDialogViewDelegate(); | 206 virtual ~AutofillDialogViewDelegate(); |
| 210 }; | 207 }; |
| 211 | 208 |
| 212 } // namespace autofill | 209 } // namespace autofill |
| 213 | 210 |
| 214 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 211 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
| OLD | NEW |