OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "services/ui/public/cpp/window_tree_client.h" | 5 #include "services/ui/public/cpp/window_tree_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1266 DCHECK(window_manager_delegate_); | 1266 DCHECK(window_manager_delegate_); |
1267 | 1267 |
1268 for (Window* root : roots_) { | 1268 for (Window* root : roots_) { |
1269 if (root->display_id() == display_id) { | 1269 if (root->display_id() == display_id) { |
1270 window_manager_delegate_->OnWmDisplayRemoved(root); | 1270 window_manager_delegate_->OnWmDisplayRemoved(root); |
1271 return; | 1271 return; |
1272 } | 1272 } |
1273 } | 1273 } |
1274 } | 1274 } |
1275 | 1275 |
| 1276 void WindowTreeClient::WmDisplayModified(const display::Display& display) { |
| 1277 DCHECK(window_manager_delegate_); |
| 1278 window_manager_delegate_->OnWmDisplayModified(display); |
| 1279 } |
| 1280 |
1276 void WindowTreeClient::WmSetBounds(uint32_t change_id, | 1281 void WindowTreeClient::WmSetBounds(uint32_t change_id, |
1277 Id window_id, | 1282 Id window_id, |
1278 const gfx::Rect& transit_bounds) { | 1283 const gfx::Rect& transit_bounds) { |
1279 Window* window = GetWindowByServerId(window_id); | 1284 Window* window = GetWindowByServerId(window_id); |
1280 bool result = false; | 1285 bool result = false; |
1281 if (window) { | 1286 if (window) { |
1282 DCHECK(window_manager_delegate_); | 1287 DCHECK(window_manager_delegate_); |
1283 gfx::Rect bounds = transit_bounds; | 1288 gfx::Rect bounds = transit_bounds; |
1284 result = window_manager_delegate_->OnWmSetBounds(window, &bounds); | 1289 result = window_manager_delegate_->OnWmSetBounds(window, &bounds); |
1285 if (result) { | 1290 if (result) { |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1432 Window* window, | 1437 Window* window, |
1433 const gfx::Vector2d& offset, | 1438 const gfx::Vector2d& offset, |
1434 const gfx::Insets& hit_area) { | 1439 const gfx::Insets& hit_area) { |
1435 if (window_manager_internal_client_) { | 1440 if (window_manager_internal_client_) { |
1436 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( | 1441 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( |
1437 server_id(window), offset.x(), offset.y(), hit_area); | 1442 server_id(window), offset.x(), offset.y(), hit_area); |
1438 } | 1443 } |
1439 } | 1444 } |
1440 | 1445 |
1441 } // namespace ui | 1446 } // namespace ui |
OLD | NEW |