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

Unified Diff: mojo/examples/nesting_app/nesting_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/nesting_app/nesting_app.cc
diff --git a/mojo/examples/nesting_app/nesting_app.cc b/mojo/examples/nesting_app/nesting_app.cc
index 4473d6f7c9367dfc187cad427426743bf7ea9423..7d281e4f9aaea9019c8e976f637c7ef231c73954 100644
--- a/mojo/examples/nesting_app/nesting_app.cc
+++ b/mojo/examples/nesting_app/nesting_app.cc
@@ -69,7 +69,10 @@ class NestingApp
nested_ = View::Create(view_manager);
root->AddChild(nested_);
- nested_->SetBounds(gfx::Rect(20, 20, 50, 50));
+ Rect rect;
+ rect.x = rect.y = 20;
+ rect.width = rect.height = 50;
+ nested_->SetBounds(rect);
nested_->Embed(kEmbeddedAppURL);
}
virtual void OnViewManagerDisconnected(ViewManager* view_manager) override {

Powered by Google App Engine
This is Rietveld 408576698