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

Unified Diff: ash/wm/dock/docked_window_layout_manager.cc

Issue 93103003: Update shelf when overlapping dragged windows exist (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@snap_undock
Patch Set: Update shelf when overlapping dragged windows exist (test) Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/wm/workspace_controller.cc » ('j') | ash/wm/workspace_controller_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/dock/docked_window_layout_manager.cc
diff --git a/ash/wm/dock/docked_window_layout_manager.cc b/ash/wm/dock/docked_window_layout_manager.cc
index b3c9ebece7c8fdf7a5bc3e47077cb12154fb0d99..d51c2968036d46e244c52c6a5b4227e64e979fe7 100644
--- a/ash/wm/dock/docked_window_layout_manager.cc
+++ b/ash/wm/dock/docked_window_layout_manager.cc
@@ -483,6 +483,10 @@ void DockedWindowLayoutManager::SetChildBounds(
const gfx::Rect& requested_bounds) {
// Whenever one of our windows is moved or resized enforce layout.
SetChildBoundsDirect(child, requested_bounds);
+ ShelfLayoutManager* shelf_layout = internal::ShelfLayoutManager::ForLauncher(
+ dock_container_);
+ if (shelf_layout)
oshima 2013/12/03 17:31:28 I forgot to ask. Can this be NULL?
varkha 2013/12/03 18:01:27 In Ash it can only be NULL during startup or shutd
oshima 2013/12/03 18:08:49 I believe this is from ancient spec where shelf wa
+ shelf_layout->UpdateVisibilityState();
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | ash/wm/workspace_controller.cc » ('j') | ash/wm/workspace_controller_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698