Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / passwords / manage_passwords_view_utils.h
bloba05ebe9fd62171873342c7aa12b844373abce8d6
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_
8 #include <string>
10 namespace autofill {
11 struct PasswordForm;
12 } // namespace autofill
14 namespace gfx {
15 class ImageSkia;
16 } // namespace gfx
18 // The desired width and height in pixels for an account avatar.
19 extern const int kAvatarImageSize;
21 // Crops and scales |image_skia| to the desired size for an account avatar.
22 gfx::ImageSkia ScaleImageForAccountAvatar(gfx::ImageSkia image_skia);
24 // Returns the origin URI in a format which can be presented to a user based of
25 // |password_from| field values. For web URIs |languages| is using in order to
26 // determine whether a URI is 'comprehensible' to a user who understands
27 // languages listed.
28 std::string GetHumanReadableOrigin(const autofill::PasswordForm& password_form,
29 const std::string& languages);
31 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_