| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "gfx/native_theme_linux.h" | 5 #include "ui/gfx/native_theme_linux.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "gfx/codec/png_codec.h" | |
| 11 #include "gfx/color_utils.h" | |
| 12 #include "gfx/gfx_module.h" | |
| 13 #include "gfx/size.h" | |
| 14 #include "gfx/rect.h" | |
| 15 #include "grit/gfx_resources.h" | 10 #include "grit/gfx_resources.h" |
| 16 #include "third_party/skia/include/effects/SkGradientShader.h" | 11 #include "third_party/skia/include/effects/SkGradientShader.h" |
| 12 #include "ui/gfx/codec/png_codec.h" |
| 13 #include "ui/gfx/color_utils.h" |
| 14 #include "ui/gfx/gfx_module.h" |
| 15 #include "ui/gfx/rect.h" |
| 16 #include "ui/gfx/size.h" |
| 17 | 17 |
| 18 namespace gfx { | 18 namespace gfx { |
| 19 | 19 |
| 20 unsigned int NativeThemeLinux::button_length_ = 14; | 20 unsigned int NativeThemeLinux::button_length_ = 14; |
| 21 unsigned int NativeThemeLinux::scrollbar_width_ = 15; | 21 unsigned int NativeThemeLinux::scrollbar_width_ = 15; |
| 22 unsigned int NativeThemeLinux::thumb_inactive_color_ = 0xeaeaea; | 22 unsigned int NativeThemeLinux::thumb_inactive_color_ = 0xeaeaea; |
| 23 unsigned int NativeThemeLinux::thumb_active_color_ = 0xf4f4f4; | 23 unsigned int NativeThemeLinux::thumb_active_color_ = 0xf4f4f4; |
| 24 unsigned int NativeThemeLinux::track_color_ = 0xd3d3d3; | 24 unsigned int NativeThemeLinux::track_color_ = 0xd3d3d3; |
| 25 | 25 |
| 26 // These are the default dimensions of radio buttons and checkboxes. | 26 // These are the default dimensions of radio buttons and checkboxes. |
| (...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 | 932 |
| 933 void NativeThemeLinux::SetScrollbarColors(unsigned inactive_color, | 933 void NativeThemeLinux::SetScrollbarColors(unsigned inactive_color, |
| 934 unsigned active_color, | 934 unsigned active_color, |
| 935 unsigned track_color) const { | 935 unsigned track_color) const { |
| 936 thumb_inactive_color_ = inactive_color; | 936 thumb_inactive_color_ = inactive_color; |
| 937 thumb_active_color_ = active_color; | 937 thumb_active_color_ = active_color; |
| 938 track_color_ = track_color; | 938 track_color_ = track_color; |
| 939 } | 939 } |
| 940 | 940 |
| 941 } // namespace gfx | 941 } // namespace gfx |
| OLD | NEW |