| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/native_theme/native_theme_mac.h" | 5 #include "ui/native_theme/native_theme_mac.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "ui/native_theme/common_theme.h" | 8 #include "ui/native_theme/common_theme.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 SkColor NativeThemeMac::GetSystemColor(ColorId color_id) const { | 30 SkColor NativeThemeMac::GetSystemColor(ColorId color_id) const { |
| 31 SkColor color; | 31 SkColor color; |
| 32 if (CommonThemeGetSystemColor(color_id, &color)) | 32 if (CommonThemeGetSystemColor(color_id, &color)) |
| 33 return color; | 33 return color; |
| 34 | 34 |
| 35 switch (color_id) { | 35 switch (color_id) { |
| 36 case kColorId_DialogBackground: | 36 case kColorId_DialogBackground: |
| 37 return kDialogBackgroundColor; | 37 return kDialogBackgroundColor; |
| 38 default: | 38 default: |
| 39 NOTREACHED() << "Invalid color_id: " << color_id; | 39 NOTIMPLEMENTED() << " Invalid color_id: " << color_id; |
| 40 return FallbackTheme::GetSystemColor(color_id); |
| 40 } | 41 } |
| 41 | 42 |
| 42 return kInvalidColorIdColor; | 43 return kInvalidColorIdColor; |
| 43 } | 44 } |
| 44 | 45 |
| 45 NativeThemeMac::NativeThemeMac() { | 46 NativeThemeMac::NativeThemeMac() { |
| 46 } | 47 } |
| 47 | 48 |
| 48 NativeThemeMac::~NativeThemeMac() { | 49 NativeThemeMac::~NativeThemeMac() { |
| 49 } | 50 } |
| 50 | 51 |
| 51 } // namespace ui | 52 } // namespace ui |
| OLD | NEW |