[email protected] | 990e622 | 2012-11-16 13:31:18 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #include "ui/native_theme/native_theme.h" | ||||
6 | |||||
[email protected] | a673f35 | 2012-11-20 00:52:29 | [diff] [blame] | 7 | namespace ui { |
[email protected] | 990e622 | 2012-11-16 13:31:18 | [diff] [blame] | 8 | |
9 | void NativeTheme::SetScrollbarColors(unsigned inactive_color, | ||||
10 | unsigned active_color, | ||||
11 | unsigned track_color) { | ||||
12 | thumb_inactive_color_ = inactive_color; | ||||
13 | thumb_active_color_ = active_color; | ||||
14 | track_color_ = track_color; | ||||
15 | } | ||||
16 | |||||
17 | // NativeTheme::instance() is implemented in the platform specific source files, | ||||
18 | // such as native_theme_win.cc or native_theme_linux.cc | ||||
19 | |||||
[email protected] | a673f35 | 2012-11-20 00:52:29 | [diff] [blame] | 20 | NativeTheme::NativeTheme() |
21 | : thumb_inactive_color_(0xeaeaea), | ||||
22 | thumb_active_color_(0xf4f4f4), | ||||
23 | track_color_(0xd3d3d3) { | ||||
24 | } | ||||
25 | |||||
[email protected] | 7f98def | 2012-12-10 22:04:17 | [diff] [blame] | 26 | NativeTheme::~NativeTheme() {} |
27 | |||||
[email protected] | 990e622 | 2012-11-16 13:31:18 | [diff] [blame] | 28 | } // namespace ui |