Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(876)

Side by Side Diff: chrome/browser/ui/passwords/password_dialog_controller_impl.h

Issue 1992633003: Add "Sign In" button to the account chooser on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698