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

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

Issue 733463003: Show user credentials chooser bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge with trunk Created 6 years 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698