| Index: ui/gfx/native_theme_base.cc
|
| diff --git a/ui/gfx/native_theme_base.cc b/ui/gfx/native_theme_base.cc
|
| index 95ba5aa1e681b1856e4f246b1c6837bab2157c68..3a407fd098426aeb6a7d5d5b3233cc86af082b5e 100644
|
| --- a/ui/gfx/native_theme_base.cc
|
| +++ b/ui/gfx/native_theme_base.cc
|
| @@ -14,6 +14,14 @@
|
| #include "ui/gfx/rect.h"
|
| #include "ui/gfx/size.h"
|
|
|
| +namespace {
|
| +
|
| +// Hardcoded colors for use when there is no system theme (Aura, ChromeOS).
|
| +const SkColor kDefaultDialogBackgroundColor = SkColorSetRGB(200, 200, 200);
|
| +const SkColor kInvalidColorIdColor = SkColorSetRGB(255, 0, 128);
|
| +
|
| +} // namespace
|
| +
|
| namespace gfx {
|
|
|
| unsigned int NativeThemeBase::button_length_ = 14;
|
| @@ -991,4 +999,17 @@ SkColor NativeThemeBase::OutlineColor(SkScalar* hsv1, SkScalar* hsv2) const {
|
| return SaturateAndBrighten(hsv2, -0.2f, diff);
|
| }
|
|
|
| +SkColor NativeThemeBase::GetSystemColor(ColorId color_id) const {
|
| + // This implementation returns hardcoded colors. It's used by NativeThemeAura
|
| + // and NativeThemeChromeos and overridden by NativeThemeGtk.
|
| + switch (color_id) {
|
| + case kColorId_DialogBackground:
|
| + return kDefaultDialogBackgroundColor;
|
| + default:
|
| + NOTREACHED() << "Invalid color_id: " << color_id;
|
| + break;
|
| + }
|
| + return kInvalidColorIdColor;
|
| +}
|
| +
|
| } // namespace gfx
|
|
|