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

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

Issue 2463163002: Update chromeos system menu buttons for MD. (Closed)
Patch Set: boxlayout has some annoying dchecks 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_label_button.cc ('k') | ash/common/system/tray/tray_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_utils.h
diff --git a/ash/common/system/tray/tray_utils.h b/ash/common/system/tray/tray_utils.h
index beb89876031cebef18f24d76dc02550ea0dcab54..d1b869dab58f5ee57a3be419277da7145ffc6c6c 100644
--- a/ash/common/system/tray/tray_utils.h
+++ b/ash/common/system/tray/tray_utils.h
@@ -12,7 +12,9 @@
#include "base/strings/string16.h"
namespace views {
+class ButtonListener;
class Label;
+class LabelButton;
class Separator;
class View;
}
@@ -21,6 +23,18 @@ namespace ash {
class TrayItemView;
+// Creates a button for use in the system menu that only has a visible border
+// when being hovered/clicked. Caller assumes ownership.
+views::LabelButton* CreateTrayPopupBorderlessButton(
+ views::ButtonListener* listener,
+ const base::string16& text);
+
+// Creates a button for use in the system menu. For MD, this is a prominent text
+// button. For non-MD, this does the same thing as the above. Caller assumes
+// ownership.
+views::LabelButton* CreateTrayPopupButton(views::ButtonListener* listener,
+ const base::string16& text);
+
// Sets up a Label properly for the tray (sets color, font etc.).
void SetupLabelForTray(views::Label* label);
« no previous file with comments | « ash/common/system/tray/tray_popup_label_button.cc ('k') | ash/common/system/tray/tray_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698