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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_view_utils.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/passwords/manage_passwords_view_utils.h
diff --git a/chrome/browser/ui/passwords/manage_passwords_view_utils.h b/chrome/browser/ui/passwords/manage_passwords_view_utils.h
index 9f92fa9884bca4030025181dc813f7bb43a1d935..a05ebe9fd62171873342c7aa12b844373abce8d6 100644
--- a/chrome/browser/ui/passwords/manage_passwords_view_utils.h
+++ b/chrome/browser/ui/passwords/manage_passwords_view_utils.h
@@ -9,7 +9,17 @@
namespace autofill {
struct PasswordForm;
-}
+} // namespace autofill
+
+namespace gfx {
+class ImageSkia;
+} // namespace gfx
+
+// The desired width and height in pixels for an account avatar.
+extern const int kAvatarImageSize;
+
+// Crops and scales |image_skia| to the desired size for an account avatar.
+gfx::ImageSkia ScaleImageForAccountAvatar(gfx::ImageSkia image_skia);
// Returns the origin URI in a format which can be presented to a user based of
// |password_from| field values. For web URIs |languages| is using in order to
« no previous file with comments | « chrome/browser/ui/passwords/account_avatar_fetcher.cc ('k') | chrome/browser/ui/passwords/manage_passwords_view_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698