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

Side by Side Diff: services/ui/ws/window_server.cc

Issue 2349003002: Makes WindowTree::DeleteWindow() unembed for roots (Closed)
Patch Set: comment Created 4 years, 3 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 | « services/ui/ws/window_server.h ('k') | services/ui/ws/window_tree.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 "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
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
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
OLDNEW
« no previous file with comments | « services/ui/ws/window_server.h ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698