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

Unified Diff: ui/native_theme/native_theme_mac.h

Issue 1819443002: MacViews: draw combobox arrow backgrounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix linux build Created 4 years, 9 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/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 6fe3f61d1c47405df19cfb0d264944203507b706..46d219e82bb0753cea1496011155a74cbb0a78c2 100644
--- a/ui/native_theme/native_theme_mac.h
+++ b/ui/native_theme/native_theme_mac.h
@@ -14,6 +14,8 @@ namespace ui {
// Mac implementation of native theme support.
class NATIVE_THEME_EXPORT NativeThemeMac : public NativeThemeBase {
public:
+ static const int kComboboxCornerRadius = 5;
+
static NativeThemeMac* instance();
// Overridden from NativeTheme:
@@ -30,6 +32,11 @@ class NATIVE_THEME_EXPORT NativeThemeMac : public NativeThemeBase {
const gfx::Rect& rect,
const MenuItemExtraParams& menu_item) const override;
+ // Creates a shader appropriate for painting the background of a button.
+ static skia::RefPtr<SkShader> GetButtonBackgroundShader(
+ State state,
+ int height);
+
private:
NativeThemeMac();
~NativeThemeMac() override;

Powered by Google App Engine
This is Rietveld 408576698