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

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: moar 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
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..c3bd3f301a533984171c120a979d860cbc9c8780 100644
--- a/examples/window_manager/window_manager.cc
+++ b/examples/window_manager/window_manager.cc
@@ -355,6 +355,7 @@ class WindowManager
view_manager_ = view_manager;
View* view = View::Create(view_manager_);
+ view->SetVisible(true);
root->AddChild(view);
Rect rect;
rect.width = root->bounds().width;
@@ -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();

Powered by Google App Engine
This is Rietveld 408576698