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

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

Issue 272033: Misc. cleanup for theme provider code, including:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
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 7
8 #include <vector>
9
8 #include "app/theme_provider.h" 10 #include "app/theme_provider.h"
9 #include "base/basictypes.h" 11 #include "base/basictypes.h"
10 12
11 class Profile; 13 class Profile;
12 class ResourceBundle; 14 class ResourceBundle;
13 15
14 namespace views { 16 namespace views {
15 17
16 class DefaultThemeProvider : public ThemeProvider { 18 class DefaultThemeProvider : public ThemeProvider {
17 public: 19 public:
18 DefaultThemeProvider() { }; 20 DefaultThemeProvider() { };
19 virtual ~DefaultThemeProvider() { }; 21 virtual ~DefaultThemeProvider() { };
20 22
21 // Overridden from ThemeProvider. 23 // Overridden from ThemeProvider.
22 virtual void Init(Profile* profile); 24 virtual void Init(Profile* profile) { }
23 virtual SkBitmap* GetBitmapNamed(int id); 25 virtual SkBitmap* GetBitmapNamed(int id);
24 virtual SkColor GetColor(int id); 26 virtual SkColor GetColor(int id) {
25 virtual bool GetDisplayProperty(int id, int* result); 27 // Return debugging-blue.
28 return 0xff0000ff;
29 }
30 virtual bool GetDisplayProperty(int id, int* result) { return false; }
26 virtual bool ShouldUseNativeFrame(); 31 virtual bool ShouldUseNativeFrame();
27 virtual bool HasCustomImage(int id); 32 virtual bool HasCustomImage(int id) { return false; }
28 virtual bool GetRawData(int id, std::vector<unsigned char>* raw_data) { 33 virtual bool GetRawData(int id, std::vector<unsigned char>* raw_data) {
29 return false; 34 return false;
30 } 35 }
31 36
32 private: 37 private:
33 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); 38 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider);
34 }; 39 };
35 40
36 } // namespace views 41 } // namespace views
37 42
38 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_ 43 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/gtk_theme_provider_unittest.cc ('k') | views/widget/default_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698