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

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

Issue 2915763003: [Password Manager] Show omnibox icon and anchored prompt once user start typing password (Closed)
Patch Set: Rebase Created 3 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MANAGE_PASSWORDS_UI_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public: 43 public:
44 ~ManagePasswordsUIController() override; 44 ~ManagePasswordsUIController() override;
45 45
46 // PasswordsClientUIDelegate: 46 // PasswordsClientUIDelegate:
47 void OnPasswordSubmitted( 47 void OnPasswordSubmitted(
48 std::unique_ptr<password_manager::PasswordFormManager> form_manager) 48 std::unique_ptr<password_manager::PasswordFormManager> form_manager)
49 override; 49 override;
50 void OnUpdatePasswordSubmitted( 50 void OnUpdatePasswordSubmitted(
51 std::unique_ptr<password_manager::PasswordFormManager> form_manager) 51 std::unique_ptr<password_manager::PasswordFormManager> form_manager)
52 override; 52 override;
53 void OnShowManualFallbackForSaving(
54 std::unique_ptr<password_manager::PasswordFormManager> form_manager,
55 bool has_generated_password,
56 bool is_update) override;
57 void OnHideManualFallbackForSaving() override;
53 bool OnChooseCredentials( 58 bool OnChooseCredentials(
54 std::vector<std::unique_ptr<autofill::PasswordForm>> local_credentials, 59 std::vector<std::unique_ptr<autofill::PasswordForm>> local_credentials,
55 const GURL& origin, 60 const GURL& origin,
56 const ManagePasswordsState::CredentialsCallback& callback) override; 61 const ManagePasswordsState::CredentialsCallback& callback) override;
57 void OnAutoSignin( 62 void OnAutoSignin(
58 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, 63 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms,
59 const GURL& origin) override; 64 const GURL& origin) override;
60 void OnPromptEnableAutoSignin() override; 65 void OnPromptEnableAutoSignin() override;
61 void OnAutomaticPasswordSave( 66 void OnAutomaticPasswordSave(
62 std::unique_ptr<password_manager::PasswordFormManager> form_manager) 67 std::unique_ptr<password_manager::PasswordFormManager> form_manager)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // Thus, OnBubbleHidden() can be called after the new one is shown. By that 193 // Thus, OnBubbleHidden() can be called after the new one is shown. By that
189 // time the internal state of ManagePasswordsUIController has nothing to do 194 // time the internal state of ManagePasswordsUIController has nothing to do
190 // with the old bubble. 195 // with the old bubble.
191 // Invalidating all the weak pointers will detach the current bubble. 196 // Invalidating all the weak pointers will detach the current bubble.
192 base::WeakPtrFactory<ManagePasswordsUIController> weak_ptr_factory_; 197 base::WeakPtrFactory<ManagePasswordsUIController> weak_ptr_factory_;
193 198
194 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController); 199 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIController);
195 }; 200 };
196 201
197 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_ 202 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698