Bug 520176: Add touch-enabled support for Hildon, r=roc

This commit is contained in:
Mark Finkle 2009-10-04 21:31:25 -04:00
parent 8de950cafb
commit 97a66d45d1

View File

@ -572,10 +572,18 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
case eMetric_DWMCompositor:
case eMetric_WindowsClassic:
case eMetric_WindowsDefaultTheme:
case eMetric_TouchEnabled:
aMetric = 0;
res = NS_ERROR_NOT_IMPLEMENTED;
break;
case eMetric_TouchEnabled:
#ifdef MOZ_PLATFORM_HILDON
// All Hildon devices are touch-enabled
aMetric = 1;
#else
aMetric = 0;
res = NS_ERROR_NOT_IMPLEMENTED;
#endif
break;
case eMetric_MacGraphiteTheme:
aMetric = 0;
res = NS_ERROR_NOT_IMPLEMENTED;