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

Unified Diff: mojo/examples/browser/browser.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/browser/browser.cc
diff --git a/mojo/examples/browser/browser.cc b/mojo/examples/browser/browser.cc
index e5f724e659dc61fedb620400c6c51fc4097722f0..9f88e512cea7bf4d668443abb84fb4a6b1f438da 100644
--- a/mojo/examples/browser/browser.cc
+++ b/mojo/examples/browser/browser.cc
@@ -194,7 +194,7 @@ class Browser : public ApplicationDelegate,
views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
params.native_widget = new NativeWidgetViewManager(widget_, shell_, view);
params.delegate = widget_delegate;
- params.bounds = gfx::Rect(view->bounds().width(), view->bounds().height());
+ params.bounds = gfx::Rect(view->bounds().width, view->bounds().height);
widget_->Init(params);
// KeyboardManager handles deleting itself when the widget is destroyed.
new KeyboardManager(widget_, window_manager_.get(), view);

Powered by Google App Engine
This is Rietveld 408576698