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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Whether a loading animation should be shown (e.g. while signing in, | 59 // Whether a loading animation should be shown (e.g. while signing in, |
60 // retreiving Wallet data, etc.). | 60 // retreiving Wallet data, etc.). |
61 virtual bool ShouldShowSpinner() const = 0; | 61 virtual bool ShouldShowSpinner() const = 0; |
62 | 62 |
63 // Whether the account chooser/sign in link control should be visible. | 63 // Whether the account chooser/sign in link control should be visible. |
64 virtual bool ShouldShowAccountChooser() const = 0; | 64 virtual bool ShouldShowAccountChooser() const = 0; |
65 | 65 |
66 // Whether the sign in web view should be displayed. | 66 // Whether the sign in web view should be displayed. |
67 virtual bool ShouldShowSignInWebView() const = 0; | 67 virtual bool ShouldShowSignInWebView() const = 0; |
68 | 68 |
69 // The URL to sign in to Google. | |
70 virtual GURL SignInUrl() const = 0; | |
71 | |
72 // Whether to show the checkbox to save data locally (in Autofill). | 69 // Whether to show the checkbox to save data locally (in Autofill). |
73 virtual bool ShouldOfferToSaveInChrome() const = 0; | 70 virtual bool ShouldOfferToSaveInChrome() const = 0; |
74 | 71 |
75 // Whether the checkbox to save data locally should be checked initially. | 72 // Whether the checkbox to save data locally should be checked initially. |
76 virtual bool ShouldSaveInChrome() const = 0; | 73 virtual bool ShouldSaveInChrome() const = 0; |
77 | 74 |
78 // Returns the model for the account chooser. It will return NULL if the | 75 // Returns the model for the account chooser. It will return NULL if the |
79 // account chooser should not show a menu. In this case, clicking on the | 76 // account chooser should not show a menu. In this case, clicking on the |
80 // account chooser should initiate sign-in. | 77 // account chooser should initiate sign-in. |
81 virtual ui::MenuModel* MenuModelForAccountChooser() = 0; | 78 virtual ui::MenuModel* MenuModelForAccountChooser() = 0; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 // The web contents that prompted the dialog. | 210 // The web contents that prompted the dialog. |
214 virtual content::WebContents* GetWebContents() = 0; | 211 virtual content::WebContents* GetWebContents() = 0; |
215 | 212 |
216 protected: | 213 protected: |
217 virtual ~AutofillDialogViewDelegate(); | 214 virtual ~AutofillDialogViewDelegate(); |
218 }; | 215 }; |
219 | 216 |
220 } // namespace autofill | 217 } // namespace autofill |
221 | 218 |
222 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 219 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
OLD | NEW |