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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/default_theme_provider.h
===================================================================
--- views/widget/default_theme_provider.h (revision 28595)
+++ views/widget/default_theme_provider.h (working copy)
@@ -5,6 +5,8 @@
#ifndef VIEWS_DEFAULT_THEME_PROVIDER_H_
#define VIEWS_DEFAULT_THEME_PROVIDER_H_
+#include <vector>
+
#include "app/theme_provider.h"
#include "base/basictypes.h"
@@ -19,12 +21,15 @@
virtual ~DefaultThemeProvider() { };
// Overridden from ThemeProvider.
- virtual void Init(Profile* profile);
+ virtual void Init(Profile* profile) { }
virtual SkBitmap* GetBitmapNamed(int id);
- virtual SkColor GetColor(int id);
- virtual bool GetDisplayProperty(int id, int* result);
+ virtual SkColor GetColor(int id) {
+ // Return debugging-blue.
+ return 0xff0000ff;
+ }
+ virtual bool GetDisplayProperty(int id, int* result) { return false; }
virtual bool ShouldUseNativeFrame();
- virtual bool HasCustomImage(int id);
+ virtual bool HasCustomImage(int id) { return false; }
virtual bool GetRawData(int id, std::vector<unsigned char>* raw_data) {
return false;
}
« 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