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

Unified Diff: ash/wm/panels/panel_window_resizer.cc

Issue 1849623002: Remove unused ash::SHELF_ALIGNMENT_TOP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/wm/panels/panel_layout_manager_unittest.cc ('k') | ash/wm/panels/panel_window_resizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/panels/panel_window_resizer.cc
diff --git a/ash/wm/panels/panel_window_resizer.cc b/ash/wm/panels/panel_window_resizer.cc
index 7d94aa5453d9731beeb6af5ad29b1076f01ab040..501503ad7b52905b1680b95a1d6963e0c19805ca 100644
--- a/ash/wm/panels/panel_window_resizer.cc
+++ b/ash/wm/panels/panel_window_resizer.cc
@@ -160,13 +160,6 @@ bool PanelWindowResizer::AttachToLauncher(const gfx::Rect& bounds,
offset->set_x(launcher_bounds.x() - bounds.width() - bounds.x());
}
break;
- case SHELF_ALIGNMENT_TOP:
- if (bounds.y() <= (launcher_bounds.bottom() +
- kPanelSnapToLauncherDistance)) {
- should_attach = true;
- offset->set_y(launcher_bounds.bottom() - bounds.y());
- }
- break;
}
}
return should_attach;
« no previous file with comments | « ash/wm/panels/panel_layout_manager_unittest.cc ('k') | ash/wm/panels/panel_window_resizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698