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

Unified Diff: examples/media_viewer/media_viewer.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 | « no previous file | examples/nesting_app/nesting_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/media_viewer/media_viewer.cc
diff --git a/examples/media_viewer/media_viewer.cc b/examples/media_viewer/media_viewer.cc
index 3cd63d2df56a5794f9a503413e4d2377e6700143..8e18985ed9577267315661127b02c1a3663ffad4 100644
--- a/examples/media_viewer/media_viewer.cc
+++ b/examples/media_viewer/media_viewer.cc
@@ -248,11 +248,11 @@ class MediaViewer
scoped_ptr<ServiceProvider> imported_services) override {
root_view_ = root;
- control_view_ = View::Create(root->view_manager());
+ control_view_ = root->view_manager()->CreateView();
control_view_->SetVisible(true);
root_view_->AddChild(control_view_);
- content_view_ = View::Create(root->view_manager());
+ content_view_ = root->view_manager()->CreateView();
content_view_->SetVisible(true);
root_view_->AddChild(content_view_);
« no previous file with comments | « no previous file | examples/nesting_app/nesting_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698