| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 virtual base::string16 SpinnerText() const override; | 106 virtual base::string16 SpinnerText() const override; |
| 107 virtual base::string16 EditSuggestionText() const override; | 107 virtual base::string16 EditSuggestionText() const override; |
| 108 virtual base::string16 CancelButtonText() const override; | 108 virtual base::string16 CancelButtonText() const override; |
| 109 virtual base::string16 ConfirmButtonText() const override; | 109 virtual base::string16 ConfirmButtonText() const override; |
| 110 virtual base::string16 SaveLocallyText() const override; | 110 virtual base::string16 SaveLocallyText() const override; |
| 111 virtual base::string16 SaveLocallyTooltip() const override; | 111 virtual base::string16 SaveLocallyTooltip() const override; |
| 112 virtual base::string16 LegalDocumentsText() override; | 112 virtual base::string16 LegalDocumentsText() override; |
| 113 virtual bool ShouldShowSpinner() const override; | 113 virtual bool ShouldShowSpinner() const override; |
| 114 virtual bool ShouldShowAccountChooser() const override; | 114 virtual bool ShouldShowAccountChooser() const override; |
| 115 virtual bool ShouldShowSignInWebView() const override; | 115 virtual bool ShouldShowSignInWebView() const override; |
| 116 virtual GURL SignInUrl() const override; | |
| 117 virtual bool ShouldOfferToSaveInChrome() const override; | 116 virtual bool ShouldOfferToSaveInChrome() const override; |
| 118 virtual bool ShouldSaveInChrome() const override; | 117 virtual bool ShouldSaveInChrome() const override; |
| 119 virtual ui::MenuModel* MenuModelForAccountChooser() override; | 118 virtual ui::MenuModel* MenuModelForAccountChooser() override; |
| 120 virtual gfx::Image AccountChooserImage() override; | 119 virtual gfx::Image AccountChooserImage() override; |
| 121 virtual gfx::Image ButtonStripImage() const override; | 120 virtual gfx::Image ButtonStripImage() const override; |
| 122 virtual int GetDialogButtons() const override; | 121 virtual int GetDialogButtons() const override; |
| 123 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const override; | 122 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const override; |
| 124 virtual DialogOverlayState GetDialogOverlay() override; | 123 virtual DialogOverlayState GetDialogOverlay() override; |
| 125 virtual const std::vector<gfx::Range>& LegalDocumentLinks() override; | 124 virtual const std::vector<gfx::Range>& LegalDocumentLinks() override; |
| 126 virtual bool SectionIsActive(DialogSection section) const override; | 125 virtual bool SectionIsActive(DialogSection section) const override; |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 // Shows an educational bubble if a new credit card was saved or the first few | 622 // Shows an educational bubble if a new credit card was saved or the first few |
| 624 // times an Online Wallet fronting card was generated. | 623 // times an Online Wallet fronting card was generated. |
| 625 void MaybeShowCreditCardBubble(); | 624 void MaybeShowCreditCardBubble(); |
| 626 | 625 |
| 627 // Called when the delay for enabling the submit button ends. | 626 // Called when the delay for enabling the submit button ends. |
| 628 void OnSubmitButtonDelayEnd(); | 627 void OnSubmitButtonDelayEnd(); |
| 629 | 628 |
| 630 // Gets the user's current Wallet cookie (gdToken) from the cookie jar. | 629 // Gets the user's current Wallet cookie (gdToken) from the cookie jar. |
| 631 void FetchWalletCookie(); | 630 void FetchWalletCookie(); |
| 632 | 631 |
| 632 // Tells the view to shows the webpage at |url|. |
| 633 void ShowSignIn(const GURL& url); |
| 634 |
| 633 // The |profile| for |contents_|. | 635 // The |profile| for |contents_|. |
| 634 Profile* const profile_; | 636 Profile* const profile_; |
| 635 | 637 |
| 636 // For logging UMA metrics. | 638 // For logging UMA metrics. |
| 637 const AutofillMetrics metric_logger_; | 639 const AutofillMetrics metric_logger_; |
| 638 base::Time dialog_shown_timestamp_; | 640 base::Time dialog_shown_timestamp_; |
| 639 AutofillMetrics::DialogInitialUserStateMetric initial_user_state_; | 641 AutofillMetrics::DialogInitialUserStateMetric initial_user_state_; |
| 640 | 642 |
| 641 FormStructure form_structure_; | 643 FormStructure form_structure_; |
| 642 | 644 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 base::string16 submitted_cardholder_name_; | 854 base::string16 submitted_cardholder_name_; |
| 853 | 855 |
| 854 base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_; | 856 base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_; |
| 855 | 857 |
| 856 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 858 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 857 }; | 859 }; |
| 858 | 860 |
| 859 } // namespace autofill | 861 } // namespace autofill |
| 860 | 862 |
| 861 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 863 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |