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

Unified Diff: ui/gfx/win/window_impl.cc

Issue 780913002: Revert of Fix icon on Windows XP taskbar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « ui/gfx/win/window_impl.h ('k') | ui/views/test/test_views_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/win/window_impl.cc
diff --git a/ui/gfx/win/window_impl.cc b/ui/gfx/win/window_impl.cc
index 5b1159e3aa2e2e7ce8d8904c6649e62ab840ae9d..b0c4fa7ad34349c7e10bb7a5663d13287ee65cec 100644
--- a/ui/gfx/win/window_impl.cc
+++ b/ui/gfx/win/window_impl.cc
@@ -33,12 +33,10 @@
struct ClassInfo {
UINT style;
HICON icon;
- HICON small_icon;
-
- ClassInfo(int style, HICON icon, HICON small_icon)
+
+ ClassInfo(int style, HICON icon)
: style(style),
- icon(icon),
- small_icon(small_icon) {}
+ icon(icon) {}
// Compares two ClassInfos. Returns true if all members match.
bool Equals(const ClassInfo& other) const {
@@ -137,7 +135,7 @@
reinterpret_cast<HBRUSH>(GetStockObject(BLACK_BRUSH)),
NULL,
class_info.icon,
- class_info.small_icon,
+ class_info.icon,
&window_class);
HMODULE instance = window_class.hInstance;
ATOM atom = RegisterClassEx(&window_class);
@@ -261,10 +259,6 @@
return NULL;
}
-HICON WindowImpl::GetSmallWindowIcon() const {
- return NULL;
-}
-
LRESULT WindowImpl::OnWndProc(UINT message, WPARAM w_param, LPARAM l_param) {
LRESULT result = 0;
@@ -311,8 +305,7 @@
ATOM WindowImpl::GetWindowClassAtom() {
HICON icon = GetDefaultWindowIcon();
- HICON small_icon = GetSmallWindowIcon();
- ClassInfo class_info(initial_class_style(), icon, small_icon);
+ ClassInfo class_info(initial_class_style(), icon);
return ClassRegistrar::GetInstance()->RetrieveClassAtom(class_info);
}
« no previous file with comments | « ui/gfx/win/window_impl.h ('k') | ui/views/test/test_views_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698