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

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

Issue 1151373006: Update Confirmation UI for saved password change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit test compilation error, updated comments Created 5 years, 5 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
vabr (Chromium) 2015/07/24 08:24:29 2013 -> 2015
dvadym 2015/07/24 16:42:39 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_
5 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_
6
7 #include <vector>
8
9 #include "components/autofill/core/common/password_form.h"
10 #include "ui/views/controls/combobox/combobox_listener.h"
11 #include "ui/views/view.h"
12
13 namespace views {
14 class Combobox;
15 class Label;
16 }
17
18 class ManagePasswordsBubbleModel;
19
20 // A view where the user can select a credential.
21 class CredentialsSelectionView : public views::View,
22 public views::ComboboxListener {
23 public:
24 CredentialsSelectionView(
25 ManagePasswordsBubbleModel* manage_passwords_bubble_model,
26 const std::vector<const autofill::PasswordForm*>& password_forms);
27
28 const autofill::PasswordForm* GetSelectedCredentials();
29
30 // Handles the event when the user changes an index of a combobox.
31 void OnPerformAction(views::Combobox* source) override;
32
33 private:
34 const std::vector<const autofill::PasswordForm*>& password_forms_;
35 views::Combobox* combobox_;
36 views::Label* label_;
37
38 DISALLOW_COPY_AND_ASSIGN(CredentialsSelectionView);
39 };
40
41 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698