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 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" |
11 #include "base/mac/scoped_cftyperef.h" | 11 #include "base/mac/scoped_cftyperef.h" |
12 #include "base/mac/sdk_forward_declarations.h" | 12 #include "base/mac/sdk_forward_declarations.h" |
13 #include "ui/native_theme/common_theme.h" | |
14 #import "skia/ext/skia_utils_mac.h" | 13 #import "skia/ext/skia_utils_mac.h" |
15 #include "third_party/skia/include/effects/SkGradientShader.h" | 14 #include "third_party/skia/include/effects/SkGradientShader.h" |
16 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
17 #include "ui/gfx/skia_util.h" | 16 #include "ui/gfx/skia_util.h" |
| 17 #include "ui/native_theme/common_theme.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 const SkColor kScrollerTrackGradientColors[] = { | 21 const SkColor kScrollerTrackGradientColors[] = { |
22 SkColorSetRGB(0xEF, 0xEF, 0xEF), | 22 SkColorSetRGB(0xEF, 0xEF, 0xEF), |
23 SkColorSetRGB(0xF9, 0xF9, 0xF9), | 23 SkColorSetRGB(0xF9, 0xF9, 0xF9), |
24 SkColorSetRGB(0xFD, 0xFD, 0xFD), | 24 SkColorSetRGB(0xFD, 0xFD, 0xFD), |
25 SkColorSetRGB(0xF6, 0xF6, 0xF6) }; | 25 SkColorSetRGB(0xF6, 0xF6, 0xF6) }; |
26 const SkColor kScrollerTrackInnerBorderColor = SkColorSetRGB(0xE4, 0xE4, 0xE4); | 26 const SkColor kScrollerTrackInnerBorderColor = SkColorSetRGB(0xE4, 0xE4, 0xE4); |
27 const SkColor kScrollerTrackOuterBorderColor = SkColorSetRGB(0xEF, 0xEF, 0xEF); | 27 const SkColor kScrollerTrackOuterBorderColor = SkColorSetRGB(0xEF, 0xEF, 0xEF); |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 set_scrollbar_button_length(0); | 363 set_scrollbar_button_length(0); |
364 SetScrollbarColors(kScrollerThumbColor, | 364 SetScrollbarColors(kScrollerThumbColor, |
365 kScrollerThumbHoverColor, | 365 kScrollerThumbHoverColor, |
366 kScrollerTrackGradientColors[0]); | 366 kScrollerTrackGradientColors[0]); |
367 } | 367 } |
368 | 368 |
369 NativeThemeMac::~NativeThemeMac() { | 369 NativeThemeMac::~NativeThemeMac() { |
370 } | 370 } |
371 | 371 |
372 } // namespace ui | 372 } // namespace ui |
OLD | NEW |