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

Unified Diff: views/widget/default_theme_provider.cc

Issue 6622002: Do all OOLing in the views code. linux_views now builds clean with the clang plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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
Index: views/widget/default_theme_provider.cc
diff --git a/views/widget/default_theme_provider.cc b/views/widget/default_theme_provider.cc
index 8a03bab257ce813dc869754704857658265dfcaf..7d2dfec26cfa32acf23aaffd96159434f98363d4 100644
--- a/views/widget/default_theme_provider.cc
+++ b/views/widget/default_theme_provider.cc
@@ -12,10 +12,25 @@
namespace views {
+DefaultThemeProvider::DefaultThemeProvider() {}
+
+DefaultThemeProvider::~DefaultThemeProvider() {}
+
+void DefaultThemeProvider::Init(Profile* profile) {}
+
SkBitmap* DefaultThemeProvider::GetBitmapNamed(int id) const {
return ResourceBundle::GetSharedInstance().GetBitmapNamed(id);
}
+SkColor DefaultThemeProvider::GetColor(int id) const {
+ // Return debugging-blue.
+ return 0xff0000ff;
+}
+
+bool DefaultThemeProvider::GetDisplayProperty(int id, int* result) const {
+ return false;
+}
+
bool DefaultThemeProvider::ShouldUseNativeFrame() const {
#if defined(OS_WIN)
return WidgetWin::IsAeroGlassEnabled();
@@ -24,4 +39,12 @@ bool DefaultThemeProvider::ShouldUseNativeFrame() const {
#endif
}
+bool DefaultThemeProvider::HasCustomImage(int id) const {
+ return false;
+}
+
+RefCountedMemory* DefaultThemeProvider::GetRawData(int id) const {
+ return NULL;
+}
+
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698