diff options
-rw-r--r-- | ui/gfx/native_theme_chromeos.cc | 4 | ||||
-rw-r--r-- | ui/gfx/native_theme_linux.cc | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ui/gfx/native_theme_chromeos.cc b/ui/gfx/native_theme_chromeos.cc index c1477bd..a12b45f 100644 --- a/ui/gfx/native_theme_chromeos.cc +++ b/ui/gfx/native_theme_chromeos.cc @@ -249,7 +249,11 @@ gfx::Size NativeThemeChromeos::GetPartSize(Part part, // This function might be called from Worker process during html layout // without calling GfxModule::SetResourceProvider. So using dimension // constants instead of getting it from resource images. +#if defined(TOUCH_UI) + static const int kScrollbarWidth = 0; +#else static const int kScrollbarWidth = 13; +#endif static const int kScrollbarArrowUpHeight = 12; static const int kScrollbarArrowDownHeight = 12; diff --git a/ui/gfx/native_theme_linux.cc b/ui/gfx/native_theme_linux.cc index 0dde9f8..5ab5fb0 100644 --- a/ui/gfx/native_theme_linux.cc +++ b/ui/gfx/native_theme_linux.cc @@ -17,7 +17,11 @@ namespace gfx { unsigned int NativeThemeLinux::button_length_ = 14; +#if defined(TOUCH_UI) +unsigned int NativeThemeLinux::scrollbar_width_ = 0; +#else unsigned int NativeThemeLinux::scrollbar_width_ = 15; +#endif // These are the default dimensions of radio buttons and checkboxes. static const int kCheckboxAndRadioWidth = 13; |