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

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

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_details_view.cc ('k') | ash/common/system/tray/tray_popup_utils.cc » ('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.h
diff --git a/ash/common/system/tray/tray_popup_utils.h b/ash/common/system/tray/tray_popup_utils.h
index 20fd4030720192915258588724863ed88b9ec030..bc1b49a89a0e2c6d36f5204a2072a3e622f86cad 100644
--- a/ash/common/system/tray/tray_popup_utils.h
+++ b/ash/common/system/tray/tray_popup_utils.h
@@ -46,6 +46,17 @@ class TrayPopupUtils {
// The CENTER container has a flexible width.
static TriView* CreateDefaultRowView();
+ // Creates a container view to be used by system menu sub-section header rows.
+ // The caller takes over ownership of the created view.
+ //
+ // The returned view consists of 2 regions: CENTER, and END having the same
+ // properties as when using |CreateMultiTargetRowView|. The START container is
+ // hidden.
+ // The END container has a fixed minimum width but can grow into the CENTER
+ // container if space is required and available. The CENTER container has a
+ // flexible width.
+ static TriView* CreateSubHeaderRowView();
+
// Creates a container view to be used by system menu rows that want to embed
// a targetable area within one (or more) of the containers OR by any row
// that requires a non-default layout within the container views. The returned
@@ -169,6 +180,11 @@ class TrayPopupUtils {
// ownership of the returned separator.
static views::Separator* CreateListItemSeparator(bool left_inset);
+ // Creates and returns a horizontal separator line to be drawn between rows
+ // in a detailed view above the sub-header rows. Caller assumes ownership of
+ // the returned separator.
+ static views::Separator* CreateListSubHeaderSeparator();
+
// Returns true if it is possible to open WebUI settings in a browser window,
// i.e., the user is logged in, not on the lock screen, and not in a secondary
// account flow.
« no previous file with comments | « ash/common/system/tray/tray_details_view.cc ('k') | ash/common/system/tray/tray_popup_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698