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

Unified Diff: ash/common/system/cast/tray_cast.cc

Issue 2465403002: Some more fixes to cros system tray icons (esp. screen tray items) (Closed)
Patch Set: commentary Created 4 years, 1 month 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/common/system/cast/tray_cast.cc
diff --git a/ash/common/system/cast/tray_cast.cc b/ash/common/system/cast/tray_cast.cc
index 0ae15ec33b280af972d7824bfdd9af7886e59672..9d8755d09ac119b9db9aa228d0e4cc703617557a 100644
--- a/ash/common/system/cast/tray_cast.cc
+++ b/ash/common/system/cast/tray_cast.cc
@@ -348,10 +348,6 @@ class CastTrayView : public TrayItemView {
explicit CastTrayView(SystemTrayItem* tray_item);
~CastTrayView() override;
- // Called when the tray alignment changes so that the icon can recenter
- // itself.
- void UpdateAlignment(ShelfAlignment alignment);
-
private:
DISALLOW_COPY_AND_ASSIGN(CastTrayView);
};
@@ -371,15 +367,6 @@ CastTrayView::CastTrayView(SystemTrayItem* tray_item)
CastTrayView::~CastTrayView() {}
-void CastTrayView::UpdateAlignment(ShelfAlignment alignment) {
- // Center the item dependent on the orientation of the shelf.
- views::BoxLayout::Orientation layout = IsHorizontalAlignment(alignment)
- ? views::BoxLayout::kHorizontal
- : views::BoxLayout::kVertical;
- SetLayoutManager(new views::BoxLayout(layout, 0, 0, 0));
- Layout();
-}
-
// This view displays a list of cast receivers that can be clicked on and casted
// to. It is activated by clicking on the chevron inside of
// |CastSelectDefaultView|.
@@ -681,9 +668,4 @@ void TrayCast::OnCastingSessionStartedOrStopped(bool started) {
UpdatePrimaryView();
}
-void TrayCast::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) {
- if (tray_)
- tray_->UpdateAlignment(alignment);
-}
-
} // namespace ash
« no previous file with comments | « ash/common/system/cast/tray_cast.h ('k') | ash/common/system/chromeos/media_security/multi_profile_media_tray_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698