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 "components/mus/ws/connection_manager.h" | 5 #include "components/mus/ws/connection_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "components/mus/ws/client_connection.h" | 9 #include "components/mus/ws/client_connection.h" |
10 #include "components/mus/ws/connection_manager_delegate.h" | 10 #include "components/mus/ws/connection_manager_delegate.h" |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 const ServerWindow* window, | 337 const ServerWindow* window, |
338 const gfx::Insets& new_client_area, | 338 const gfx::Insets& new_client_area, |
339 const std::vector<gfx::Rect>& new_additional_client_areas) { | 339 const std::vector<gfx::Rect>& new_additional_client_areas) { |
340 for (auto& pair : connection_map_) { | 340 for (auto& pair : connection_map_) { |
341 pair.second->service()->ProcessClientAreaChanged( | 341 pair.second->service()->ProcessClientAreaChanged( |
342 window, new_client_area, new_additional_client_areas, | 342 window, new_client_area, new_additional_client_areas, |
343 IsOperationSource(pair.first)); | 343 IsOperationSource(pair.first)); |
344 } | 344 } |
345 } | 345 } |
346 | 346 |
| 347 void ConnectionManager::ProcessLostCapture(const ServerWindow* window) { |
| 348 for (auto& pair : connection_map_) { |
| 349 pair.second->service()->ProcessLostCapture(window, |
| 350 IsOperationSource(pair.first)); |
| 351 } |
| 352 } |
| 353 |
347 void ConnectionManager::ProcessWillChangeWindowHierarchy( | 354 void ConnectionManager::ProcessWillChangeWindowHierarchy( |
348 const ServerWindow* window, | 355 const ServerWindow* window, |
349 const ServerWindow* new_parent, | 356 const ServerWindow* new_parent, |
350 const ServerWindow* old_parent) { | 357 const ServerWindow* old_parent) { |
351 for (auto& pair : connection_map_) { | 358 for (auto& pair : connection_map_) { |
352 pair.second->service()->ProcessWillChangeWindowHierarchy( | 359 pair.second->service()->ProcessWillChangeWindowHierarchy( |
353 window, new_parent, old_parent, IsOperationSource(pair.first)); | 360 window, new_parent, old_parent, IsOperationSource(pair.first)); |
354 } | 361 } |
355 } | 362 } |
356 | 363 |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 if (!got_valid_frame_decorations_) { | 710 if (!got_valid_frame_decorations_) { |
704 display_manager_observers_.AddInterfacePtr(std::move(observer)); | 711 display_manager_observers_.AddInterfacePtr(std::move(observer)); |
705 return; | 712 return; |
706 } | 713 } |
707 CallOnDisplays(observer.get()); | 714 CallOnDisplays(observer.get()); |
708 display_manager_observers_.AddInterfacePtr(std::move(observer)); | 715 display_manager_observers_.AddInterfacePtr(std::move(observer)); |
709 } | 716 } |
710 | 717 |
711 } // namespace ws | 718 } // namespace ws |
712 } // namespace mus | 719 } // namespace mus |
OLD | NEW |