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

Unified Diff: examples/wm_flow/wm/wm.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/wm_flow/wm/frame_controller.cc ('k') | mojo/services/view_manager/public/cpp/lib/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/wm_flow/wm/wm.cc
diff --git a/examples/wm_flow/wm/wm.cc b/examples/wm_flow/wm/wm.cc
index 60f890b4ef9a8687a1ab5772c68608d8fb69529a..31f753ca7bbaf7974e4984db497953f80b90505b 100644
--- a/examples/wm_flow/wm/wm.cc
+++ b/examples/wm_flow/wm/wm.cc
@@ -57,7 +57,7 @@ class SimpleWM : public mojo::ApplicationDelegate,
scoped_ptr<mojo::ServiceProvider> remote_service_provider) override {
root_ = root;
- window_container_ = mojo::View::Create(root->view_manager());
+ window_container_ = root->view_manager()->CreateView();
window_container_->SetBounds(root_->bounds());
root_->AddChild(window_container_);
window_container_->SetVisible(true);
@@ -107,7 +107,7 @@ class SimpleWM : public mojo::ApplicationDelegate,
}
mojo::View* CreateTopLevelWindow(mojo::View** app_view) {
- mojo::View* frame_view = mojo::View::Create(root_->view_manager());
+ mojo::View* frame_view = root_->view_manager()->CreateView();
// Add the View to it's parent before showing so that animations can happen.
window_container_->AddChild(frame_view);
mojo::Rect rect;
« no previous file with comments | « examples/wm_flow/wm/frame_controller.cc ('k') | mojo/services/view_manager/public/cpp/lib/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698