Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / ui / base / default_theme_provider.h
blob173442deaa246cd58a08a14aa6ee332b342d89c6
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_
8 #include <vector>
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"
15 namespace ui {
16 class ResourceBundle;
19 namespace ui {
21 class UI_BASE_EXPORT DefaultThemeProvider : public ThemeProvider {
22 public:
23 DefaultThemeProvider();
24 ~DefaultThemeProvider() override;
26 // Overridden from ui::ThemeProvider:
27 bool UsingSystemTheme() const override;
28 gfx::ImageSkia* GetImageSkiaNamed(int id) const override;
29 SkColor GetColor(int id) const override;
30 int GetDisplayProperty(int id) const override;
31 bool ShouldUseNativeFrame() const override;
32 bool HasCustomImage(int id) const override;
33 base::RefCountedMemory* GetRawData(int id, ui::ScaleFactor scale_factor)
34 const override;
36 #if defined(OS_MACOSX)
37 NSImage* GetNSImageNamed(int id) const override;
38 NSColor* GetNSImageColorNamed(int id) const override;
39 NSColor* GetNSColor(int id) const override;
40 NSColor* GetNSColorTint(int id) const override;
41 NSGradient* GetNSGradient(int id) const override;
42 #endif
44 private:
45 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider);
48 } // namespace ui
50 #endif // UI_BASE_DEFAULT_THEME_PROVIDER_H_