| Index: components/mus/ws/window_tree_impl.cc
|
| diff --git a/components/mus/ws/window_tree_impl.cc b/components/mus/ws/window_tree_impl.cc
|
| index 38740b901c9340fee7a7ab45f34db08ae0024610..d8872fd706dbb2d19a7ed856b04879e43f5c232c 100644
|
| --- a/components/mus/ws/window_tree_impl.cc
|
| +++ b/components/mus/ws/window_tree_impl.cc
|
| @@ -187,15 +187,16 @@ void WindowTreeImpl::ProcessWindowBoundsChanged(const ServerWindow* window,
|
| Rect::From(new_bounds));
|
| }
|
|
|
| -void WindowTreeImpl::ProcessClientAreaChanged(const ServerWindow* window,
|
| - const gfx::Rect& old_client_area,
|
| - const gfx::Rect& new_client_area,
|
| - bool originated_change) {
|
| +void WindowTreeImpl::ProcessClientAreaChanged(
|
| + const ServerWindow* window,
|
| + const gfx::Insets& old_client_area,
|
| + const gfx::Insets& new_client_area,
|
| + bool originated_change) {
|
| if (originated_change || !IsWindowKnown(window))
|
| return;
|
| client()->OnClientAreaChanged(WindowIdToTransportId(window->id()),
|
| - Rect::From(old_client_area),
|
| - Rect::From(new_client_area));
|
| + mojo::Insets::From(old_client_area),
|
| + mojo::Insets::From(new_client_area));
|
| }
|
|
|
| void WindowTreeImpl::ProcessViewportMetricsChanged(
|
| @@ -702,16 +703,14 @@ void WindowTreeImpl::SetImeVisibility(Id transport_window_id,
|
| }
|
| }
|
|
|
| -void WindowTreeImpl::SetClientArea(Id transport_window_id, mojo::RectPtr rect) {
|
| +void WindowTreeImpl::SetClientArea(Id transport_window_id,
|
| + mojo::InsetsPtr insets) {
|
| ServerWindow* window =
|
| GetWindow(WindowIdFromTransportId(transport_window_id));
|
| if (!window || !access_policy_->CanSetClientArea(window))
|
| return;
|
|
|
| - if (rect.is_null())
|
| - window->SetClientArea(gfx::Rect(window->bounds().size()));
|
| - else
|
| - window->SetClientArea(rect.To<gfx::Rect>());
|
| + window->SetClientArea(insets.To<gfx::Insets>());
|
| }
|
|
|
| void WindowTreeImpl::Embed(Id transport_window_id,
|
| @@ -758,13 +757,6 @@ void WindowTreeImpl::SetShowState(uint32_t window_id,
|
| GetHost()->window_manager()->SetShowState(window_id, show_state, callback);
|
| }
|
|
|
| -void WindowTreeImpl::GetDisplays(const GetDisplaysCallback& callback) {
|
| - if (!GetHost() || !GetHost()->window_manager())
|
| - return;
|
| -
|
| - GetHost()->window_manager()->GetDisplays(callback);
|
| -}
|
| -
|
| bool WindowTreeImpl::IsRootForAccessPolicy(const WindowId& id) const {
|
| return IsRoot(id);
|
| }
|
|
|