| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CREDENTIALS_ITEM_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_ITEM_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_ITEM_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_ITEM_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/autofill/core/common/password_form.h" |
| 9 #include "ui/views/controls/button/label_button.h" | 10 #include "ui/views/controls/button/label_button.h" |
| 10 | 11 |
| 11 // CredentialsItemView represents a credential view in the account chooser | 12 // CredentialsItemView represents a credential view in the account chooser |
| 12 // bubble. | 13 // bubble. |
| 13 class CredentialsItemView : public views::LabelButton { | 14 class CredentialsItemView : public views::LabelButton { |
| 14 public: | 15 public: |
| 15 CredentialsItemView(views::ButtonListener* button_listener, | 16 CredentialsItemView(views::ButtonListener* button_listener, |
| 16 const base::string16& text); | 17 const autofill::PasswordForm& form); |
| 17 ~CredentialsItemView() override; | 18 ~CredentialsItemView() override; |
| 18 | 19 |
| 20 const autofill::PasswordForm& form() const { return form_; } |
| 21 |
| 19 private: | 22 private: |
| 23 autofill::PasswordForm form_; |
| 24 |
| 20 DISALLOW_COPY_AND_ASSIGN(CredentialsItemView); | 25 DISALLOW_COPY_AND_ASSIGN(CredentialsItemView); |
| 21 }; | 26 }; |
| 22 | 27 |
| 23 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_ITEM_VIEW_H_ | 28 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_ITEM_VIEW_H_ |
| OLD | NEW |