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

Unified Diff: ash/common/wm/workspace_controller.cc

Issue 2293183002: ash: Remove ash::Shelf in favor of ash::WmShelf (Closed)
Patch Set: rebase again Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/wm/panels/panel_layout_manager.h ('k') | ash/dip_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/workspace_controller.cc
diff --git a/ash/common/wm/workspace_controller.cc b/ash/common/wm/workspace_controller.cc
index 06fbba7c501348332bced71d221bbb44ba210e59..e5f01f0d07f19101997da81e15685c0680228c7a 100644
--- a/ash/common/wm/workspace_controller.cc
+++ b/ash/common/wm/workspace_controller.cc
@@ -64,8 +64,7 @@ wm::WorkspaceWindowState WorkspaceController::GetWindowState() const {
const int kWindowContainerIds[] = {
kShellWindowId_DefaultContainer, kShellWindowId_DockedContainer,
};
- const gfx::Rect shelf_bounds(
- viewport_->GetRootWindowController()->GetShelf()->GetIdealBounds());
+ const gfx::Rect shelf_bounds(WmShelf::ForWindow(viewport_)->GetIdealBounds());
bool window_overlaps_launcher = false;
for (size_t i = 0; i < arraysize(kWindowContainerIds); i++) {
WmWindow* container = viewport_->GetRootWindow()->GetChildByShellWindowId(
« no previous file with comments | « ash/common/wm/panels/panel_layout_manager.h ('k') | ash/dip_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698