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

Side by Side Diff: chrome/browser/ui/views/passwords/manage_password_items_view.h

Issue 1151373006: Update Confirmation UI for saved password change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up Created 5 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 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_VIEWS_PASSWORDS_MANAGE_PASSWORD_ITEMS_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORD_ITEMS_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORD_ITEMS_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORD_ITEMS_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "components/autofill/core/common/password_form.h" 10 #include "components/autofill/core/common/password_form.h"
11 #include "ui/views/view.h" 11 #include "ui/views/view.h"
12 12
13 class ManagePasswordsBubbleModel; 13 class ManagePasswordsBubbleModel;
14 class ManagePasswordsBubbleView;
vasilii 2015/06/03 18:32:02 Remove
dvadym 2015/06/19 15:27:29 Thanks, done.
14 15
15 // A custom view of individual credentials. The view is represented as a table 16 // A custom view of individual credentials. The view is represented as a table
16 // where each row can be in three distinct states: 17 // where each row can be in three distinct states:
17 // 18 //
18 // * Present credentials to the user which she may choose to save. 19 // * Present credentials to the user which she may choose to save.
19 // * Present already-saved credentials to the user for management. 20 // * Present already-saved credentials to the user for management.
20 // * Offer the user the ability to undo a deletion action. 21 // * Offer the user the ability to undo a deletion action.
21 class ManagePasswordItemsView : public views::View { 22 class ManagePasswordItemsView : public views::View {
22 public: 23 public:
23 ManagePasswordItemsView( 24 ManagePasswordItemsView(
24 ManagePasswordsBubbleModel* manage_passwords_bubble_model, 25 ManagePasswordsBubbleModel* manage_passwords_bubble_model,
25 const std::vector<const autofill::PasswordForm*>& password_forms); 26 const std::vector<const autofill::PasswordForm*>& password_forms);
26 27
27 private: 28 private:
28 class PasswordFormRow; 29 class PasswordFormRow;
29 30
30 ~ManagePasswordItemsView() override; 31 ~ManagePasswordItemsView() override;
31 32
32 void AddRows(); 33 void AddRows();
33 void NotifyPasswordFormStatusChanged( 34 void NotifyPasswordFormStatusChanged(
34 const autofill::PasswordForm& password_form, bool deleted); 35 const autofill::PasswordForm& password_form, bool deleted);
35 36
37 void NotifyAccountForUpdateWasSelected(
38 const autofill::PasswordForm& password_form);
39
36 // Changes the views according to the state of |password_forms_rows_|. 40 // Changes the views according to the state of |password_forms_rows_|.
37 void Refresh(); 41 void Refresh();
38 42
39 std::vector<PasswordFormRow> password_forms_rows_; 43 std::vector<PasswordFormRow> password_forms_rows_;
40 ManagePasswordsBubbleModel* model_; 44 ManagePasswordsBubbleModel* model_;
45 ManagePasswordsBubbleView* bubble_view_;
vabr (Chromium) 2015/06/03 16:33:26 This is unused.
dvadym 2015/06/19 15:27:29 Done.
41 46
42 DISALLOW_COPY_AND_ASSIGN(ManagePasswordItemsView); 47 DISALLOW_COPY_AND_ASSIGN(ManagePasswordItemsView);
43 }; 48 };
44 49
45 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORD_ITEMS_VIEW_H_ 50 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORD_ITEMS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698