OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.h" | 5 #include "ui/native_theme/native_theme.h" |
6 | 6 |
| 7 #include <cstring> |
| 8 |
7 #include "ui/native_theme/native_theme_observer.h" | 9 #include "ui/native_theme/native_theme_observer.h" |
8 | 10 |
9 namespace ui { | 11 namespace ui { |
10 | 12 |
| 13 NativeTheme::ExtraParams::ExtraParams() { |
| 14 memset(this, 0, sizeof(*this)); |
| 15 } |
| 16 |
11 void NativeTheme::SetScrollbarColors(unsigned inactive_color, | 17 void NativeTheme::SetScrollbarColors(unsigned inactive_color, |
12 unsigned active_color, | 18 unsigned active_color, |
13 unsigned track_color) { | 19 unsigned track_color) { |
14 thumb_inactive_color_ = inactive_color; | 20 thumb_inactive_color_ = inactive_color; |
15 thumb_active_color_ = active_color; | 21 thumb_active_color_ = active_color; |
16 track_color_ = track_color; | 22 track_color_ = track_color; |
17 } | 23 } |
18 | 24 |
19 void NativeTheme::AddObserver(NativeThemeObserver* observer) { | 25 void NativeTheme::AddObserver(NativeThemeObserver* observer) { |
20 native_theme_observers_.AddObserver(observer); | 26 native_theme_observers_.AddObserver(observer); |
(...skipping 10 matching lines...) Expand all Loading... |
31 | 37 |
32 NativeTheme::NativeTheme() | 38 NativeTheme::NativeTheme() |
33 : thumb_inactive_color_(0xeaeaea), | 39 : thumb_inactive_color_(0xeaeaea), |
34 thumb_active_color_(0xf4f4f4), | 40 thumb_active_color_(0xf4f4f4), |
35 track_color_(0xd3d3d3) { | 41 track_color_(0xd3d3d3) { |
36 } | 42 } |
37 | 43 |
38 NativeTheme::~NativeTheme() {} | 44 NativeTheme::~NativeTheme() {} |
39 | 45 |
40 } // namespace ui | 46 } // namespace ui |
OLD | NEW |