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

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: 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/wm/wm.cc
diff --git a/mojo/examples/wm_flow/wm/wm.cc b/mojo/examples/wm_flow/wm/wm.cc
index 92eee590fd7c6fbebdf06922df685bb9b4ffd683..ba20e35bfcaf02b952fb7fe7e7bf4f690ccd1844 100644
--- a/mojo/examples/wm_flow/wm/wm.cc
+++ b/mojo/examples/wm_flow/wm/wm.cc
@@ -176,7 +176,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