| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gfx/native_theme.h" | 5 #include "ui/gfx/native_theme.h" |
| 6 | 6 |
| 7 #include "ui/gfx/size.h" | 7 #include "ui/gfx/size.h" |
| 8 | 8 |
| 9 namespace gfx { | 9 namespace gfx { |
| 10 | 10 |
| 11 unsigned int NativeTheme::thumb_inactive_color_ = 0xeaeaea; | 11 unsigned int NativeTheme::thumb_inactive_color_ = 0xeaeaea; |
| 12 unsigned int NativeTheme::thumb_active_color_ = 0xf4f4f4; | 12 unsigned int NativeTheme::thumb_active_color_ = 0xf4f4f4; |
| 13 unsigned int NativeTheme::track_color_ = 0xd3d3d3; | 13 unsigned int NativeTheme::track_color_ = 0xd3d3d3; |
| 14 | 14 |
| 15 void NativeTheme::SetScrollbarColors(unsigned inactive_color, | 15 void NativeTheme::SetScrollbarColors(unsigned inactive_color, |
| 16 unsigned active_color, | 16 unsigned active_color, |
| 17 unsigned track_color) const { | 17 unsigned track_color) const { |
| 18 thumb_inactive_color_ = inactive_color; | 18 thumb_inactive_color_ = inactive_color; |
| 19 thumb_active_color_ = active_color; | 19 thumb_active_color_ = active_color; |
| 20 track_color_ = track_color; | 20 track_color_ = track_color; |
| 21 } | 21 } |
| 22 | 22 |
| 23 // NativeTheme::instance() is implemented in the platform specific source files, | 23 // NativeTheme::instance() is implemented in the platform specific source files, |
| 24 // such as native_theme_win.cc or native_theme_linux.cc | 24 // such as native_theme_win.cc or native_theme_linux.cc |
| 25 | 25 |
| 26 } // namespace gfx | 26 } // namespace gfx |
| OLD | NEW |