1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_MAC_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_MAC_H_
8 #include "ui/native_theme/fallback_theme.h"
9 #include "ui/native_theme/native_theme_export.h"
13 // Mac implementation of native theme support.
14 // TODO(tapted): This should not use FallbackTheme. http://crbug.com/379086.
15 class NativeThemeMac
: public FallbackTheme
{
17 static NativeThemeMac
* instance();
19 // Overridden from NativeTheme:
20 virtual SkColor
GetSystemColor(ColorId color_id
) const OVERRIDE
;
22 // Overridden from NativeThemeBase:
23 virtual void PaintScrollbarTrack(
27 const ScrollbarTrackExtraParams
& extra_params
,
28 const gfx::Rect
& rect
) const OVERRIDE
;
29 virtual void PaintScrollbarThumb(SkCanvas
* sk_canvas
,
32 const gfx::Rect
& rect
) const OVERRIDE
;
33 virtual void PaintScrollbarCorner(SkCanvas
* canvas
,
35 const gfx::Rect
& rect
) const OVERRIDE
;
36 virtual void PaintMenuPopupBackground(
38 const gfx::Size
& size
,
39 const MenuBackgroundExtraParams
& menu_background
) const OVERRIDE
;
40 virtual void PaintMenuItemBackground(
43 const gfx::Rect
& rect
,
44 const MenuListExtraParams
& menu_list
) const OVERRIDE
;
48 virtual ~NativeThemeMac();
50 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac
);
55 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_