Moves Create() off of View and onto ViewManager
This makes more sense given the ViewManager is used to create the view. R=ben@chromium.org Review URL: https://codereview.chromium.org/818583002
This commit is contained in:
parent
23cd16cb59
commit
ac55b1ae9c
@ -52,7 +52,7 @@ void SkyDebugger::OnEmbed(
|
||||
|
||||
window_manager_app_->SetViewportSize(gfx::Size(320, 640));
|
||||
|
||||
content_ = mojo::View::Create(root->view_manager());
|
||||
content_ = root->view_manager()->CreateView();
|
||||
content_->SetBounds(root_->bounds());
|
||||
root_->AddChild(content_);
|
||||
content_->SetVisible(true);
|
||||
|
@ -90,7 +90,7 @@ class SkyTester : public mojo::ApplicationDelegate,
|
||||
root_ = root;
|
||||
root_->AddObserver(this);
|
||||
|
||||
content_ = mojo::View::Create(root->view_manager());
|
||||
content_ = root->view_manager()->CreateView();
|
||||
content_->SetBounds(root_->bounds());
|
||||
root_->AddChild(content_);
|
||||
content_->SetVisible(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user