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

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

Issue 1469603003: mus: Fix notifying clients about window reordering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | components/mus/ws/window_manager_client_apptest.cc » ('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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | components/mus/ws/window_manager_client_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698