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

Unified Diff: examples/recipes/window_manager/window_manager.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/nesting_app/nesting_app.cc ('k') | examples/window_manager/window_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/recipes/window_manager/window_manager.cc
diff --git a/examples/recipes/window_manager/window_manager.cc b/examples/recipes/window_manager/window_manager.cc
index 17733ee5d22012b70b2663dfc1aeeacc07062c9f..852079467f893f0c9ab6f92ff941646f77770764 100644
--- a/examples/recipes/window_manager/window_manager.cc
+++ b/examples/recipes/window_manager/window_manager.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include "examples/recipes/window_manager/constants.h"
+#include "mojo/services/view_manager/public/cpp/view_manager.h"
#include "mojo/services/view_manager/public/cpp/view_property.h"
using mojo::View;
@@ -41,7 +42,7 @@ WindowManager::~WindowManager() {
}
View* WindowManager::Create() {
- View* view = View::Create(root_->view_manager());
+ View* view = root_->view_manager()->CreateView();
UpdateBounds(view);
view->AddObserver(this);
views_.insert(view);
« no previous file with comments | « examples/nesting_app/nesting_app.cc ('k') | examples/window_manager/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698