| 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 b5e3deb294380a84caf165b59617c1bbc0a1994d..f3522f8a900235dbf5de430c6b93fe83bb19f24c 100644
|
| --- a/ash/common/system/tray/tray_popup_utils.cc
|
| +++ b/ash/common/system/tray/tray_popup_utils.cc
|
| @@ -188,6 +188,18 @@ TriView* TrayPopupUtils::CreateDefaultRowView() {
|
| return tri_view;
|
| }
|
|
|
| +TriView* TrayPopupUtils::CreateSubHeaderRowView() {
|
| + TriView* tri_view = CreateMultiTargetRowView();
|
| + tri_view->SetInsets(
|
| + gfx::Insets(0, kTrayPopupPaddingHorizontal, 0,
|
| + GetTrayConstant(TRAY_POPUP_ITEM_RIGHT_INSET)));
|
| + tri_view->SetContainerVisible(TriView::Container::START, false);
|
| + tri_view->SetContainerLayout(
|
| + TriView::Container::END,
|
| + CreateDefaultLayoutManager(TriView::Container::END));
|
| + return tri_view;
|
| +}
|
| +
|
| TriView* TrayPopupUtils::CreateMultiTargetRowView() {
|
| TriView* tri_view = new TriView(0 /* padding_between_items */);
|
|
|
| @@ -427,6 +439,16 @@ views::Separator* TrayPopupUtils::CreateListItemSeparator(bool left_inset) {
|
| return separator;
|
| }
|
|
|
| +views::Separator* TrayPopupUtils::CreateListSubHeaderSeparator() {
|
| + views::Separator* separator =
|
| + new views::Separator(views::Separator::HORIZONTAL);
|
| + separator->SetColor(kHorizontalSeparatorColor);
|
| + separator->SetPreferredSize(kSeparatorWidth);
|
| + separator->SetBorder(views::CreateEmptyBorder(
|
| + kMenuSeparatorVerticalPadding - kSeparatorWidth, 0, 0, 0));
|
| + return separator;
|
| +}
|
| +
|
| bool TrayPopupUtils::CanOpenWebUISettings(LoginStatus status) {
|
| // TODO(tdanderson): Consider moving this into WmShell, or introduce a
|
| // CanShowSettings() method in each delegate type that has a
|
|
|