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

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: use Background instead of a separate Part 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..67b1a60233363a200db988b228ae148ffc2550d4 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,10 @@ class NATIVE_THEME_EXPORT NativeThemeMac : public NativeThemeBase {
const gfx::Rect& rect,
const MenuItemExtraParams& menu_item) const override;
+ static skia::RefPtr<SkShader> GetButtonBackgroundShader(
tapted 2016/03/22 23:04:32 nit: should have a comment
Elly Fong-Jones 2016/03/23 18:07:44 Done.
+ State state,
+ int height);
+
private:
NativeThemeMac();
~NativeThemeMac() override;

Powered by Google App Engine
This is Rietveld 408576698