| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // AutofillDialogViewDelegate implementation. | 109 // AutofillDialogViewDelegate implementation. |
| 110 virtual string16 DialogTitle() const OVERRIDE; | 110 virtual string16 DialogTitle() const OVERRIDE; |
| 111 virtual string16 AccountChooserText() const OVERRIDE; | 111 virtual string16 AccountChooserText() const OVERRIDE; |
| 112 virtual string16 SignInLinkText() const OVERRIDE; | 112 virtual string16 SignInLinkText() const OVERRIDE; |
| 113 virtual string16 EditSuggestionText() const OVERRIDE; | 113 virtual string16 EditSuggestionText() const OVERRIDE; |
| 114 virtual string16 CancelButtonText() const OVERRIDE; | 114 virtual string16 CancelButtonText() const OVERRIDE; |
| 115 virtual string16 ConfirmButtonText() const OVERRIDE; | 115 virtual string16 ConfirmButtonText() const OVERRIDE; |
| 116 virtual string16 SaveLocallyText() const OVERRIDE; | 116 virtual string16 SaveLocallyText() const OVERRIDE; |
| 117 virtual string16 SaveLocallyTooltip() const OVERRIDE; | 117 virtual string16 SaveLocallyTooltip() const OVERRIDE; |
| 118 virtual string16 LegalDocumentsText() OVERRIDE; | 118 virtual string16 LegalDocumentsText() OVERRIDE; |
| 119 virtual DialogSignedInState SignedInState() const OVERRIDE; | 119 virtual bool ShouldDisableSignInLink() const OVERRIDE; |
| 120 virtual bool ShouldShowSpinner() const OVERRIDE; | 120 virtual bool ShouldShowSpinner() const OVERRIDE; |
| 121 virtual bool ShouldOfferToSaveInChrome() const OVERRIDE; | 121 virtual bool ShouldOfferToSaveInChrome() const OVERRIDE; |
| 122 virtual ui::MenuModel* MenuModelForAccountChooser() OVERRIDE; | 122 virtual ui::MenuModel* MenuModelForAccountChooser() OVERRIDE; |
| 123 virtual gfx::Image AccountChooserImage() OVERRIDE; | 123 virtual gfx::Image AccountChooserImage() OVERRIDE; |
| 124 virtual bool ShouldShowDetailArea() const OVERRIDE; | 124 virtual bool ShouldShowDetailArea() const OVERRIDE; |
| 125 virtual bool ShouldShowProgressBar() const OVERRIDE; | 125 virtual bool ShouldShowProgressBar() const OVERRIDE; |
| 126 virtual gfx::Image ButtonStripImage() const OVERRIDE; | 126 virtual gfx::Image ButtonStripImage() const OVERRIDE; |
| 127 virtual int GetDialogButtons() const OVERRIDE; | 127 virtual int GetDialogButtons() const OVERRIDE; |
| 128 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; | 128 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; |
| 129 virtual DialogOverlayState GetDialogOverlay() const OVERRIDE; | 129 virtual DialogOverlayState GetDialogOverlay() const OVERRIDE; |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 | 304 |
| 305 // Whether the user's wallet items have at least one address and instrument. | 305 // Whether the user's wallet items have at least one address and instrument. |
| 306 bool HasCompleteWallet() const; | 306 bool HasCompleteWallet() const; |
| 307 | 307 |
| 308 // Starts fetching the wallet items from Online Wallet. | 308 // Starts fetching the wallet items from Online Wallet. |
| 309 void GetWalletItems(); | 309 void GetWalletItems(); |
| 310 | 310 |
| 311 // Stop showing sign in flow. | 311 // Stop showing sign in flow. |
| 312 void HideSignIn(); | 312 void HideSignIn(); |
| 313 | 313 |
| 314 // Whether the user is known to be signed in. |
| 315 DialogSignedInState SignedInState() const; |
| 316 |
| 314 // Handles the SignedInState() on Wallet or sign-in state update. | 317 // Handles the SignedInState() on Wallet or sign-in state update. |
| 315 // Triggers the user name fetch and passive sign-in. | 318 // Triggers the user name fetch and passive sign-in. |
| 316 void SignedInStateUpdated(); | 319 void SignedInStateUpdated(); |
| 317 | 320 |
| 318 // Refreshes the model on Wallet or sign-in state update. | 321 // Refreshes the model on Wallet or sign-in state update. |
| 319 void OnWalletOrSigninUpdate(); | 322 void OnWalletOrSigninUpdate(); |
| 320 | 323 |
| 321 // Called when a Save or Update call to Wallet has validation errors. | 324 // Called when a Save or Update call to Wallet has validation errors. |
| 322 void OnWalletFormFieldError( | 325 void OnWalletFormFieldError( |
| 323 const std::vector<wallet::FormFieldError>& form_field_errors); | 326 const std::vector<wallet::FormFieldError>& form_field_errors); |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 // show a bubble as the dialog closes to confirm a user's new card info was | 717 // show a bubble as the dialog closes to confirm a user's new card info was |
| 715 // saved. Never populated while incognito (as nothing's actually saved). | 718 // saved. Never populated while incognito (as nothing's actually saved). |
| 716 scoped_ptr<CreditCard> newly_saved_card_; | 719 scoped_ptr<CreditCard> newly_saved_card_; |
| 717 | 720 |
| 718 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 721 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 719 }; | 722 }; |
| 720 | 723 |
| 721 } // namespace autofill | 724 } // namespace autofill |
| 722 | 725 |
| 723 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 726 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |