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

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

Issue 952023002: Credential Manager API: pop up the new "Manage accounts" bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge with the trunk Created 5 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BUBBLE_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_
7 7
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h" 9 #include "chrome/browser/ui/passwords/manage_passwords_bubble.h"
10 #include "components/autofill/core/common/password_form.h" 10 #include "components/autofill/core/common/password_form.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // Called by the view code when the "Done" button is clicked by the user. 69 // Called by the view code when the "Done" button is clicked by the user.
70 void OnDoneClicked(); 70 void OnDoneClicked();
71 71
72 // Called by the view code when the "OK" button is clicked by the user. 72 // Called by the view code when the "OK" button is clicked by the user.
73 void OnOKClicked(); 73 void OnOKClicked();
74 74
75 // Called by the view code when the manage link is clicked by the user. 75 // Called by the view code when the manage link is clicked by the user.
76 void OnManageLinkClicked(); 76 void OnManageLinkClicked();
77 77
78 // Called by the view code when the auto-signin toast is about to close. 78 // Called by the view code when the auto-signin toast is about to close due to
79 // timeout.
79 void OnAutoSignInToastTimeout(); 80 void OnAutoSignInToastTimeout();
80 81
82 // Called by the view code when user clicks on the auto sign-in toast in order
83 // to manage credentials.
84 void OnAutoSignInClicked();
85
81 // Called by the view code to delete or add a password form to the 86 // Called by the view code to delete or add a password form to the
82 // PasswordStore. 87 // PasswordStore.
83 void OnPasswordAction(const autofill::PasswordForm& password_form, 88 void OnPasswordAction(const autofill::PasswordForm& password_form,
84 PasswordAction action); 89 PasswordAction action);
85 90
86 // Called by the view code to notify about chosen credential. 91 // Called by the view code to notify about chosen credential.
87 void OnChooseCredentials(const autofill::PasswordForm& password_form, 92 void OnChooseCredentials(const autofill::PasswordForm& password_form,
88 password_manager::CredentialType credential_type_); 93 password_manager::CredentialType credential_type_);
89 94
90 GURL origin() const { return origin_; } 95 GURL origin() const { return origin_; }
(...skipping 18 matching lines...) Expand all
109 bool never_save_passwords() const { return never_save_passwords_; } 114 bool never_save_passwords() const { return never_save_passwords_; }
110 const base::string16& save_confirmation_text() const { 115 const base::string16& save_confirmation_text() const {
111 return save_confirmation_text_; 116 return save_confirmation_text_;
112 } 117 }
113 const gfx::Range& save_confirmation_link_range() const { 118 const gfx::Range& save_confirmation_link_range() const {
114 return save_confirmation_link_range_; 119 return save_confirmation_link_range_;
115 } 120 }
116 121
117 Profile* GetProfile() const; 122 Profile* GetProfile() const;
118 123
124 // Returns true iff the new YOLO UI should be presented to user for managing
Mike West 2015/03/18 08:33:51 Nit: s/YOLO//.
vasilii 2015/03/18 09:25:08 Done.
125 // and saving the passwords.
126 bool IsNewUIActive() const;
127
119 #if defined(UNIT_TEST) 128 #if defined(UNIT_TEST)
120 // Gets and sets the reason the bubble was displayed. 129 // Gets and sets the reason the bubble was displayed.
121 password_manager::metrics_util::UIDisplayDisposition display_disposition() 130 password_manager::metrics_util::UIDisplayDisposition display_disposition()
122 const { 131 const {
123 return display_disposition_; 132 return display_disposition_;
124 } 133 }
125 134
126 // Gets the reason the bubble was dismissed. 135 // Gets the reason the bubble was dismissed.
127 password_manager::metrics_util::UIDismissalReason dismissal_reason() const { 136 password_manager::metrics_util::UIDismissalReason dismissal_reason() const {
128 return dismissal_reason_; 137 return dismissal_reason_;
(...skipping 21 matching lines...) Expand all
150 // If true upon destruction, the user has confirmed that she never wants to 159 // If true upon destruction, the user has confirmed that she never wants to
151 // save passwords for a particular site. 160 // save passwords for a particular site.
152 bool never_save_passwords_; 161 bool never_save_passwords_;
153 password_manager::metrics_util::UIDisplayDisposition display_disposition_; 162 password_manager::metrics_util::UIDisplayDisposition display_disposition_;
154 password_manager::metrics_util::UIDismissalReason dismissal_reason_; 163 password_manager::metrics_util::UIDismissalReason dismissal_reason_;
155 164
156 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); 165 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel);
157 }; 166 };
158 167
159 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ 168 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698