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

Unified Diff: ui/native_theme/native_theme_mac.h

Issue 1569113002: MacViews: Style BUTTON_STYLE buttons using the "modern" UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: respond to comments Created 4 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 | « no previous file | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_mac.h
diff --git a/ui/native_theme/native_theme_mac.h b/ui/native_theme/native_theme_mac.h
index 43071749bb7636f30a85700607813c3f6dd9bbe0..deea30e3e7f6d4effad5bfc341dfcec47bf02ae1 100644
--- a/ui/native_theme/native_theme_mac.h
+++ b/ui/native_theme/native_theme_mac.h
@@ -16,6 +16,17 @@ class NATIVE_THEME_EXPORT NativeThemeMac : public NativeThemeBase {
public:
static const int kComboboxCornerRadius = 5;
+ // Type of gradient to use on a button background. Use HIGHLIGHTED for the
+ // default button of a window and all combobox controls, but only when the
+ // window is active.
+ enum class ButtonBackgroundType {
+ DISABLED,
+ HIGHLIGHTED,
+ NORMAL,
+ PRESSED,
+ COUNT
+ };
+
static NativeThemeMac* instance();
// Overridden from NativeTheme:
@@ -33,7 +44,8 @@ class NATIVE_THEME_EXPORT NativeThemeMac : public NativeThemeBase {
const MenuItemExtraParams& menu_item) const override;
// Creates a shader appropriate for painting the background of a button.
- static sk_sp<SkShader> GetButtonBackgroundShader(State state, int height);
+ static sk_sp<SkShader> GetButtonBackgroundShader(ButtonBackgroundType type,
+ int height);
private:
NativeThemeMac();
« no previous file with comments | « no previous file | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698