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

Unified Diff: ash/common/system/tray/tray_background_view.cc

Issue 2627933002: Removing logic on showing/hiding separator (Closed)
Patch Set: Created 3 years, 11 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/common/system/tray/tray_background_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tray_background_view.cc
diff --git a/ash/common/system/tray/tray_background_view.cc b/ash/common/system/tray/tray_background_view.cc
index 5981772e79cd7c3c7fd535237a378be328b0592f..fe4420885588f9e45f9968ec590ad7a332be7152 100644
--- a/ash/common/system/tray/tray_background_view.cc
+++ b/ash/common/system/tray/tray_background_view.cc
@@ -11,7 +11,6 @@
#include "ash/common/shelf/shelf_constants.h"
#include "ash/common/shelf/wm_shelf.h"
#include "ash/common/shelf/wm_shelf_util.h"
-#include "ash/common/system/status_area_widget.h"
#include "ash/common/system/tray/system_tray.h"
#include "ash/common/system/tray/tray_constants.h"
#include "ash/common/system/tray/tray_event_filter.h"
@@ -290,7 +289,6 @@ TrayBackgroundView::TrayBackgroundView(WmShelf* wm_shelf)
shelf_alignment_(SHELF_ALIGNMENT_BOTTOM),
background_(NULL),
is_active_(false),
- is_separator_visible_(false),
widget_observer_(new TrayWidgetObserver(this)) {
DCHECK(wm_shelf_);
set_notify_enter_exit_on_child(true);
@@ -376,7 +374,6 @@ void TrayBackgroundView::SetVisible(bool visible) {
layer()->SetVisible(false);
HideTransformation();
}
- wm_shelf_->GetStatusAreaWidget()->OnTrayVisibilityChanged(this);
}
const char* TrayBackgroundView::GetClassName() const {
@@ -521,11 +518,6 @@ void TrayBackgroundView::UpdateShelfItemBackground(int alpha) {
}
}
-void TrayBackgroundView::SetSeparatorVisibility(bool is_shown) {
- is_separator_visible_ = is_shown;
- SchedulePaint();
-}
-
views::View* TrayBackgroundView::GetBubbleAnchor() const {
return tray_container_;
}
@@ -592,8 +584,7 @@ void TrayBackgroundView::OnPaint(gfx::Canvas* canvas) {
ActionableView::OnPaint(canvas);
if (!MaterialDesignController::IsShelfMaterial() ||
shelf()->GetBackgroundType() ==
- ShelfBackgroundType::SHELF_BACKGROUND_DEFAULT ||
- !is_separator_visible_) {
+ ShelfBackgroundType::SHELF_BACKGROUND_DEFAULT) {
return;
}
// In the given |canvas|, for a horizontal shelf draw a separator line to the
« no previous file with comments | « ash/common/system/tray/tray_background_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698