Chromium Code Reviews| 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; |
|
Evan Stade
2013/08/30 19:47:17
since the enum is now only used privately in the c
Ilya Sherman
2013/08/30 21:45:59
Done.
| |
| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 205 // The web contents that prompted the dialog. | 205 // The web contents that prompted the dialog. |
| 206 virtual content::WebContents* GetWebContents() = 0; | 206 virtual content::WebContents* GetWebContents() = 0; |
| 207 | 207 |
| 208 protected: | 208 protected: |
| 209 virtual ~AutofillDialogViewDelegate(); | 209 virtual ~AutofillDialogViewDelegate(); |
| 210 }; | 210 }; |
| 211 | 211 |
| 212 } // namespace autofill | 212 } // namespace autofill |
| 213 | 213 |
| 214 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 214 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
| OLD | NEW |