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

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

Issue 2532313003: Show an info icon with a tooltip for PSL-matches in the account chooser on Views. (Closed)
Patch Set: fix include Created 4 years, 1 month 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 f11287c219b8054db8bc7d1874278fe8d859e9a7..1073c37b39a17e11cee42123bb8cd6979dea152e 100644
--- a/chrome/browser/ui/views/passwords/credentials_item_view.h
+++ b/chrome/browser/ui/views/passwords/credentials_item_view.h
@@ -9,6 +9,7 @@
#include "base/memory/weak_ptr.h"
#include "chrome/browser/ui/passwords/account_avatar_fetcher.h"
#include "ui/views/controls/button/label_button.h"
+#include "ui/views/controls/button/vector_icon_button_delegate.h"
namespace autofill {
struct PasswordForm;
@@ -25,11 +26,13 @@ class URLRequestContextGetter;
namespace views {
class ImageView;
class Label;
+class VectorIconButton;
}
// CredentialsItemView represents a credential view in the account chooser
// bubble.
class CredentialsItemView : public AccountAvatarFetcherDelegate,
+ public views::VectorIconButtonDelegate,
public views::LabelButton {
public:
CredentialsItemView(views::ButtonListener* button_listener,
@@ -57,11 +60,16 @@ class CredentialsItemView : public AccountAvatarFetcherDelegate,
void Layout() override;
void OnPaint(gfx::Canvas* canvas) override;
+ // VectorIconButtonDelegate:
+ void ButtonPressed(views::Button* sender, const ui::Event& event) override;
+ SkColor GetVectorIconBaseColor() const override;
+
const autofill::PasswordForm* form_;
views::ImageView* image_view_;
views::Label* upper_label_;
views::Label* lower_label_;
+ views::VectorIconButton* info_button_;
SkColor hover_color_;

Powered by Google App Engine
This is Rietveld 408576698