1 // Copyright (c) 2012 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_BASE_DEFAULT_THEME_PROVIDER_H_
6 #define UI_BASE_DEFAULT_THEME_PROVIDER_H_
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "ui/base/theme_provider.h"
13 #include "ui/base/ui_base_export.h"
21 class UI_BASE_EXPORT DefaultThemeProvider
: public ThemeProvider
{
23 DefaultThemeProvider();
24 virtual ~DefaultThemeProvider();
26 // Overridden from ui::ThemeProvider:
27 virtual bool UsingNativeTheme() const OVERRIDE
;
28 virtual gfx::ImageSkia
* GetImageSkiaNamed(int id
) const OVERRIDE
;
29 virtual SkColor
GetColor(int id
) const OVERRIDE
;
30 virtual int GetDisplayProperty(int id
) const OVERRIDE
;
31 virtual bool ShouldUseNativeFrame() const OVERRIDE
;
32 virtual bool HasCustomImage(int id
) const OVERRIDE
;
33 virtual base::RefCountedMemory
* GetRawData(
35 ui::ScaleFactor scale_factor
) const OVERRIDE
;
37 #if defined(OS_MACOSX) && !defined(TOOLKIT_VIEWS)
38 virtual NSImage
* GetNSImageNamed(int id
) const OVERRIDE
;
39 virtual NSColor
* GetNSImageColorNamed(int id
) const OVERRIDE
;
40 virtual NSColor
* GetNSColor(int id
) const OVERRIDE
;
41 virtual NSColor
* GetNSColorTint(int id
) const OVERRIDE
;
42 virtual NSGradient
* GetNSGradient(int id
) const OVERRIDE
;
46 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider
);
51 #endif // UI_BASE_DEFAULT_THEME_PROVIDER_H_