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

Unified 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: Browser test fixed 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/passwords/credentials_selection_view.h
diff --git a/chrome/browser/ui/views/passwords/credentials_selection_view.h b/chrome/browser/ui/views/passwords/credentials_selection_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..37bb22e8e1e08b7202f2f2d7af7f6af33963c49b
--- /dev/null
+++ b/chrome/browser/ui/views/passwords/credentials_selection_view.h
@@ -0,0 +1,42 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+#ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_
+#define CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_
+
+#include <vector>
+
+#include "components/autofill/core/common/password_form.h"
+#include "ui/views/controls/combobox/combobox_listener.h"
+#include "ui/views/view.h"
+
+namespace views {
+class Combobox;
+class Label;
+}
+
+class ManagePasswordsBubbleModel;
+
+// A view where the user can select a credential.
+class CredentialsSelectionView : public views::View,
+ public views::ComboboxListener {
+ public:
+ CredentialsSelectionView(
+ ManagePasswordsBubbleModel* manage_passwords_bubble_model,
+ const std::vector<const autofill::PasswordForm*>& password_forms,
+ const base::string16& best_matched_username);
+
+ const autofill::PasswordForm* GetSelectedCredentials();
+
+ // Handles the event when the user changes an index of a combobox.
+ void OnPerformAction(views::Combobox* source) override;
+
+ private:
+ const std::vector<const autofill::PasswordForm*>& password_forms_;
+ views::Combobox* combobox_;
+ views::Label* label_;
+
+ DISALLOW_COPY_AND_ASSIGN(CredentialsSelectionView);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698