| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_APP_ICON_WIN_H_ | 5 #ifndef CHROME_BROWSER_APP_ICON_WIN_H_ |
| 6 #define CHROME_BROWSER_APP_ICON_WIN_H_ | 6 #define CHROME_BROWSER_APP_ICON_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 | 11 |
| 12 namespace gfx { |
| 13 class ImageFamily; |
| 14 class Size; |
| 15 } |
| 16 |
| 12 class SkBitmap; | 17 class SkBitmap; |
| 13 | 18 |
| 14 HICON GetAppIcon(); | 19 HICON GetAppIcon(); |
| 15 HICON GetSmallAppIcon(); | 20 HICON GetSmallAppIcon(); |
| 16 | 21 |
| 17 // Retrieve the application icon for the given size. Note that if you specify a | 22 gfx::Size GetAppIconSize(); |
| 18 // size other than what is contained in chrome.dll (16x16, 32x32, 48x48), this | 23 gfx::Size GetSmallAppIconSize(); |
| 19 // might return a poorly resized icon. | 24 |
| 20 scoped_ptr<SkBitmap> GetAppIconForSize(int size); | 25 // Retrieve the application icon for the current process. This returns all of |
| 26 // the different sizes of the icon as an ImageFamily. |
| 27 scoped_ptr<gfx::ImageFamily> GetAppIconImageFamily(); |
| 21 | 28 |
| 22 #endif // CHROME_BROWSER_APP_ICON_WIN_H_ | 29 #endif // CHROME_BROWSER_APP_ICON_WIN_H_ |
| OLD | NEW |