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

Unified Diff: ash/wm/window_animations.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_window_resizer_unittest.cc ('k') | chrome/browser/ui/ash/chrome_launcher_prefs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_animations.cc
diff --git a/ash/wm/window_animations.cc b/ash/wm/window_animations.cc
index 3689f3f4be8a8a0d60c5c94bb5244e43f0f49e6d..1ea5952a36c349ec41b5697906ff5586a6fcb4dd 100644
--- a/ash/wm/window_animations.cc
+++ b/ash/wm/window_animations.cc
@@ -479,9 +479,6 @@ gfx::Rect GetMinimizeAnimationTargetBoundsInScreen(aura::Window* window) {
case SHELF_ALIGNMENT_RIGHT:
item_rect.set_x(shelf_bounds.x());
break;
- case SHELF_ALIGNMENT_TOP:
- item_rect.set_y(shelf_bounds.bottom());
- break;
}
return item_rect;
}
@@ -496,8 +493,7 @@ gfx::Rect GetMinimizeAnimationTargetBoundsInScreen(aura::Window* window) {
return shelf->SelectValueForShelfAlignment(
gfx::Rect(ltr_adjusted_x, work_area.bottom(), 0, 0),
gfx::Rect(work_area.x(), work_area.y(), 0, 0),
- gfx::Rect(work_area.right(), work_area.y(), 0, 0),
- gfx::Rect(ltr_adjusted_x, work_area.y(), 0, 0));
+ gfx::Rect(work_area.right(), work_area.y(), 0, 0));
}
} // namespace ash
« no previous file with comments | « ash/wm/panels/panel_window_resizer_unittest.cc ('k') | chrome/browser/ui/ash/chrome_launcher_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698