Chromium Code Reviews| Index: ui/aura/mus/window_tree_client.cc |
| diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc |
| index da326eaacc31fbbd72b5c6e81e84700cfdfc116c..201b0c8dfe7ee240f8edd5d90778cec546346b86 100644 |
| --- a/ui/aura/mus/window_tree_client.cc |
| +++ b/ui/aura/mus/window_tree_client.cc |
| @@ -1401,27 +1401,19 @@ void WindowTreeClient::WmSetBounds(uint32_t change_id, |
| Id window_id, |
| const gfx::Rect& transit_bounds_in_pixels) { |
| WindowMus* window = GetWindowByServerId(window_id); |
| - bool result = false; |
| if (window) { |
| float device_scale_factor = ScaleFactorForDisplay(window->GetWindow()); |
| DCHECK(window_manager_delegate_); |
| gfx::Rect transit_bounds_in_dip = |
| gfx::ConvertRectToDIP(device_scale_factor, transit_bounds_in_pixels); |
| gfx::Rect bounds_in_dip = transit_bounds_in_dip; |
| - // TODO: this needs to trigger scheduling a bounds change on |window|. |
| - result = window_manager_delegate_->OnWmSetBounds(window->GetWindow(), |
| - &bounds_in_dip); |
| - if (result) { |
| - // If the resulting bounds differ return false. Returning false ensures |
| - // the client applies the bounds we set below. |
| - result = bounds_in_dip == transit_bounds_in_dip; |
| - window->SetBoundsFromServer(bounds_in_dip); |
| - } |
| + window_manager_delegate_->OnWmSetBounds(window->GetWindow(), |
| + &bounds_in_dip); |
|
Fady Samuel
2017/03/27 18:16:37
Actually, this doesn't seem to need to be an out p
|
| } else { |
| DVLOG(1) << "Unknown window passed to WmSetBounds()."; |
| } |
| if (window_manager_internal_client_) |
| - window_manager_internal_client_->WmResponse(change_id, result); |
| + window_manager_internal_client_->WmSetBoundsResponse(change_id); |
| } |
| void WindowTreeClient::WmSetProperty( |