summaryrefslogtreecommitdiffstats
path: root/ui/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx')
-rw-r--r--ui/gfx/native_theme.h2
-rw-r--r--ui/gfx/native_theme_chromeos.cc8
-rw-r--r--ui/gfx/native_theme_chromeos.h2
3 files changed, 12 insertions, 0 deletions
diff --git a/ui/gfx/native_theme.h b/ui/gfx/native_theme.h
index 2f1ba70..ceab5c3 100644
--- a/ui/gfx/native_theme.h
+++ b/ui/gfx/native_theme.h
@@ -205,6 +205,8 @@ class UI_API NativeTheme {
const gfx::Rect& rect,
const ExtraParams& extra) const = 0;
+ virtual int GetPopupListBoxMinimumRowHeight() const { return 0; }
+
// Supports theme specific colors.
void SetScrollbarColors(unsigned inactive_color,
unsigned active_color,
diff --git a/ui/gfx/native_theme_chromeos.cc b/ui/gfx/native_theme_chromeos.cc
index a12b45f..22e6bbe 100644
--- a/ui/gfx/native_theme_chromeos.cc
+++ b/ui/gfx/native_theme_chromeos.cc
@@ -301,6 +301,14 @@ gfx::Size NativeThemeChromeos::GetPartSize(Part part,
return gfx::Size(width, height);
}
+int NativeThemeChromeos::GetPopupListBoxMinimumRowHeight() const {
+#if defined(TOUCH_UI)
+ return 60;
+#else
+ return 0;
+#endif
+}
+
void NativeThemeChromeos::PaintScrollbarTrack(
SkCanvas* canvas,
Part part,
diff --git a/ui/gfx/native_theme_chromeos.h b/ui/gfx/native_theme_chromeos.h
index 1e1b84f..609ecd7 100644
--- a/ui/gfx/native_theme_chromeos.h
+++ b/ui/gfx/native_theme_chromeos.h
@@ -22,6 +22,8 @@ class NativeThemeChromeos : public gfx::NativeThemeLinux {
State state,
const ExtraParams& extra) const OVERRIDE;
+ virtual int GetPopupListBoxMinimumRowHeight() const OVERRIDE;
+
// NativeThemeLinux overrides
virtual void PaintScrollbarTrack(SkCanvas* canvas,
Part part, State state,