Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / profiles / profile_info_util.h
blobce1b78e4eed1d5709fdfbc5ba6cb0a9cc940a7df
1 // Copyright (c) 2011 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_PROFILES_PROFILE_INFO_UTIL_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_UTIL_H_
8 #include "ui/gfx/image/image.h"
10 namespace profiles {
12 extern const int kAvatarIconWidth;
13 extern const int kAvatarIconHeight;
14 extern const int kAvatarIconPadding;
16 // Returns a version of |image| of a specific size and with a grey border.
17 // Note that no checks are done on the width/height so make sure they're
18 // reasonable values; in the range of 16-256 is probably best.
19 gfx::Image GetSizedAvatarIconWithBorder(const gfx::Image& image,
20 bool is_rectangle,
21 int width, int height);
23 // Returns a version of |image| suitable for use in menus.
24 gfx::Image GetAvatarIconForMenu(const gfx::Image& image,
25 bool is_rectangle);
27 // Returns a version of |image| suitable for use in WebUI.
28 gfx::Image GetAvatarIconForWebUI(const gfx::Image& image,
29 bool is_rectangle);
31 // Returns a version of |image| suitable for use in title bars. The returned
32 // image is scaled to fit |dst_width| and |dst_height|.
33 gfx::Image GetAvatarIconForTitleBar(const gfx::Image& image,
34 bool is_rectangle,
35 int dst_width,
36 int dst_height);
38 } // namespace profiles
40 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_UTIL_H_