| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 virtual string16 SignInLinkText() const = 0; | 44 virtual string16 SignInLinkText() const = 0; |
| 45 virtual string16 EditSuggestionText() const = 0; | 45 virtual string16 EditSuggestionText() const = 0; |
| 46 virtual string16 CancelButtonText() const = 0; | 46 virtual string16 CancelButtonText() const = 0; |
| 47 virtual string16 ConfirmButtonText() const = 0; | 47 virtual string16 ConfirmButtonText() const = 0; |
| 48 virtual string16 SaveLocallyText() const = 0; | 48 virtual string16 SaveLocallyText() const = 0; |
| 49 virtual string16 SaveLocallyTooltip() const = 0; | 49 virtual string16 SaveLocallyTooltip() const = 0; |
| 50 virtual string16 LegalDocumentsText() = 0; | 50 virtual string16 LegalDocumentsText() = 0; |
| 51 | 51 |
| 52 // State --------------------------------------------------------------------- | 52 // State --------------------------------------------------------------------- |
| 53 | 53 |
| 54 // Whether the user is known to be signed in. | 54 // Whether the sign-in link should be disabled. |
| 55 virtual DialogSignedInState SignedInState() const = 0; | 55 virtual bool ShouldDisableSignInLink() const = 0; |
| 56 | 56 |
| 57 // Whether the dialog is in a not exactly well-defined state | 57 // Whether the dialog is in a not exactly well-defined state |
| 58 // (while attempting to sign-in or retrieving the wallet data etc). | 58 // (while attempting to sign-in or retrieving the wallet data etc). |
| 59 virtual bool ShouldShowSpinner() const = 0; | 59 virtual bool ShouldShowSpinner() const = 0; |
| 60 | 60 |
| 61 // Whether to show the checkbox to save data locally (in Autofill). | 61 // Whether to show the checkbox to save data locally (in Autofill). |
| 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 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 // The web contents that prompted the dialog. | 194 // The web contents that prompted the dialog. |
| 195 virtual content::WebContents* GetWebContents() = 0; | 195 virtual content::WebContents* GetWebContents() = 0; |
| 196 | 196 |
| 197 protected: | 197 protected: |
| 198 virtual ~AutofillDialogViewDelegate(); | 198 virtual ~AutofillDialogViewDelegate(); |
| 199 }; | 199 }; |
| 200 | 200 |
| 201 } // namespace autofill | 201 } // namespace autofill |
| 202 | 202 |
| 203 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 203 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
| OLD | NEW |