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

Unified Diff: ash/system/web_notification/ash_popup_alignment_delegate.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/user/tray_user.cc ('k') | ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/web_notification/ash_popup_alignment_delegate.cc
diff --git a/ash/system/web_notification/ash_popup_alignment_delegate.cc b/ash/system/web_notification/ash_popup_alignment_delegate.cc
index 98fffe99ea3b4435e8783d2be85d27a1dd16f1c6..a49a78c6e2d800f25c1542f8184b5203271ac856 100644
--- a/ash/system/web_notification/ash_popup_alignment_delegate.cc
+++ b/ash/system/web_notification/ash_popup_alignment_delegate.cc
@@ -85,11 +85,8 @@ int AshPopupAlignmentDelegate::GetToastOriginX(
}
int AshPopupAlignmentDelegate::GetBaseLine() const {
- return IsTopDown()
- ? work_area_.y() + kNoToastMarginBorderAndShadowOffset +
- system_tray_height_
- : work_area_.bottom() - kNoToastMarginBorderAndShadowOffset -
- system_tray_height_;
+ return work_area_.bottom() - kNoToastMarginBorderAndShadowOffset -
+ system_tray_height_;
}
int AshPopupAlignmentDelegate::GetWorkAreaBottom() const {
@@ -97,7 +94,7 @@ int AshPopupAlignmentDelegate::GetWorkAreaBottom() const {
}
bool AshPopupAlignmentDelegate::IsTopDown() const {
- return GetAlignment() == SHELF_ALIGNMENT_TOP;
+ return false;
}
bool AshPopupAlignmentDelegate::IsFromLeft() const {
« no previous file with comments | « ash/system/user/tray_user.cc ('k') | ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698