summaryrefslogtreecommitdiffstats
path: root/ui/gfx
diff options
context:
space:
mode:
authorsaintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-20 23:17:19 +0000
committersaintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-20 23:17:19 +0000
commitb5eb0e91a4733f9806814e41b9470209b91d0aaf (patch)
treed6424be3ecfee4941fa75c6bd6ae2795f83ba519 /ui/gfx
parent8b788e3e23b32d6bc49256d42314a2f6c6ea78f1 (diff)
downloadchromium_src-b5eb0e91a4733f9806814e41b9470209b91d0aaf.zip
chromium_src-b5eb0e91a4733f9806814e41b9470209b91d0aaf.tar.gz
chromium_src-b5eb0e91a4733f9806814e41b9470209b91d0aaf.tar.bz2
Dup of Issue 7465011: Larger Combo box Hit Targets for TOUCH_UI
BUG=none TEST=none Review URL: http://codereview.chromium.org/7465012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93279 0039d316-1c4b-4281-b951-d872f2087c98
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,