1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/native_theme/native_theme_mac.h"
7 #include "base/basictypes.h"
8 #include "ui/native_theme/common_theme.h"
12 const SkColor kInvalidColorIdColor = SkColorSetRGB(255, 0, 128);
13 const SkColor kDialogBackgroundColor = SkColorSetRGB(251, 251, 251);
20 NativeTheme* NativeTheme::instance() {
21 return NativeThemeMac::instance();
25 NativeThemeMac* NativeThemeMac::instance() {
26 CR_DEFINE_STATIC_LOCAL(NativeThemeMac, s_native_theme, ());
27 return &s_native_theme;
30 SkColor NativeThemeMac::GetSystemColor(ColorId color_id) const {
32 if (CommonThemeGetSystemColor(color_id, &color))
36 case kColorId_DialogBackground:
37 return kDialogBackgroundColor;
39 NOTREACHED() << "Invalid color_id: " << color_id;
42 return kInvalidColorIdColor;
45 NativeThemeMac::NativeThemeMac() {
48 NativeThemeMac::~NativeThemeMac() {