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

Unified Diff: examples/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/recipes/window_manager/window_manager.cc ('k') | examples/wm_flow/app/app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/window_manager/window_manager.cc
diff --git a/examples/window_manager/window_manager.cc b/examples/window_manager/window_manager.cc
index f81c532872fde060a5b75f629dacca32c0719a1e..c298aa92af0e33fed6c5c74d83903745ceab80f8 100644
--- a/examples/window_manager/window_manager.cc
+++ b/examples/window_manager/window_manager.cc
@@ -99,7 +99,7 @@ class KeyboardManager : public KeyboardClient,
View* parent,
const Rect& bounds) {
view_manager_ = view_manager;
- view_ = View::Create(view_manager);
+ view_ = view_manager->CreateView();
view_->SetBounds(bounds);
parent->AddChild(view_);
view_->Embed("mojo:keyboard");
@@ -352,7 +352,7 @@ class WindowManager : public ApplicationDelegate,
DCHECK(!view_manager_);
view_manager_ = root->view_manager();
- View* view = View::Create(view_manager_);
+ View* view = view_manager_->CreateView();
root->AddChild(view);
Rect rect;
rect.width = root->bounds().width;
@@ -462,7 +462,7 @@ class WindowManager : public ApplicationDelegate,
Window* CreateWindow(const Rect& bounds) {
View* content = view_manager_->GetViewById(content_view_id_);
- View* view = View::Create(view_manager_);
+ View* view = view_manager_->CreateView();
content->AddChild(view);
view->SetBounds(bounds);
view->SetVisible(true);
@@ -476,7 +476,7 @@ class WindowManager : public ApplicationDelegate,
}
Id CreateControlPanel(View* root) {
- View* view = View::Create(view_manager_);
+ View* view = view_manager_->CreateView();
root->AddChild(view);
Rect bounds;
« no previous file with comments | « examples/recipes/window_manager/window_manager.cc ('k') | examples/wm_flow/app/app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698