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

Side by Side Diff: ui/native_theme/native_theme_mac.mm

Issue 309483009: Remaining bits to get views_examples_with_content_exe to work on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to master@r275900 Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698