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

Unified Diff: chrome/browser/ui/views/passwords/credentials_item_view.h

Issue 901493003: Extract some account chooser views things for cross-platform use. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_item_view.h
diff --git a/chrome/browser/ui/views/passwords/credentials_item_view.h b/chrome/browser/ui/views/passwords/credentials_item_view.h
index 01055701d17ce7c3eff925746ad5877aee9f914c..7b1818a52fa16f6dccc2c6c34e506958d0d55d1b 100644
--- a/chrome/browser/ui/views/passwords/credentials_item_view.h
+++ b/chrome/browser/ui/views/passwords/credentials_item_view.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "chrome/browser/ui/passwords/account_avatar_fetcher.h"
#include "components/autofill/core/common/password_form.h"
#include "components/password_manager/content/common/credential_manager_types.h"
#include "ui/views/controls/button/label_button.h"
@@ -26,7 +27,8 @@ class Label;
// CredentialsItemView represents a credential view in the account chooser
// bubble.
-class CredentialsItemView : public views::LabelButton {
+class CredentialsItemView : public AccountAvatarFetcherDelegate,
+ public views::LabelButton {
public:
CredentialsItemView(views::ButtonListener* button_listener,
const autofill::PasswordForm& form,
@@ -39,16 +41,15 @@ class CredentialsItemView : public views::LabelButton {
return credential_type_;
}
- private:
- class AvatarFetcher;
+ // AccountAvatarFetcherDelegate:
+ void UpdateAvatar(const gfx::ImageSkia& image) override;
+ private:
// views::LabelButton:
gfx::Size GetPreferredSize() const override;
int GetHeightForWidth(int w) const override;
void Layout() override;
- void UpdateAvatar(const gfx::ImageSkia& image);
-
autofill::PasswordForm form_;
password_manager::CredentialType credential_type_;
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_view_utils.cc ('k') | chrome/browser/ui/views/passwords/credentials_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698