Chromium Code Reviews| Index: ui/gfx/win/window_impl.cc |
| diff --git a/ui/gfx/win/window_impl.cc b/ui/gfx/win/window_impl.cc |
| index 3ca3f900102feb7beb0788c1a5e0d4fbb65b1ee1..a8e10b09c01f5f6c18f9742dbbaf633269fdd009 100644 |
| --- a/ui/gfx/win/window_impl.cc |
| +++ b/ui/gfx/win/window_impl.cc |
| @@ -219,6 +219,11 @@ void WindowImpl::Init(HWND parent, const Rect& bounds) { |
| CHECK_EQ(this, GetWindowUserData(hwnd)); |
| } |
| +void WindowImpl::Destroy() { |
|
Ben Goodger (Google)
2014/01/14 21:48:03
you actually can't rely on people calling this fun
|
| + DestroyWindow(hwnd()); |
| + hwnd_ = NULL; |
|
Ben Goodger (Google)
2014/01/14 21:48:03
... and so this should be set in a handler for WM_
danakj
2014/01/14 21:58:41
Oh I see. The handler for WM_NCDESTROY appears to
|
| +} |
| + |
| HICON WindowImpl::GetDefaultWindowIcon() const { |
| return NULL; |
| } |