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

Unified Diff: ui/views/controls/native/native_view_host_aura.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
Index: ui/views/controls/native/native_view_host_aura.cc
diff --git a/ui/views/controls/native/native_view_host_aura.cc b/ui/views/controls/native/native_view_host_aura.cc
index 24fa29c98710b53a57eed723008b8bd3e4f8e0d9..c27dfb423fc97a92f41a014e15294af68be868dd 100644
--- a/ui/views/controls/native/native_view_host_aura.cc
+++ b/ui/views/controls/native/native_view_host_aura.cc
@@ -45,7 +45,7 @@ void NativeViewHostAura::AddedToWidget() {
aura::Window* widget_window = host_->GetWidget()->GetNativeView();
if (host_->native_view()->parent() != widget_window)
widget_window->AddChild(host_->native_view());
- if (host_->IsVisibleInRootView())
+ if (host_->IsDrawn())
host_->native_view()->Show();
else
host_->native_view()->Hide();
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_installed_bubble.cc ('k') | ui/views/controls/native/native_view_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698