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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 72 // Whether or not the details container should be showing currently. |
73 virtual bool ShouldShowDetailArea() const = 0; | 73 virtual bool ShouldShowDetailArea() const = 0; |
74 | 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 | 75 // Returns the image that should be shown on the left of the button strip |
79 // or an empty image if none should be shown. | 76 // or an empty image if none should be shown. |
80 virtual gfx::Image ButtonStripImage() const = 0; | 77 virtual gfx::Image ButtonStripImage() const = 0; |
81 | 78 |
82 // Which dialog buttons should be visible. | 79 // Which dialog buttons should be visible. |
83 virtual int GetDialogButtons() const = 0; | 80 virtual int GetDialogButtons() const = 0; |
84 | 81 |
85 // Whether or not the |button| should be enabled. | 82 // Whether or not the |button| should be enabled. |
86 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const = 0; | 83 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const = 0; |
87 | 84 |
(...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. | 162 // no splash screen should be shown, this image will be empty. |
166 virtual gfx::Image SplashPageImage() const = 0; | 163 virtual gfx::Image SplashPageImage() const = 0; |
167 | 164 |
168 // Called when the view has been closed. | 165 // Called when the view has been closed. |
169 virtual void ViewClosed() = 0; | 166 virtual void ViewClosed() = 0; |
170 | 167 |
171 // Returns dialog notifications that the view should currently be showing in | 168 // Returns dialog notifications that the view should currently be showing in |
172 // order from top to bottom. | 169 // order from top to bottom. |
173 virtual std::vector<DialogNotification> CurrentNotifications() = 0; | 170 virtual std::vector<DialogNotification> CurrentNotifications() = 0; |
174 | 171 |
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. | 172 // Begins or aborts the flow to sign into Wallet. |
181 virtual void SignInLinkClicked() = 0; | 173 virtual void SignInLinkClicked() = 0; |
182 | 174 |
183 // Called when a checkbox in the notification area has changed its state. | 175 // Called when a checkbox in the notification area has changed its state. |
184 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, | 176 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, |
185 bool checked) = 0; | 177 bool checked) = 0; |
186 | 178 |
187 // A legal document link has been clicked. | 179 // A legal document link has been clicked. |
188 virtual void LegalDocumentLinkClicked(const ui::Range& range) = 0; | 180 virtual void LegalDocumentLinkClicked(const ui::Range& range) = 0; |
189 | 181 |
(...skipping 15 matching lines...) Expand all Loading... |
205 // The web contents that prompted the dialog. | 197 // The web contents that prompted the dialog. |
206 virtual content::WebContents* GetWebContents() = 0; | 198 virtual content::WebContents* GetWebContents() = 0; |
207 | 199 |
208 protected: | 200 protected: |
209 virtual ~AutofillDialogViewDelegate(); | 201 virtual ~AutofillDialogViewDelegate(); |
210 }; | 202 }; |
211 | 203 |
212 } // namespace autofill | 204 } // namespace autofill |
213 | 205 |
214 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 206 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
OLD | NEW |