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

Unified Diff: examples/window_manager/window_manager.cc

Issue 745743002: Makes views be initially hidden (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: feedback Created 6 years, 1 month 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 | « examples/nesting_app/nesting_app.cc ('k') | examples/wm_flow/app/app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/window_manager/window_manager.cc
diff --git a/examples/window_manager/window_manager.cc b/examples/window_manager/window_manager.cc
index 870efee568766793aeb241e79e3db6a54b1a2b49..934688ee0dbd41990ec277df7d6bf775344233b0 100644
--- a/examples/window_manager/window_manager.cc
+++ b/examples/window_manager/window_manager.cc
@@ -360,6 +360,7 @@ class WindowManager
rect.width = root->bounds().width;
rect.height = root->bounds().height;
view->SetBounds(rect);
+ view->SetVisible(true);
content_view_id_ = view->id();
Id launcher_ui_id = CreateLauncherUI();
@@ -467,6 +468,7 @@ class WindowManager
View* view = View::Create(view_manager_);
content->AddChild(view);
view->SetBounds(bounds);
+ view->SetVisible(true);
view->SetFocus();
return new Window(this, view);
}
@@ -487,6 +489,7 @@ class WindowManager
bounds.height =
root->bounds().height - kBorderInset * 3 - kTextfieldHeight;
view->SetBounds(bounds);
+ view->SetVisible(true);
debug_panel_ = new DebugPanel(this, shell_, view);
return view->id();
« no previous file with comments | « examples/nesting_app/nesting_app.cc ('k') | examples/wm_flow/app/app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698