| Index: ash/common/system/tray/tray_popup_utils.cc
|
| diff --git a/ash/common/system/tray/tray_popup_utils.cc b/ash/common/system/tray/tray_popup_utils.cc
|
| index f17cb55579bf98cc5b7ca2384bca19632b68a1f0..986674c60f437f81109635ecf8c63151737c89cf 100644
|
| --- a/ash/common/system/tray/tray_popup_utils.cc
|
| +++ b/ash/common/system/tray/tray_popup_utils.cc
|
| @@ -290,6 +290,23 @@ void TrayPopupUtils::ConfigureAsStickyHeader(views::View* view) {
|
| views::Background::CreateSolidBackground(kBackgroundColor));
|
| view->SetBorder(
|
| views::CreateEmptyBorder(gfx::Insets(kMenuSeparatorVerticalPadding, 0)));
|
| + view->SetPaintToLayer(true);
|
| + view->layer()->SetFillsBoundsOpaquely(false);
|
| +}
|
| +
|
| +void TrayPopupUtils::ShowStickyHeaderSeparator(views::View* view,
|
| + bool show_separator) {
|
| + if (show_separator) {
|
| + view->SetBorder(views::CreatePaddedBorder(
|
| + views::CreateSolidSidedBorder(0, 0, kSeparatorWidth, 0,
|
| + kHorizontalSeparatorColor),
|
| + gfx::Insets(kMenuSeparatorVerticalPadding, 0,
|
| + kMenuSeparatorVerticalPadding - kSeparatorWidth, 0)));
|
| + } else {
|
| + view->SetBorder(views::CreateEmptyBorder(
|
| + gfx::Insets(kMenuSeparatorVerticalPadding, 0)));
|
| + }
|
| + view->SchedulePaint();
|
| }
|
|
|
| void TrayPopupUtils::ConfigureContainer(TriView::Container container,
|
|
|