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 #include <stddef.h> |
8 | 9 |
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 "base/macros.h" |
13 #import "skia/ext/skia_utils_mac.h" | 14 #import "skia/ext/skia_utils_mac.h" |
14 #include "third_party/skia/include/effects/SkGradientShader.h" | 15 #include "third_party/skia/include/effects/SkGradientShader.h" |
15 #include "ui/gfx/geometry/rect.h" | 16 #include "ui/gfx/geometry/rect.h" |
16 #include "ui/gfx/skia_util.h" | 17 #include "ui/gfx/skia_util.h" |
17 #include "ui/native_theme/common_theme.h" | 18 #include "ui/native_theme/common_theme.h" |
18 | 19 |
19 namespace { | 20 namespace { |
20 | 21 |
21 const SkColor kScrollerTrackGradientColors[] = { | 22 const SkColor kScrollerTrackGradientColors[] = { |
22 SkColorSetRGB(0xEF, 0xEF, 0xEF), | 23 SkColorSetRGB(0xEF, 0xEF, 0xEF), |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 set_scrollbar_button_length(0); | 409 set_scrollbar_button_length(0); |
409 SetScrollbarColors(kScrollerThumbColor, | 410 SetScrollbarColors(kScrollerThumbColor, |
410 kScrollerThumbHoverColor, | 411 kScrollerThumbHoverColor, |
411 kScrollerTrackGradientColors[0]); | 412 kScrollerTrackGradientColors[0]); |
412 } | 413 } |
413 | 414 |
414 NativeThemeMac::~NativeThemeMac() { | 415 NativeThemeMac::~NativeThemeMac() { |
415 } | 416 } |
416 | 417 |
417 } // namespace ui | 418 } // namespace ui |
OLD | NEW |