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

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

Issue 2831023003: Refactor AddScrollListItem() in system menu detailed views (Closed)
Patch Set: Cleanup Created 3 years, 8 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
Index: ash/system/tray/tray_popup_utils.cc
diff --git a/ash/system/tray/tray_popup_utils.cc b/ash/system/tray/tray_popup_utils.cc
index d5bdd0a69e1abc1c8e05e6287ca0868c2c26de7c..b883d874182ee262d2820160b6fb1b03e6e9b6b6 100644
--- a/ash/system/tray/tray_popup_utils.cc
+++ b/ash/system/tray/tray_popup_utils.cc
@@ -174,10 +174,12 @@ TriView* TrayPopupUtils::CreateDefaultRowView() {
return tri_view;
}
-TriView* TrayPopupUtils::CreateSubHeaderRowView() {
+TriView* TrayPopupUtils::CreateSubHeaderRowView(bool hide_start) {
tdanderson 2017/04/24 15:43:39 I see you have made mention of this in your CL des
mohsen 2017/04/25 05:10:01 Well, I was not thinking of deleting this. Thought
TriView* tri_view = CreateMultiTargetRowView();
- tri_view->SetInsets(gfx::Insets(0, kTrayPopupPaddingHorizontal, 0, 0));
- tri_view->SetContainerVisible(TriView::Container::START, false);
+ if (hide_start) {
+ tri_view->SetInsets(gfx::Insets(0, kTrayPopupPaddingHorizontal, 0, 0));
+ tri_view->SetContainerVisible(TriView::Container::START, false);
+ }
tri_view->SetContainerLayout(
TriView::Container::END,
CreateDefaultLayoutManager(TriView::Container::END));

Powered by Google App Engine
This is Rietveld 408576698