Index: ui/gfx/native_theme_gtk.cc |
diff --git a/ui/gfx/native_theme_gtk.cc b/ui/gfx/native_theme_gtk.cc |
index ded99849de5a17b469275bbbd38ab6b7ddd27e36..fa9aa2e41303229e1aa4410061a74b4099448612 100644 |
--- a/ui/gfx/native_theme_gtk.cc |
+++ b/ui/gfx/native_theme_gtk.cc |
@@ -4,10 +4,18 @@ |
#include "ui/gfx/native_theme_gtk.h" |
+#include <gtk/gtk.h> |
+ |
#include "base/basictypes.h" |
+#include "base/logging.h" |
+#include "ui/gfx/skia_utils_gtk.h" |
namespace gfx { |
+namespace { |
+const SkColor kInvalidColorIdColor = SkColorSetRGB(255, 0, 128); |
+} |
James Cook
2011/11/19 03:02:46
} // namespace
|
+ |
// static |
const NativeTheme* NativeTheme::instance() { |
return NativeThemeGtk::instance(); |
@@ -19,6 +27,18 @@ const NativeThemeGtk* NativeThemeGtk::instance() { |
return &s_native_theme; |
} |
+SkColor NativeThemeGtk::GetSystemColor(ColorId color_id) const { |
+ switch (color_id) { |
+ case kDialogBackgroundColorId: |
+ return gfx::GdkColorToSkColor( |
+ gtk_widget_get_default_style()->bg[GTK_STATE_NORMAL]); |
+ default: |
+ NOTREACHED() << "Invalid color_id: " << color_id; |
+ break; |
+ } |
+ return kInvalidColorIdColor; |
+} |
+ |
NativeThemeGtk::NativeThemeGtk() { |
} |