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

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

Issue 2530763002: [ash-md] Adjusts layout of lists with sticky header rows to match specs (Closed)
Patch Set: [ash-md] Adjusts layout of lists with sticky header rows to match specs (cleanup of shill) 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
« no previous file with comments | « ash/common/system/tray/tray_popup_utils.h ('k') | ash/common/system/tray/tri_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ash/common/system/tray/tray_popup_utils.h ('k') | ash/common/system/tray/tri_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698