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 10 matching lines...) Expand all Loading... |
21 | 21 |
22 // Shows the dialog. | 22 // Shows the dialog. |
23 virtual void Show() = 0; | 23 virtual void Show() = 0; |
24 | 24 |
25 // Hides the dialog as if a user pressed cancel. | 25 // Hides the dialog as if a user pressed cancel. |
26 virtual void Hide() = 0; | 26 virtual void Hide() = 0; |
27 | 27 |
28 // Called when a different notification is available. | 28 // Called when a different notification is available. |
29 virtual void UpdateNotificationArea() = 0; | 29 virtual void UpdateNotificationArea() = 0; |
30 | 30 |
| 31 // Called when account details may have changed (user logs in to GAIA, creates |
| 32 // a new account, etc.). |
| 33 virtual void UpdateAccountChooser() = 0; |
| 34 |
31 // Called when the contents of a section have changed. | 35 // Called when the contents of a section have changed. |
32 virtual void UpdateSection(DialogSection section) = 0; | 36 virtual void UpdateSection(DialogSection section) = 0; |
33 | 37 |
34 // Fills |output| with data the user manually input. | 38 // Fills |output| with data the user manually input. |
35 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0; | 39 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0; |
36 | 40 |
37 // Returns the state of the "use billing address for shipping" checkbox. | 41 // Returns the state of the "use billing address for shipping" checkbox. |
38 virtual bool UseBillingForShipping() = 0; | 42 virtual bool UseBillingForShipping() = 0; |
39 | 43 |
40 // Returns true if new or edited autofill details should be saved. | 44 // Returns true if new or edited autofill details should be saved. |
(...skipping 11 matching lines...) Expand all Loading... |
52 virtual void UpdateProgressBar(double value) = 0; | 56 virtual void UpdateProgressBar(double value) = 0; |
53 | 57 |
54 // Factory function to create the dialog (implemented once per view | 58 // Factory function to create the dialog (implemented once per view |
55 // implementation). |controller| will own the created dialog. | 59 // implementation). |controller| will own the created dialog. |
56 static AutofillDialogView* Create(AutofillDialogController* controller); | 60 static AutofillDialogView* Create(AutofillDialogController* controller); |
57 }; | 61 }; |
58 | 62 |
59 } // namespace autofill | 63 } // namespace autofill |
60 | 64 |
61 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 65 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
OLD | NEW |