OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_UTIL_H_ |
| 6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_UTIL_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ui/gfx/image/image.h" |
| 10 |
| 11 namespace profiles { |
| 12 |
| 13 extern const int kAvatarIconWidth; |
| 14 extern const int kAvatarIconHeight; |
| 15 |
| 16 // Returns a version of |image| suitable for use in menus. |
| 17 gfx::Image GetAvatarIconForMenu(const gfx::Image& image, |
| 18 bool is_gaia_picture); |
| 19 |
| 20 // Returns a version of |image| suitable for use in title bars. The returned |
| 21 // image is scaled to fit |dst_width| and |dst_height|. |
| 22 gfx::Image GetAvatarIconForTitleBar(const gfx::Image& image, |
| 23 bool is_gaia_picture, |
| 24 int dst_width, |
| 25 int dst_height); |
| 26 |
| 27 } |
| 28 |
| 29 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_UTIL_H_ |
OLD | NEW |