зеркало из https://github.com/mozilla/pjs.git
Bug 544208 - eMetric_TouchEnabled should be true on maemo/qt. r=mfinkle
This commit is contained in:
Родитель
ba67b647d6
Коммит
fd338457d1
|
@ -476,8 +476,17 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID,PRInt32 &aMetric)
|
|||
aMetric = eMetric_ScrollThumbStyleProportional;
|
||||
break;
|
||||
|
||||
case eMetric_WindowsDefaultTheme:
|
||||
case eMetric_TouchEnabled:
|
||||
#ifdef MOZ_PLATFORM_MAEMO
|
||||
// All Hildon devices are touch-enabled
|
||||
aMetric = 1;
|
||||
#else
|
||||
aMetric = 0;
|
||||
res = NS_ERROR_NOT_IMPLEMENTED;
|
||||
#endif
|
||||
break;
|
||||
|
||||
case eMetric_WindowsDefaultTheme:
|
||||
case eMetric_MaemoClassic:
|
||||
aMetric = 0;
|
||||
res = NS_ERROR_NOT_IMPLEMENTED;
|
||||
|
|
Загрузка…
Ссылка в новой задаче