diff options
author | sky <sky@chromium.org> | 2015-10-28 15:44:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-28 22:46:00 +0000 |
commit | 05b042644488cddc055805c2ee42f1656266aae2 (patch) | |
tree | 87f33b758a7ba47de74e3d7f643b6e8cb51e6296 /mandoline/ui/desktop_ui/browser_window.cc | |
parent | dea7ae9bd84c6e66f74351f3af1368226ce2de17 (diff) | |
download | chromium_src-05b042644488cddc055805c2ee42f1656266aae2.zip chromium_src-05b042644488cddc055805c2ee42f1656266aae2.tar.gz chromium_src-05b042644488cddc055805c2ee42f1656266aae2.tar.bz2 |
Converts client lib to use gfx types
BUG=none
TEST=none
R=ben@chromium.org
Review URL: https://codereview.chromium.org/1418563013
Cr-Commit-Position: refs/heads/master@{#356676}
Diffstat (limited to 'mandoline/ui/desktop_ui/browser_window.cc')
-rw-r--r-- | mandoline/ui/desktop_ui/browser_window.cc | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/mandoline/ui/desktop_ui/browser_window.cc b/mandoline/ui/desktop_ui/browser_window.cc index 38e4edc..a6db187 100644 --- a/mandoline/ui/desktop_ui/browser_window.cc +++ b/mandoline/ui/desktop_ui/browser_window.cc @@ -352,18 +352,16 @@ void BrowserWindow::Layout(views::View* host) { toolbar_bounds.width(), 5); // The content view bounds are in physical pixels. - mojo::Rect content_bounds_mojo; - content_bounds_mojo.x = DIPSToPixels(progress_bar_bounds.x()); - content_bounds_mojo.y = DIPSToPixels(progress_bar_bounds.bottom()+ 10); - content_bounds_mojo.width = DIPSToPixels(progress_bar_bounds.width()); - content_bounds_mojo.height = - host->bounds().height() - content_bounds_mojo.y - DIPSToPixels(10); - content_->SetBounds(content_bounds_mojo); + gfx::Rect content_bounds(DIPSToPixels(progress_bar_bounds.x()), + DIPSToPixels(progress_bar_bounds.bottom() + 10), 0, + 0); + content_bounds.set_width(DIPSToPixels(progress_bar_bounds.width())); + content_bounds.set_height(host->bounds().height() - content_bounds.y() - + DIPSToPixels(10)); + content_->SetBounds(content_bounds); // The omnibox view bounds are in physical pixels. - omnibox_view_->SetBounds( - mojo::TypeConverter<mojo::Rect, gfx::Rect>::Convert( - bounds_in_physical_pixels)); + omnibox_view_->SetBounds(bounds_in_physical_pixels); } //////////////////////////////////////////////////////////////////////////////// @@ -409,7 +407,7 @@ void BrowserWindow::Init(mus::Window* root) { params.native_widget = new views::NativeWidgetViewManager(widget, app_->shell(), root_); params.delegate = widget_delegate; - params.bounds = root_->bounds().To<gfx::Rect>(); + params.bounds = root_->bounds(); widget->Init(params); widget->Show(); root_->SetFocus(); |