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

Unified Diff: ash/wm/app_list_controller.cc

Issue 1849623002: Remove unused ash::SHELF_ALIGNMENT_TOP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix autoformat problem with <x, >y Created 4 years, 9 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
Index: ash/wm/app_list_controller.cc
diff --git a/ash/wm/app_list_controller.cc b/ash/wm/app_list_controller.cc
index d6465d262842e580febe4a7d25c8c8c1d305f541..7265957495d31a4bd07fd7f2b61fdd23e5a5f46a 100644
--- a/ash/wm/app_list_controller.cc
+++ b/ash/wm/app_list_controller.cc
@@ -57,7 +57,7 @@ views::BubbleBorder::Arrow GetBubbleArrow(aura::Window* window) {
DCHECK(Shell::HasInstance());
return Shelf::ForWindow(window)->SelectValueForShelfAlignment(
views::BubbleBorder::BOTTOM_CENTER, views::BubbleBorder::LEFT_CENTER,
- views::BubbleBorder::RIGHT_CENTER, views::BubbleBorder::TOP_CENTER);
+ views::BubbleBorder::RIGHT_CENTER);
}
// Offset given |rect| towards shelf.
@@ -76,9 +76,6 @@ gfx::Rect OffsetTowardsShelf(const gfx::Rect& rect, views::Widget* widget) {
case SHELF_ALIGNMENT_RIGHT:
offseted.Offset(kAnimationOffset, 0);
break;
- case SHELF_ALIGNMENT_TOP:
- offseted.Offset(0, -kAnimationOffset);
- break;
}
return offseted;
@@ -93,7 +90,6 @@ gfx::Vector2d GetAnchorPositionOffsetToShelf(
widget->GetNativeView()->GetRootWindow());
gfx::Point anchor(button_bounds.CenterPoint());
switch (shelf_alignment) {
- case SHELF_ALIGNMENT_TOP:
case SHELF_ALIGNMENT_BOTTOM:
if (base::i18n::IsRTL()) {
int screen_width = widget->GetWorkAreaBoundsInScreen().width();

Powered by Google App Engine
This is Rietveld 408576698