| 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/ws/window_server.h" | 5 #include "services/ui/ws/window_server.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 (current_operation_type() == | 415 (current_operation_type() == |
| 416 OperationType::REMOVE_TRANSIENT_WINDOW_FROM_PARENT)) { | 416 OperationType::REMOVE_TRANSIENT_WINDOW_FROM_PARENT)) { |
| 417 return; | 417 return; |
| 418 } | 418 } |
| 419 for (auto& pair : tree_map_) { | 419 for (auto& pair : tree_map_) { |
| 420 pair.second->ProcessWindowReorder(window, relative_window, direction, | 420 pair.second->ProcessWindowReorder(window, relative_window, direction, |
| 421 IsOperationSource(pair.first)); | 421 IsOperationSource(pair.first)); |
| 422 } | 422 } |
| 423 } | 423 } |
| 424 | 424 |
| 425 void WindowServer::ProcessWindowDeleted(const ServerWindow* window) { | 425 void WindowServer::ProcessWindowDeleted(ServerWindow* window) { |
| 426 for (auto& pair : tree_map_) | 426 for (auto& pair : tree_map_) |
| 427 pair.second->ProcessWindowDeleted(window, IsOperationSource(pair.first)); | 427 pair.second->ProcessWindowDeleted(window, IsOperationSource(pair.first)); |
| 428 } | 428 } |
| 429 | 429 |
| 430 void WindowServer::ProcessWillChangeWindowPredefinedCursor(ServerWindow* window, | 430 void WindowServer::ProcessWillChangeWindowPredefinedCursor(ServerWindow* window, |
| 431 int32_t cursor_id) { | 431 int32_t cursor_id) { |
| 432 for (auto& pair : tree_map_) { | 432 for (auto& pair : tree_map_) { |
| 433 pair.second->ProcessCursorChanged(window, cursor_id, | 433 pair.second->ProcessCursorChanged(window, cursor_id, |
| 434 IsOperationSource(pair.first)); | 434 IsOperationSource(pair.first)); |
| 435 } | 435 } |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 clipboard_map_[id] = base::MakeUnique<clipboard::ClipboardImpl>(); | 828 clipboard_map_[id] = base::MakeUnique<clipboard::ClipboardImpl>(); |
| 829 } | 829 } |
| 830 | 830 |
| 831 void WindowServer::OnUserIdRemoved(const UserId& id) { | 831 void WindowServer::OnUserIdRemoved(const UserId& id) { |
| 832 activity_monitor_map_.erase(id); | 832 activity_monitor_map_.erase(id); |
| 833 clipboard_map_.erase(id); | 833 clipboard_map_.erase(id); |
| 834 } | 834 } |
| 835 | 835 |
| 836 } // namespace ws | 836 } // namespace ws |
| 837 } // namespace ui | 837 } // namespace ui |
| OLD | NEW |