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

Unified Diff: chrome/browser/app_icon_win.cc

Issue 772533002: Fix icon on Windows XP taskbar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add some doc + git cl format Created 6 years 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
« no previous file with comments | « chrome/browser/app_icon_win.h ('k') | chrome/browser/ui/views/chrome_views_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_icon_win.cc
diff --git a/chrome/browser/app_icon_win.cc b/chrome/browser/app_icon_win.cc
index e893b4e70ba2d4a922291cf3b3bad78d211cbf47..d8b3628c4920a649e92d38c2b1b13b83cdcdde0b 100644
--- a/chrome/browser/app_icon_win.cc
+++ b/chrome/browser/app_icon_win.cc
@@ -33,6 +33,14 @@ HICON GetAppIcon() {
MAKEINTRESOURCE(icon_id));
}
+HICON GetSmallAppIcon() {
+ const int icon_id = GetAppIconResourceId();
+ return static_cast<HICON>(LoadImage(
+ GetModuleHandle(chrome::kBrowserResourcesDll), MAKEINTRESOURCE(icon_id),
+ IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON),
+ LR_DEFAULTCOLOR));
+}
+
scoped_ptr<SkBitmap> GetAppIconForSize(int size) {
const int icon_id = GetAppIconResourceId();
return IconUtil::CreateSkBitmapFromIconResource(
« no previous file with comments | « chrome/browser/app_icon_win.h ('k') | chrome/browser/ui/views/chrome_views_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698