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 | |
53 // Returns true if new or edited autofill details should be saved. | 50 // Returns true if new or edited autofill details should be saved. |
54 virtual bool SaveDetailsLocally() = 0; | 51 virtual bool SaveDetailsLocally() = 0; |
55 | 52 |
56 // Triggers dialog to sign in to Google. | 53 // Triggers dialog to sign in to Google. |
57 // Returns a NotificationSource to be used to monitor for sign-in completion. | 54 // Returns a NotificationSource to be used to monitor for sign-in completion. |
58 virtual const content::NavigationController* ShowSignIn() = 0; | 55 virtual const content::NavigationController* ShowSignIn() = 0; |
59 | 56 |
60 // Closes out any signin UI and returns to normal operation. | 57 // Closes out any signin UI and returns to normal operation. |
61 virtual void HideSignIn() = 0; | 58 virtual void HideSignIn() = 0; |
62 | 59 |
(...skipping 11 matching lines...) Expand all Loading... |
74 virtual void CancelForTesting() = 0; | 71 virtual void CancelForTesting() = 0; |
75 | 72 |
76 // Factory function to create the dialog (implemented once per view | 73 // Factory function to create the dialog (implemented once per view |
77 // implementation). |controller| will own the created dialog. | 74 // implementation). |controller| will own the created dialog. |
78 static AutofillDialogView* Create(AutofillDialogController* controller); | 75 static AutofillDialogView* Create(AutofillDialogController* controller); |
79 }; | 76 }; |
80 | 77 |
81 } // namespace autofill | 78 } // namespace autofill |
82 | 79 |
83 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 80 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
OLD | NEW |