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

Unified Diff: ui/views/mus/desktop_window_tree_host_mus.cc

Issue 2575243002: Changes DesktopNativeWidgetAura to not call InitHost or window->Show() (Closed)
Patch Set: Created 4 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/mus/BUILD.gn ('k') | ui/views/mus/desktop_window_tree_host_mus_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/desktop_window_tree_host_mus.cc
diff --git a/ui/views/mus/desktop_window_tree_host_mus.cc b/ui/views/mus/desktop_window_tree_host_mus.cc
index 65c742653c88793dfba774be76c273bb0c7956ac..f502133ce450801916076149d12cece0a9d99327 100644
--- a/ui/views/mus/desktop_window_tree_host_mus.cc
+++ b/ui/views/mus/desktop_window_tree_host_mus.cc
@@ -252,6 +252,7 @@ void DesktopWindowTreeHostMus::Init(aura::Window* content_window,
cursor_manager_ = base::MakeUnique<wm::CursorManager>(
base::MakeUnique<NativeCursorManagerMus>(window()));
aura::client::SetCursorClient(window(), cursor_manager_.get());
+ InitHost();
}
void DesktopWindowTreeHostMus::OnNativeWidgetCreated(
@@ -657,6 +658,7 @@ void DesktopWindowTreeHostMus::ShowImpl() {
void DesktopWindowTreeHostMus::HideImpl() {
native_widget_delegate_->OnNativeWidgetVisibilityChanging(false);
WindowTreeHostMus::HideImpl();
+ window()->Hide();
native_widget_delegate_->OnNativeWidgetVisibilityChanged(false);
}
« no previous file with comments | « ui/views/mus/BUILD.gn ('k') | ui/views/mus/desktop_window_tree_host_mus_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698