OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual bool ShouldOfferToSaveInChrome() const = 0; | 62 virtual bool ShouldOfferToSaveInChrome() const = 0; |
63 | 63 |
64 // Returns the model for the account chooser. It will return NULL if the | 64 // Returns the model for the account chooser. It will return NULL if the |
65 // account chooser should not show a menu. In this case, clicking on the | 65 // account chooser should not show a menu. In this case, clicking on the |
66 // account chooser should initiate sign-in. | 66 // account chooser should initiate sign-in. |
67 virtual ui::MenuModel* MenuModelForAccountChooser() = 0; | 67 virtual ui::MenuModel* MenuModelForAccountChooser() = 0; |
68 | 68 |
69 // Returns the icon that should be shown in the account chooser. | 69 // Returns the icon that should be shown in the account chooser. |
70 virtual gfx::Image AccountChooserImage() = 0; | 70 virtual gfx::Image AccountChooserImage() = 0; |
71 | 71 |
72 // Whether or not the details container should be showing currently. | |
73 virtual bool ShouldShowDetailArea() const = 0; | |
74 | |
75 // Whether or not the progress bar in the button strip should be showing. | |
76 virtual bool ShouldShowProgressBar() const = 0; | |
77 | |
78 // Returns the image that should be shown on the left of the button strip | 72 // Returns the image that should be shown on the left of the button strip |
79 // or an empty image if none should be shown. | 73 // or an empty image if none should be shown. |
80 virtual gfx::Image ButtonStripImage() const = 0; | 74 virtual gfx::Image ButtonStripImage() const = 0; |
81 | 75 |
82 // Which dialog buttons should be visible. | 76 // Which dialog buttons should be visible. |
83 virtual int GetDialogButtons() const = 0; | 77 virtual int GetDialogButtons() const = 0; |
84 | 78 |
85 // Whether or not the |button| should be enabled. | 79 // Whether or not the |button| should be enabled. |
86 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const = 0; | 80 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const = 0; |
87 | 81 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 // no splash screen should be shown, this image will be empty. | 159 // no splash screen should be shown, this image will be empty. |
166 virtual gfx::Image SplashPageImage() const = 0; | 160 virtual gfx::Image SplashPageImage() const = 0; |
167 | 161 |
168 // Called when the view has been closed. | 162 // Called when the view has been closed. |
169 virtual void ViewClosed() = 0; | 163 virtual void ViewClosed() = 0; |
170 | 164 |
171 // Returns dialog notifications that the view should currently be showing in | 165 // Returns dialog notifications that the view should currently be showing in |
172 // order from top to bottom. | 166 // order from top to bottom. |
173 virtual std::vector<DialogNotification> CurrentNotifications() = 0; | 167 virtual std::vector<DialogNotification> CurrentNotifications() = 0; |
174 | 168 |
175 // Returns Autocheckout steps that the view should currently be showing in | |
176 // order from first to last. | |
177 virtual std::vector<DialogAutocheckoutStep> CurrentAutocheckoutSteps() | |
178 const = 0; | |
179 | |
180 // Begins or aborts the flow to sign into Wallet. | 169 // Begins or aborts the flow to sign into Wallet. |
181 virtual void SignInLinkClicked() = 0; | 170 virtual void SignInLinkClicked() = 0; |
182 | 171 |
183 // Called when a checkbox in the notification area has changed its state. | 172 // Called when a checkbox in the notification area has changed its state. |
184 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, | 173 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, |
185 bool checked) = 0; | 174 bool checked) = 0; |
186 | 175 |
187 // A legal document link has been clicked. | 176 // A legal document link has been clicked. |
188 virtual void LegalDocumentLinkClicked(const ui::Range& range) = 0; | 177 virtual void LegalDocumentLinkClicked(const ui::Range& range) = 0; |
189 | 178 |
(...skipping 15 matching lines...) Expand all Loading... |
205 // The web contents that prompted the dialog. | 194 // The web contents that prompted the dialog. |
206 virtual content::WebContents* GetWebContents() = 0; | 195 virtual content::WebContents* GetWebContents() = 0; |
207 | 196 |
208 protected: | 197 protected: |
209 virtual ~AutofillDialogViewDelegate(); | 198 virtual ~AutofillDialogViewDelegate(); |
210 }; | 199 }; |
211 | 200 |
212 } // namespace autofill | 201 } // namespace autofill |
213 | 202 |
214 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 203 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
OLD | NEW |