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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 const ServerWindow* window, | 327 const ServerWindow* window, |
328 const gfx::Insets& new_client_area, | 328 const gfx::Insets& new_client_area, |
329 const std::vector<gfx::Rect>& new_additional_client_areas) { | 329 const std::vector<gfx::Rect>& new_additional_client_areas) { |
330 for (auto& pair : connection_map_) { | 330 for (auto& pair : connection_map_) { |
331 pair.second->service()->ProcessClientAreaChanged( | 331 pair.second->service()->ProcessClientAreaChanged( |
332 window, new_client_area, new_additional_client_areas, | 332 window, new_client_area, new_additional_client_areas, |
333 IsOperationSource(pair.first)); | 333 IsOperationSource(pair.first)); |
334 } | 334 } |
335 } | 335 } |
336 | 336 |
| 337 void ConnectionManager::ProcessLostCapture(const ServerWindow* window) { |
| 338 for (auto& pair : connection_map_) { |
| 339 pair.second->service()->ProcessLostCapture(window, |
| 340 IsOperationSource(pair.first)); |
| 341 } |
| 342 } |
| 343 |
337 void ConnectionManager::ProcessWillChangeWindowHierarchy( | 344 void ConnectionManager::ProcessWillChangeWindowHierarchy( |
338 const ServerWindow* window, | 345 const ServerWindow* window, |
339 const ServerWindow* new_parent, | 346 const ServerWindow* new_parent, |
340 const ServerWindow* old_parent) { | 347 const ServerWindow* old_parent) { |
341 for (auto& pair : connection_map_) { | 348 for (auto& pair : connection_map_) { |
342 pair.second->service()->ProcessWillChangeWindowHierarchy( | 349 pair.second->service()->ProcessWillChangeWindowHierarchy( |
343 window, new_parent, old_parent, IsOperationSource(pair.first)); | 350 window, new_parent, old_parent, IsOperationSource(pair.first)); |
344 } | 351 } |
345 } | 352 } |
346 | 353 |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 if (!got_valid_frame_decorations_) { | 700 if (!got_valid_frame_decorations_) { |
694 display_manager_observers_.AddInterfacePtr(std::move(observer)); | 701 display_manager_observers_.AddInterfacePtr(std::move(observer)); |
695 return; | 702 return; |
696 } | 703 } |
697 CallOnDisplays(observer.get()); | 704 CallOnDisplays(observer.get()); |
698 display_manager_observers_.AddInterfacePtr(std::move(observer)); | 705 display_manager_observers_.AddInterfacePtr(std::move(observer)); |
699 } | 706 } |
700 | 707 |
701 } // namespace ws | 708 } // namespace ws |
702 } // namespace mus | 709 } // namespace mus |
OLD | NEW |