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

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

Issue 132473007: aura: Destroy the compositor before destroying the backing window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: destroy-window: windows Created 6 years, 11 months 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
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;
}

Powered by Google App Engine
This is Rietveld 408576698