summaryrefslogtreecommitdiffstats
path: root/ui/views/widget/default_theme_provider.h
blob: 7119c598e721bc1f12d5cf99b2443447189766ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_VIEWS_WIDGET_DEFAULT_THEME_PROVIDER_H_
#define UI_VIEWS_WIDGET_DEFAULT_THEME_PROVIDER_H_
#pragma once

#include <vector>

#include "base/basictypes.h"
#include "ui/base/theme_provider.h"
#include "views/views_export.h"

class Profile;

namespace ui {
class ResourceBundle;
}
using ui::ResourceBundle;

namespace views {

class VIEWS_EXPORT DefaultThemeProvider : public ui::ThemeProvider {
 public:
  DefaultThemeProvider();
  virtual ~DefaultThemeProvider();

  // Overridden from ui::ThemeProvider.
  virtual void Init(Profile* profile);
  virtual SkBitmap* GetBitmapNamed(int id) const;
  virtual SkColor GetColor(int id) const;
  virtual bool GetDisplayProperty(int id, int* result) const;
  virtual bool ShouldUseNativeFrame() const;
  virtual bool HasCustomImage(int id) const;
  virtual RefCountedMemory* GetRawData(int id) const;

 private:
  DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider);
};

}  // namespace views

#endif  // UI_VIEWS_WIDGET_DEFAULT_THEME_PROVIDER_H_