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

Unified Diff: ash/system/tray/tray_background_view.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/system/tray/system_tray.cc ('k') | ash/system/tray/tray_image_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_background_view.cc
diff --git a/ash/system/tray/tray_background_view.cc b/ash/system/tray/tray_background_view.cc
index 0c125bff8d8810b9ba30dbe97c65c875b7f24d0f..82078edd5afd8b51418f47ef4c6eb78b0bede41b 100644
--- a/ash/system/tray/tray_background_view.cc
+++ b/ash/system/tray/tray_background_view.cc
@@ -191,8 +191,7 @@ void TrayBackgroundView::TrayContainer::ViewHierarchyChanged(
void TrayBackgroundView::TrayContainer::UpdateLayout() {
// Adjust the size of status tray dark background by adding additional
// empty border.
- if (alignment_ == SHELF_ALIGNMENT_BOTTOM ||
- alignment_ == SHELF_ALIGNMENT_TOP) {
+ if (alignment_ == SHELF_ALIGNMENT_BOTTOM) {
SetBorder(views::Border::CreateEmptyBorder(
kPaddingFromEdgeOfShelf,
kPaddingFromEdgeOfShelf,
@@ -450,8 +449,7 @@ bool TrayBackgroundView::RequiresNotificationWhenAnimatorDestroyed() const {
void TrayBackgroundView::HideTransformation() {
gfx::Transform transform;
- if (shelf_alignment_ == SHELF_ALIGNMENT_BOTTOM ||
- shelf_alignment_ == SHELF_ALIGNMENT_TOP)
+ if (shelf_alignment_ == SHELF_ALIGNMENT_BOTTOM)
transform.Translate(width(), 0.0f);
else
transform.Translate(0.0f, height());
@@ -567,8 +565,6 @@ TrayBubbleView::AnchorAlignment TrayBackgroundView::GetAnchorAlignment() const {
return TrayBubbleView::ANCHOR_ALIGNMENT_LEFT;
case SHELF_ALIGNMENT_RIGHT:
return TrayBubbleView::ANCHOR_ALIGNMENT_RIGHT;
- case SHELF_ALIGNMENT_TOP:
- return TrayBubbleView::ANCHOR_ALIGNMENT_TOP;
}
NOTREACHED();
return TrayBubbleView::ANCHOR_ALIGNMENT_BOTTOM;
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/tray_image_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698