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..41d045768972ee09e0539f55eba255ba54142416 |
--- /dev/null |
+++ b/chrome/browser/ui/views/passwords/credentials_selection_view.h |
@@ -0,0 +1,37 @@ |
+// 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" |
vasilii
2015/08/05 15:42:55
Remove
dvadym
2015/08/05 16:40:43
Done.
|
+#include "ui/views/view.h" |
+ |
+namespace views { |
+class Combobox; |
+class Label; |
vasilii
2015/08/05 15:42:55
Remove
dvadym
2015/08/05 16:40:43
Done.
|
+} |
+ |
+class ManagePasswordsBubbleModel; |
+ |
+// A view where the user can select a credential. |
+class CredentialsSelectionView : public views::View { |
+ 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(); |
+ |
+ private: |
+ const std::vector<const autofill::PasswordForm*>& password_forms_; |
+ views::Combobox* combobox_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(CredentialsSelectionView); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_ |