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

Side by Side Diff: ui/gfx/win/window_impl.h

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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | ui/gfx/win/window_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_GFX_WIN_WINDOW_IMPL_H_ 5 #ifndef UI_GFX_WIN_WINDOW_IMPL_H_
6 #define UI_GFX_WIN_WINDOW_IMPL_H_ 6 #define UI_GFX_WIN_WINDOW_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Causes all generated windows classes to be unregistered at exit. 44 // Causes all generated windows classes to be unregistered at exit.
45 // This can cause result in errors for tests that don't destroy all instances 45 // This can cause result in errors for tests that don't destroy all instances
46 // of windows, but is necessary if the tests unload the classes WndProc. 46 // of windows, but is necessary if the tests unload the classes WndProc.
47 static void UnregisterClassesAtExit(); 47 static void UnregisterClassesAtExit();
48 48
49 // Initializes the Window with a parent and an initial desired size. 49 // Initializes the Window with a parent and an initial desired size.
50 void Init(HWND parent, const gfx::Rect& bounds); 50 void Init(HWND parent, const gfx::Rect& bounds);
51 51
52 // Returns the default window icon to use for windows of this type. 52 // Returns the default window icon to use for windows of this type.
53 virtual HICON GetDefaultWindowIcon() const; 53 virtual HICON GetDefaultWindowIcon() const;
54 virtual HICON GetSmallWindowIcon() const;
54 55
55 // Returns the HWND associated with this Window. 56 // Returns the HWND associated with this Window.
56 HWND hwnd() const { return hwnd_; } 57 HWND hwnd() const { return hwnd_; }
57 58
58 // Sets the window styles. This is ONLY used when the window is created. 59 // Sets the window styles. This is ONLY used when the window is created.
59 // In other words, if you invoke this after invoking Init, nothing happens. 60 // In other words, if you invoke this after invoking Init, nothing happens.
60 void set_window_style(DWORD style) { window_style_ = style; } 61 void set_window_style(DWORD style) { window_style_ = style; }
61 DWORD window_style() const { return window_style_; } 62 DWORD window_style() const { return window_style_; }
62 63
63 // Sets the extended window styles. See comment about |set_window_style|. 64 // Sets the extended window styles. See comment about |set_window_style|.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 bool got_create_; 116 bool got_create_;
116 bool got_valid_hwnd_; 117 bool got_valid_hwnd_;
117 bool* destroyed_; 118 bool* destroyed_;
118 119
119 DISALLOW_COPY_AND_ASSIGN(WindowImpl); 120 DISALLOW_COPY_AND_ASSIGN(WindowImpl);
120 }; 121 };
121 122
122 } // namespace gfx 123 } // namespace gfx
123 124
124 #endif // UI_GFX_WIN_WINDOW_IMPL_H_ 125 #endif // UI_GFX_WIN_WINDOW_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | ui/gfx/win/window_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698