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

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

Issue 658923003: Remove dependency on ui from view_manager. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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/wm/wm.cc
diff --git a/mojo/examples/wm_flow/wm/wm.cc b/mojo/examples/wm_flow/wm/wm.cc
index 228f04fab37a796992877e2e6f09ecb7e4ee80ee..18ef4644ce29b53e5be8bba0a17c61310aefd2c0 100644
--- a/mojo/examples/wm_flow/wm/wm.cc
+++ b/mojo/examples/wm_flow/wm/wm.cc
@@ -175,7 +175,11 @@ class SimpleWM : public mojo::ApplicationDelegate,
mojo::View* CreateTopLevelWindow(mojo::View** app_view) {
mojo::View* frame_view = mojo::View::Create(view_manager_);
- frame_view->SetBounds(gfx::Rect(next_window_origin_, gfx::Size(400, 400)));
+ mojo::Rect rect;
+ rect.x = next_window_origin_.x();
+ rect.y = next_window_origin_.y();
+ rect.width = rect.height = 400;
+ frame_view->SetBounds(rect);
next_window_origin_.Offset(50, 50);
aura::client::ActivationClient* client = aura::client::GetActivationClient(

Powered by Google App Engine
This is Rietveld 408576698