Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: components/mus/ws/connection_manager.cc

Issue 1677513002: mus Window Server: implement event capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/mus/ws/connection_manager.h ('k') | components/mus/ws/default_access_policy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/mus/ws/connection_manager.h ('k') | components/mus/ws/default_access_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698