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_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // Returns a NotificationSource to be used to monitor for sign-in completion. | 48 // Returns a NotificationSource to be used to monitor for sign-in completion. |
49 virtual const content::NavigationController& ShowSignIn() = 0; | 49 virtual const content::NavigationController& ShowSignIn() = 0; |
50 | 50 |
51 // Closes out any signin UI and returns to normal operation. | 51 // Closes out any signin UI and returns to normal operation. |
52 virtual void HideSignIn() = 0; | 52 virtual void HideSignIn() = 0; |
53 | 53 |
54 // Updates the progress bar based on the Autocheckout progress. |value| should | 54 // Updates the progress bar based on the Autocheckout progress. |value| should |
55 // be in [0.0, 1.0]. | 55 // be in [0.0, 1.0]. |
56 virtual void UpdateProgressBar(double value) = 0; | 56 virtual void UpdateProgressBar(double value) = 0; |
57 | 57 |
| 58 // Simulates the user pressing 'Submit' to accept the dialog. |
| 59 virtual void SubmitForTesting() = 0; |
| 60 |
| 61 // Simulates the user pressing 'Cancel' to abort the dialog. |
| 62 virtual void CancelForTesting() = 0; |
| 63 |
58 // Factory function to create the dialog (implemented once per view | 64 // Factory function to create the dialog (implemented once per view |
59 // implementation). |controller| will own the created dialog. | 65 // implementation). |controller| will own the created dialog. |
60 static AutofillDialogView* Create(AutofillDialogController* controller); | 66 static AutofillDialogView* Create(AutofillDialogController* controller); |
61 }; | 67 }; |
62 | 68 |
63 } // namespace autofill | 69 } // namespace autofill |
64 | 70 |
65 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 71 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
OLD | NEW |