| 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 | |
| 35 // Called when the contents of a section have changed. | 31 // Called when the contents of a section have changed. |
| 36 virtual void UpdateSection(DialogSection section) = 0; | 32 virtual void UpdateSection(DialogSection section) = 0; |
| 37 | 33 |
| 38 // Fills |output| with data the user manually input. | 34 // Fills |output| with data the user manually input. |
| 39 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0; | 35 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0; |
| 40 | 36 |
| 41 // Returns the state of the "use billing address for shipping" checkbox. | 37 // Returns the state of the "use billing address for shipping" checkbox. |
| 42 virtual bool UseBillingForShipping() = 0; | 38 virtual bool UseBillingForShipping() = 0; |
| 43 | 39 |
| 44 // Returns true if new or edited autofill details should be saved. | 40 // Returns true if new or edited autofill details should be saved. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 56 virtual void UpdateProgressBar(double value) = 0; | 52 virtual void UpdateProgressBar(double value) = 0; |
| 57 | 53 |
| 58 // Factory function to create the dialog (implemented once per view | 54 // Factory function to create the dialog (implemented once per view |
| 59 // implementation). |controller| will own the created dialog. | 55 // implementation). |controller| will own the created dialog. |
| 60 static AutofillDialogView* Create(AutofillDialogController* controller); | 56 static AutofillDialogView* Create(AutofillDialogController* controller); |
| 61 }; | 57 }; |
| 62 | 58 |
| 63 } // namespace autofill | 59 } // namespace autofill |
| 64 | 60 |
| 65 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 61 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
| OLD | NEW |