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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 // Called when the contents of a section have changed. | 28 // Called when the contents of a section have changed. |
29 virtual void UpdateSection(DialogSection section) = 0; | 29 virtual void UpdateSection(DialogSection section) = 0; |
30 | 30 |
31 // Fills |output| with data the user manually input. | 31 // Fills |output| with data the user manually input. |
32 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0; | 32 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0; |
33 | 33 |
34 // Returns the state of the "use billing address for shipping" checkbox. | 34 // Returns the state of the "use billing address for shipping" checkbox. |
35 virtual bool UseBillingForShipping() = 0; | 35 virtual bool UseBillingForShipping() = 0; |
36 | 36 |
| 37 // Returns true if new or edited autofill details should be saved. |
| 38 virtual bool SaveDetailsLocally() = 0; |
| 39 |
37 // Triggers dialog to sign in to Google. | 40 // Triggers dialog to sign in to Google. |
38 // Returns a NotificationSource to be used to monitor for sign-in completion. | 41 // Returns a NotificationSource to be used to monitor for sign-in completion. |
39 virtual const content::NavigationController& ShowSignIn() = 0; | 42 virtual const content::NavigationController& ShowSignIn() = 0; |
40 | 43 |
41 // Closes out any signin UI and returns to normal operation. | 44 // Closes out any signin UI and returns to normal operation. |
42 virtual void HideSignIn() = 0; | 45 virtual void HideSignIn() = 0; |
43 | 46 |
44 // Factory function to create the dialog (implemented once per view | 47 // Factory function to create the dialog (implemented once per view |
45 // implementation). |controller| will own the created dialog. | 48 // implementation). |controller| will own the created dialog. |
46 static AutofillDialogView* Create(AutofillDialogController* controller); | 49 static AutofillDialogView* Create(AutofillDialogController* controller); |
47 }; | 50 }; |
48 | 51 |
49 } // namespace autofill | 52 } // namespace autofill |
50 | 53 |
51 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 54 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
OLD | NEW |