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

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

Issue 2506133003: [ash-md] Allows ToggleButton to have a border and adds focus rectangle (Closed)
Patch Set: [ash-md] Allows ToggleButton to have a border and adds focus rectangle (comments) 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
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 910acb36e56d3c862feb8043eb24c8078d6d4e26..404c23c9143ff65b7b97a1048cf6b4961ff3e259 100644
--- a/ash/common/system/tray/tray_popup_utils.h
+++ b/ash/common/system/tray/tray_popup_utils.h
@@ -25,6 +25,7 @@ class LayoutManager;
class Separator;
class Slider;
class SliderListener;
+class ToggleButton;
} // namespace views
namespace ash {
@@ -91,6 +92,11 @@ class TrayPopupUtils {
// with a FillLayout.
static views::Slider* CreateSlider(views::SliderListener* listener);
+ // Returns a ToggleButton that has been configured for system menu layout.
+ static views::ToggleButton* CreateToggleButton(
+ views::ButtonListener* listener,
+ int accessible_name_id);
+
// Sets up |view| to be a sticky header in a tray detail scroll view.
static void ConfigureAsStickyHeader(views::View* view);

Powered by Google App Engine
This is Rietveld 408576698