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

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

Issue 12315069: Mac: Update zoom bubble UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 7 years, 9 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
« no previous file with comments | « ui/native_theme/native_theme_mac.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "ui/native_theme/native_theme_mac.h"
6
7 #include "base/basictypes.h"
8 #include "ui/native_theme/common_theme.h"
9
10 namespace {
11
12 const SkColor kInvalidColorIdColor = SkColorSetRGB(255, 0, 128);
13 const SkColor kDialogBackgroundColor = SkColorSetRGB(251, 251, 251);
14
15 } // namespace
16
17 namespace ui {
18
19 // static
20 NativeTheme* NativeTheme::instance() {
21 return NativeThemeMac::instance();
22 }
23
24 // static
25 NativeThemeMac* NativeThemeMac::instance() {
26 CR_DEFINE_STATIC_LOCAL(NativeThemeMac, s_native_theme, ());
27 return &s_native_theme;
28 }
29
30 SkColor NativeThemeMac::GetSystemColor(ColorId color_id) const {
31 SkColor color;
32 if (CommonThemeGetSystemColor(color_id, &color))
33 return color;
34
35 switch (color_id) {
36 case kColorId_DialogBackground:
37 return kDialogBackgroundColor;
38 default:
39 NOTREACHED() << "Invalid color_id: " << color_id;
40 }
41
42 return kInvalidColorIdColor;
43 }
44
45 NativeThemeMac::NativeThemeMac() {
46 }
47
48 NativeThemeMac::~NativeThemeMac() {
49 }
50
51 } // namespace ui
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698