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

Unified Diff: ash/system/tray/hover_highlight_view.h

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/hover_highlight_view.h
diff --git a/ash/system/tray/hover_highlight_view.h b/ash/system/tray/hover_highlight_view.h
index 300a6e3c793c87a6fb2f0b931ce280511d69432c..6e3c81110f1249588d6ed0f5e1e0f47b7407a299 100644
--- a/ash/system/tray/hover_highlight_view.h
+++ b/ash/system/tray/hover_highlight_view.h
@@ -68,6 +68,11 @@ class HoverHighlightView : public ActionableView {
// Hide or show the right view.
void SetRightViewVisible(bool visible);
+ // Sets text for the sub label. Precondition for this function is that the
+ // main label should be present. Empty string can be used to clear the sub
tdanderson 2017/04/24 15:43:39 nit: instead say something like "|text_label_| is
mohsen 2017/04/25 05:10:01 Done.
+ // label.
+ void SetSubText(const base::string16& sub_text);
+
// Allows view to expand its height. Size of unexapandable view is fixed and
// equals to kTrayPopupItemHeight.
void SetExpandable(bool expandable);

Powered by Google App Engine
This is Rietveld 408576698