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

Unified Diff: views/controls/native/native_view_host_win.cc

Issue 113991: Make Combobox portable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « views/controls/combobox/native_combobox_wrapper.h ('k') | views/controls/native_control_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/native/native_view_host_win.cc
===================================================================
--- views/controls/native/native_view_host_win.cc (revision 17310)
+++ views/controls/native/native_view_host_win.cc (working copy)
@@ -51,6 +51,8 @@
}
void NativeViewHostWin::AddedToWidget() {
+ if (!IsWindow(host_->native_view()))
+ return;
HWND parent_hwnd = GetParent(host_->native_view());
HWND widget_hwnd = host_->GetWidget()->GetNativeView();
if (parent_hwnd != widget_hwnd)
@@ -63,6 +65,8 @@
}
void NativeViewHostWin::RemovedFromWidget() {
+ if (!IsWindow(host_->native_view()))
+ return;
ShowWindow(host_->native_view(), SW_HIDE);
SetParent(host_->native_view(), NULL);
}
« no previous file with comments | « views/controls/combobox/native_combobox_wrapper.h ('k') | views/controls/native_control_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698