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