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

Unified Diff: mojo/examples/wm_flow/app/app.cc

Issue 658923003: Remove dependency on ui from view_manager. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase Created 6 years, 2 months 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
Index: mojo/examples/wm_flow/app/app.cc
diff --git a/mojo/examples/wm_flow/app/app.cc b/mojo/examples/wm_flow/app/app.cc
index d9a8da27b838b3b76ecc1a011d7df03d3676f271..f9e996cd31a324c406440d88bdd8762244892173 100644
--- a/mojo/examples/wm_flow/app/app.cc
+++ b/mojo/examples/wm_flow/app/app.cc
@@ -93,8 +93,10 @@ class WMFlowApp : public mojo::ApplicationDelegate,
mojo::View* embed = mojo::View::Create(view_manager);
root->AddChild(embed);
- gfx::Rect bounds = gfx::Rect(root->bounds().size());
- bounds.Inset(25, 25);
+ mojo::Rect bounds;
+ bounds.x = bounds.y = 25;
+ bounds.width = root->bounds().width - 50;
+ bounds.height = root->bounds().height - 50;
embed->SetBounds(bounds);
scoped_ptr<mojo::ServiceProviderImpl> registry(

Powered by Google App Engine
This is Rietveld 408576698