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_view_delegate.h" | 8 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // Gets the CVC value the user typed to go along with the stored credit card | 77 // Gets the CVC value the user typed to go along with the stored credit card |
78 // data. If the user is inputing credit card data from scratch, this is not | 78 // data. If the user is inputing credit card data from scratch, this is not |
79 // relevant. | 79 // relevant. |
80 virtual base::string16 GetCvc() = 0; | 80 virtual base::string16 GetCvc() = 0; |
81 | 81 |
82 // Returns true if new or edited autofill details should be saved. | 82 // Returns true if new or edited autofill details should be saved. |
83 virtual bool SaveDetailsLocally() = 0; | 83 virtual bool SaveDetailsLocally() = 0; |
84 | 84 |
85 // Triggers dialog to sign in to Google. | 85 // Triggers dialog to sign in to Google. |
86 // Returns a NotificationSource to be used to monitor for sign-in completion. | 86 // Returns a NotificationSource to be used to monitor for sign-in completion. |
87 virtual const content::NavigationController* ShowSignIn() = 0; | 87 virtual const content::NavigationController* ShowSignIn(const GURL& url) = 0; |
88 | 88 |
89 // Closes out any sign-in UI and returns to normal operation. | 89 // Closes out any sign-in UI and returns to normal operation. |
90 virtual void HideSignIn() = 0; | 90 virtual void HideSignIn() = 0; |
91 | 91 |
92 // Called when the active suggestions data model changed. | 92 // Called when the active suggestions data model changed. |
93 virtual void ModelChanged() = 0; | 93 virtual void ModelChanged() = 0; |
94 | 94 |
95 // Called by AutofillDialogSignInDelegate when the sign-in page experiences a | 95 // Called by AutofillDialogSignInDelegate when the sign-in page experiences a |
96 // resize. |pref_size| is the new preferred size of the sign-in page. | 96 // resize. |pref_size| is the new preferred size of the sign-in page. |
97 virtual void OnSignInResize(const gfx::Size& pref_size) = 0; | 97 virtual void OnSignInResize(const gfx::Size& pref_size) = 0; |
98 | 98 |
99 // Tells the view to validate its manual input in |section|. | 99 // Tells the view to validate its manual input in |section|. |
100 virtual void ValidateSection(DialogSection section) = 0; | 100 virtual void ValidateSection(DialogSection section) = 0; |
101 | 101 |
102 // Factory function to create the dialog (implemented once per view | 102 // Factory function to create the dialog (implemented once per view |
103 // implementation). |controller| will own the created dialog. | 103 // implementation). |controller| will own the created dialog. |
104 static AutofillDialogView* Create(AutofillDialogViewDelegate* delegate); | 104 static AutofillDialogView* Create(AutofillDialogViewDelegate* delegate); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace autofill | 107 } // namespace autofill |
108 | 108 |
109 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 109 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
OLD | NEW |