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

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

Issue 2829763002: [Ash] Remove HoverHighlightView::AddLabelDeprecated() (Closed)
Patch Set: 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
« no previous file with comments | « ash/system/tray/tray_popup_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c2d5237d92fcfe072bc2f948afac515501afd9c2..d5bdd0a69e1abc1c8e05e6287ca0868c2c26de7c 100644
--- a/ash/system/tray/tray_popup_utils.cc
+++ b/ash/system/tray/tray_popup_utils.cc
@@ -184,6 +184,21 @@ TriView* TrayPopupUtils::CreateSubHeaderRowView() {
return tri_view;
}
+views::View* TrayPopupUtils::CreateInfoLabelRowView(int message_id) {
+ views::Label* label = TrayPopupUtils::CreateDefaultLabel();
+ label->SetText(l10n_util::GetStringUTF16(message_id));
+ TrayPopupItemStyle style(TrayPopupItemStyle::FontStyle::SYSTEM_INFO);
+ style.SetupLabel(label);
+
+ TriView* tri_view = CreateMultiTargetRowView();
+ tri_view->SetInsets(gfx::Insets(0, kTrayPopupPaddingHorizontal, 0, 0));
+ tri_view->SetContainerVisible(TriView::Container::START, false);
+ tri_view->SetContainerVisible(TriView::Container::END, false);
+ tri_view->AddView(TriView::Container::CENTER, label);
+
+ return tri_view;
+}
+
TriView* TrayPopupUtils::CreateMultiTargetRowView() {
TriView* tri_view = new TriView(0 /* padding_between_items */);
« no previous file with comments | « ash/system/tray/tray_popup_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698