| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_IMPL_H_ |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // Pop up the autosignin first run dialog. | 31 // Pop up the autosignin first run dialog. |
| 32 void ShowAutosigninPrompt(AutoSigninFirstRunPrompt* dialog); | 32 void ShowAutosigninPrompt(AutoSigninFirstRunPrompt* dialog); |
| 33 | 33 |
| 34 bool IsShowingAccountChooser() const { return !!account_chooser_dialog_; } | 34 bool IsShowingAccountChooser() const { return !!account_chooser_dialog_; } |
| 35 | 35 |
| 36 // PasswordDialogController: | 36 // PasswordDialogController: |
| 37 const FormsVector& GetLocalForms() const override; | 37 const FormsVector& GetLocalForms() const override; |
| 38 const FormsVector& GetFederationsForms() const override; | 38 const FormsVector& GetFederationsForms() const override; |
| 39 std::pair<base::string16, gfx::Range> GetAccoutChooserTitle() const override; | 39 std::pair<base::string16, gfx::Range> GetAccoutChooserTitle() const override; |
| 40 bool ShouldShowSignInButton() const override; |
| 40 base::string16 GetAutoSigninPromoTitle() const override; | 41 base::string16 GetAutoSigninPromoTitle() const override; |
| 41 std::pair<base::string16, gfx::Range> GetAutoSigninText() const override; | 42 std::pair<base::string16, gfx::Range> GetAutoSigninText() const override; |
| 42 void OnSmartLockLinkClicked() override; | 43 void OnSmartLockLinkClicked() override; |
| 43 void OnChooseCredentials( | 44 void OnChooseCredentials( |
| 44 const autofill::PasswordForm& password_form, | 45 const autofill::PasswordForm& password_form, |
| 45 password_manager::CredentialType credential_type) override; | 46 password_manager::CredentialType credential_type) override; |
| 47 void OnSignInClicked() override; |
| 46 void OnAutoSigninOK() override; | 48 void OnAutoSigninOK() override; |
| 47 void OnAutoSigninTurnOff() override; | 49 void OnAutoSigninTurnOff() override; |
| 48 void OnCloseDialog() override; | 50 void OnCloseDialog() override; |
| 49 | 51 |
| 50 private: | 52 private: |
| 51 // Release |current_dialog_| and close the open dialog. | 53 // Release |current_dialog_| and close the open dialog. |
| 52 void ResetDialog(); | 54 void ResetDialog(); |
| 53 | 55 |
| 54 Profile* const profile_; | 56 Profile* const profile_; |
| 55 PasswordsModelDelegate* const delegate_; | 57 PasswordsModelDelegate* const delegate_; |
| 56 AccountChooserPrompt* account_chooser_dialog_; | 58 AccountChooserPrompt* account_chooser_dialog_; |
| 57 AutoSigninFirstRunPrompt* autosignin_dialog_; | 59 AutoSigninFirstRunPrompt* autosignin_dialog_; |
| 58 std::vector<std::unique_ptr<autofill::PasswordForm>> local_credentials_; | 60 std::vector<std::unique_ptr<autofill::PasswordForm>> local_credentials_; |
| 59 std::vector<std::unique_ptr<autofill::PasswordForm>> federated_credentials_; | 61 std::vector<std::unique_ptr<autofill::PasswordForm>> federated_credentials_; |
| 60 | 62 |
| 61 DISALLOW_COPY_AND_ASSIGN(PasswordDialogControllerImpl); | 63 DISALLOW_COPY_AND_ASSIGN(PasswordDialogControllerImpl); |
| 62 }; | 64 }; |
| 63 | 65 |
| 64 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_IMPL_H_ | 66 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |