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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 const gfx::Insets& new_client_area) { | 436 const gfx::Insets& new_client_area) { |
437 if (in_destructor_) | 437 if (in_destructor_) |
438 return; | 438 return; |
439 | 439 |
440 ProcessClientAreaChanged(window, old_client_area, new_client_area); | 440 ProcessClientAreaChanged(window, old_client_area, new_client_area); |
441 } | 441 } |
442 | 442 |
443 void ConnectionManager::OnWindowReordered(ServerWindow* window, | 443 void ConnectionManager::OnWindowReordered(ServerWindow* window, |
444 ServerWindow* relative, | 444 ServerWindow* relative, |
445 mojom::OrderDirection direction) { | 445 mojom::OrderDirection direction) { |
| 446 ProcessWindowReorder(window, relative, direction); |
446 if (!in_destructor_) | 447 if (!in_destructor_) |
447 SchedulePaint(window, gfx::Rect(window->bounds().size())); | 448 SchedulePaint(window, gfx::Rect(window->bounds().size())); |
448 } | 449 } |
449 | 450 |
450 void ConnectionManager::OnWillChangeWindowVisibility(ServerWindow* window) { | 451 void ConnectionManager::OnWillChangeWindowVisibility(ServerWindow* window) { |
451 if (in_destructor_) | 452 if (in_destructor_) |
452 return; | 453 return; |
453 | 454 |
454 // Need to repaint if the window was drawn (which means it's in the process of | 455 // Need to repaint if the window was drawn (which means it's in the process of |
455 // hiding) or the window is transitioning to drawn. | 456 // hiding) or the window is transitioning to drawn. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 return; | 499 return; |
499 for (auto& pair : connection_map_) { | 500 for (auto& pair : connection_map_) { |
500 pair.second->service()->ProcessTransientWindowRemoved( | 501 pair.second->service()->ProcessTransientWindowRemoved( |
501 window, transient_child, IsOperationSource(pair.first)); | 502 window, transient_child, IsOperationSource(pair.first)); |
502 } | 503 } |
503 } | 504 } |
504 | 505 |
505 } // namespace ws | 506 } // namespace ws |
506 | 507 |
507 } // namespace mus | 508 } // namespace mus |
OLD | NEW |