summaryrefslogtreecommitdiffstats
path: root/mandoline/ui/phone_ui
diff options
context:
space:
mode:
authorsky <sky@chromium.org>2015-10-28 15:44:59 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-28 22:46:00 +0000
commit05b042644488cddc055805c2ee42f1656266aae2 (patch)
tree87f33b758a7ba47de74e3d7f643b6e8cb51e6296 /mandoline/ui/phone_ui
parentdea7ae9bd84c6e66f74351f3af1368226ce2de17 (diff)
downloadchromium_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/phone_ui')
-rw-r--r--mandoline/ui/phone_ui/phone_browser_application_delegate.cc7
-rw-r--r--mandoline/ui/phone_ui/phone_browser_application_delegate.h4
2 files changed, 5 insertions, 6 deletions
diff --git a/mandoline/ui/phone_ui/phone_browser_application_delegate.cc b/mandoline/ui/phone_ui/phone_browser_application_delegate.cc
index b17e76a..d6f40fb 100644
--- a/mandoline/ui/phone_ui/phone_browser_application_delegate.cc
+++ b/mandoline/ui/phone_ui/phone_browser_application_delegate.cc
@@ -90,11 +90,10 @@ void PhoneBrowserApplicationDelegate::OnConnectionLost(
void PhoneBrowserApplicationDelegate::OnWindowBoundsChanged(
mus::Window* view,
- const mojo::Rect& old_bounds,
- const mojo::Rect& new_bounds) {
+ const gfx::Rect& old_bounds,
+ const gfx::Rect& new_bounds) {
CHECK_EQ(view, root_);
- content_->SetBounds(
- *mojo::Rect::From(gfx::Rect(0, 0, new_bounds.width, new_bounds.height)));
+ content_->SetBounds(gfx::Rect(new_bounds.size()));
}
////////////////////////////////////////////////////////////////////////////////
diff --git a/mandoline/ui/phone_ui/phone_browser_application_delegate.h b/mandoline/ui/phone_ui/phone_browser_application_delegate.h
index a66f4cf..66a7a9e 100644
--- a/mandoline/ui/phone_ui/phone_browser_application_delegate.h
+++ b/mandoline/ui/phone_ui/phone_browser_application_delegate.h
@@ -50,8 +50,8 @@ class PhoneBrowserApplicationDelegate
// Overridden from mus::WindowObserver:
void OnWindowBoundsChanged(mus::Window* view,
- const mojo::Rect& old_bounds,
- const mojo::Rect& new_bounds) override;
+ const gfx::Rect& old_bounds,
+ const gfx::Rect& new_bounds) override;
// Overridden from web_view::mojom::WebViewClient:
void TopLevelNavigateRequest(mojo::URLRequestPtr request) override;