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

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

Issue 2036323002: Implement the UI logic behind the Sign In promo in the password bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PASSWORDS_MODEL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "components/password_manager/core/common/credential_manager_types.h" 10 #include "components/password_manager/core/common/credential_manager_types.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void ChooseCredential( 81 virtual void ChooseCredential(
82 autofill::PasswordForm form, 82 autofill::PasswordForm form,
83 password_manager::CredentialType credential_type) = 0; 83 password_manager::CredentialType credential_type) = 0;
84 84
85 // Open a new tab pointing to passwords.google.com. 85 // Open a new tab pointing to passwords.google.com.
86 virtual void NavigateToExternalPasswordManager() = 0; 86 virtual void NavigateToExternalPasswordManager() = 0;
87 // Open a new tab, pointing to the Smart Lock help article. 87 // Open a new tab, pointing to the Smart Lock help article.
88 virtual void NavigateToSmartLockHelpPage() = 0; 88 virtual void NavigateToSmartLockHelpPage() = 0;
89 // Open a new tab, pointing to the password manager settings page. 89 // Open a new tab, pointing to the password manager settings page.
90 virtual void NavigateToPasswordManagerSettingsPage() = 0; 90 virtual void NavigateToPasswordManagerSettingsPage() = 0;
91 // Starts the Chrome Sign in flow.
92 virtual void NavigateToChromeSignIn() = 0;
91 93
92 // Called from the dialog controller when the dialog is hidden. 94 // Called from the dialog controller when the dialog is hidden.
93 virtual void OnDialogHidden() = 0; 95 virtual void OnDialogHidden() = 0;
94 96
95 protected: 97 protected:
96 virtual ~PasswordsModelDelegate() = default; 98 virtual ~PasswordsModelDelegate() = default;
97 }; 99 };
98 100
99 // Returns ManagePasswordsUIController instance for |contents| 101 // Returns ManagePasswordsUIController instance for |contents|
100 PasswordsModelDelegate* PasswordsModelDelegateFromWebContents( 102 PasswordsModelDelegate* PasswordsModelDelegateFromWebContents(
101 content::WebContents* web_contents); 103 content::WebContents* web_contents);
102 104
103 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_ 105 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_MODEL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698