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

Unified Diff: ui/views/style/platform_style.h

Issue 1904753002: MenuButton: support Mac look & feel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add basic tests Created 4 years, 7 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: ui/views/style/platform_style.h
diff --git a/ui/views/style/platform_style.h b/ui/views/style/platform_style.h
index 97f697e4fd4e2f2e4e9e41137453c1b8601fbaca..c3f61377c69a1caeb6906ac7aca299c5bee47017 100644
--- a/ui/views/style/platform_style.h
+++ b/ui/views/style/platform_style.h
@@ -49,13 +49,24 @@ class VIEWS_EXPORT PlatformStyle {
static std::unique_ptr<FocusableBorder> CreateComboboxBorder();
// Creates the appropriate background for a Combobox.
- static std::unique_ptr<Background> CreateComboboxBackground();
+ static std::unique_ptr<Background> CreateComboboxBackground(
+ int shoulder_width);
// Creates the default label button border for the given |style|. Used when a
// custom default border is not provided for a particular LabelButton class.
static std::unique_ptr<LabelButtonBorder> CreateLabelButtonBorder(
Button::ButtonStyle style);
+ // Creates an ImageSkia containing the image to use for the menubutton arrow.
+ static gfx::ImageSkia CreateMenuButtonArrow(bool is_enabled);
+
+ // Create the appropriate background for a MenuButton.
+ static std::unique_ptr<Background> CreateMenuButtonBackground(
+ int shoulder_width);
+
+ // Create the appropriate border for a MenuButton.
+ static std::unique_ptr<FocusableBorder> CreateMenuButtonBorder();
+
// Creates the default scrollbar for the given orientation.
static std::unique_ptr<ScrollBar> CreateScrollBar(bool is_horizontal);

Powered by Google App Engine
This is Rietveld 408576698