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 29 matching lines...) Expand all Loading... |
40 virtual void UpdateSection(DialogSection section, UserInputAction action) = 0; | 40 virtual void UpdateSection(DialogSection section, UserInputAction action) = 0; |
41 | 41 |
42 // Fills |output| with data the user manually input. | 42 // Fills |output| with data the user manually input. |
43 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0; | 43 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) = 0; |
44 | 44 |
45 // Gets the CVC value the user typed to go along with the stored credit card | 45 // Gets the CVC value the user typed to go along with the stored credit card |
46 // data. If the user is inputing credit card data from scratch, this is not | 46 // data. If the user is inputing credit card data from scratch, this is not |
47 // relevant. | 47 // relevant. |
48 virtual string16 GetCvc() = 0; | 48 virtual string16 GetCvc() = 0; |
49 | 49 |
| 50 // Returns the state of the "use billing address for shipping" checkbox. |
| 51 virtual bool UseBillingForShipping() = 0; |
| 52 |
50 // Returns true if new or edited autofill details should be saved. | 53 // Returns true if new or edited autofill details should be saved. |
51 virtual bool SaveDetailsLocally() = 0; | 54 virtual bool SaveDetailsLocally() = 0; |
52 | 55 |
53 // Triggers dialog to sign in to Google. | 56 // Triggers dialog to sign in to Google. |
54 // Returns a NotificationSource to be used to monitor for sign-in completion. | 57 // Returns a NotificationSource to be used to monitor for sign-in completion. |
55 virtual const content::NavigationController* ShowSignIn() = 0; | 58 virtual const content::NavigationController* ShowSignIn() = 0; |
56 | 59 |
57 // Closes out any signin UI and returns to normal operation. | 60 // Closes out any signin UI and returns to normal operation. |
58 virtual void HideSignIn() = 0; | 61 virtual void HideSignIn() = 0; |
59 | 62 |
(...skipping 11 matching lines...) Expand all Loading... |
71 virtual void CancelForTesting() = 0; | 74 virtual void CancelForTesting() = 0; |
72 | 75 |
73 // Factory function to create the dialog (implemented once per view | 76 // Factory function to create the dialog (implemented once per view |
74 // implementation). |controller| will own the created dialog. | 77 // implementation). |controller| will own the created dialog. |
75 static AutofillDialogView* Create(AutofillDialogController* controller); | 78 static AutofillDialogView* Create(AutofillDialogController* controller); |
76 }; | 79 }; |
77 | 80 |
78 } // namespace autofill | 81 } // namespace autofill |
79 | 82 |
80 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 83 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
OLD | NEW |