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

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

Issue 8915007: views: Rename IsVisibleInRootView() to IsDrawn(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/views/controls/native/native_view_host_gtk.cc ('k') | ui/views/controls/native_control_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/native/native_view_host_win.cc
diff --git a/ui/views/controls/native/native_view_host_win.cc b/ui/views/controls/native/native_view_host_win.cc
index b59bf3603569abf83e586b30107d5da3fbe6d800..70aca91dd44f2dcd44981acec98bf72a529dfe3a 100644
--- a/ui/views/controls/native/native_view_host_win.cc
+++ b/ui/views/controls/native/native_view_host_win.cc
@@ -55,7 +55,7 @@ void NativeViewHostWin::AddedToWidget() {
HWND widget_hwnd = host_->GetWidget()->GetNativeView();
if (parent_hwnd != widget_hwnd)
SetParent(host_->native_view(), widget_hwnd);
- if (host_->IsVisibleInRootView())
+ if (host_->IsDrawn())
ShowWindow(host_->native_view(), SW_SHOW);
else
ShowWindow(host_->native_view(), SW_HIDE);
« no previous file with comments | « ui/views/controls/native/native_view_host_gtk.cc ('k') | ui/views/controls/native_control_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698