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

Side by Side Diff: views/widget/default_theme_provider.h

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/run_all_unittests.cc ('k') | views/widget/default_theme_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VIEWS_DEFAULT_THEME_PROVIDER_H_ 5 #ifndef VIEWS_DEFAULT_THEME_PROVIDER_H_
6 #define VIEWS_DEFAULT_THEME_PROVIDER_H_ 6 #define VIEWS_DEFAULT_THEME_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "ui/base/theme_provider.h" 12 #include "ui/base/theme_provider.h"
13 13
14 class Profile; 14 class Profile;
15
16 namespace ui {
15 class ResourceBundle; 17 class ResourceBundle;
18 }
19 using ui::ResourceBundle;
16 20
17 namespace views { 21 namespace views {
18 22
19 class DefaultThemeProvider : public ui::ThemeProvider { 23 class DefaultThemeProvider : public ui::ThemeProvider {
20 public: 24 public:
21 DefaultThemeProvider() { }; 25 DefaultThemeProvider() { };
22 virtual ~DefaultThemeProvider() { }; 26 virtual ~DefaultThemeProvider() { };
23 27
24 // Overridden from ui::ThemeProvider. 28 // Overridden from ui::ThemeProvider.
25 virtual void Init(Profile* profile) { } 29 virtual void Init(Profile* profile) { }
26 virtual SkBitmap* GetBitmapNamed(int id) const; 30 virtual SkBitmap* GetBitmapNamed(int id) const;
27 virtual SkColor GetColor(int id) const { 31 virtual SkColor GetColor(int id) const {
28 // Return debugging-blue. 32 // Return debugging-blue.
29 return 0xff0000ff; 33 return 0xff0000ff;
30 } 34 }
31 virtual bool GetDisplayProperty(int id, int* result) const { return false; } 35 virtual bool GetDisplayProperty(int id, int* result) const { return false; }
32 virtual bool ShouldUseNativeFrame() const; 36 virtual bool ShouldUseNativeFrame() const;
33 virtual bool HasCustomImage(int id) const { return false; } 37 virtual bool HasCustomImage(int id) const { return false; }
34 virtual RefCountedMemory* GetRawData(int id) const { return NULL; } 38 virtual RefCountedMemory* GetRawData(int id) const { return NULL; }
35 39
36 private: 40 private:
37 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); 41 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider);
38 }; 42 };
39 43
40 } // namespace views 44 } // namespace views
41 45
42 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_ 46 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « views/run_all_unittests.cc ('k') | views/widget/default_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698