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

Unified Diff: examples/wm_flow/app/app.cc

Issue 818583002: Moves Create() off of View and onto ViewManager (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: merge 2 trunk Created 6 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 | « examples/window_manager/window_manager.cc ('k') | examples/wm_flow/wm/frame_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/wm_flow/app/app.cc
diff --git a/examples/wm_flow/app/app.cc b/examples/wm_flow/app/app.cc
index 39b5cb7ad55a2378401928d699bddac8a393face..7edcdc87c14568c09cf18e24e0dfad653285a928 100644
--- a/examples/wm_flow/app/app.cc
+++ b/examples/wm_flow/app/app.cc
@@ -91,7 +91,7 @@ class WMFlowApp : public mojo::ApplicationDelegate,
uploader->Init(shell_);
uploader->SetColor(kColors[embed_count_++ % arraysize(kColors)]);
- mojo::View* embed = mojo::View::Create(root->view_manager());
+ mojo::View* embed = root->view_manager()->CreateView();
root->AddChild(embed);
mojo::Rect bounds;
bounds.x = bounds.y = 25;
« no previous file with comments | « examples/window_manager/window_manager.cc ('k') | examples/wm_flow/wm/frame_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698