added a metric for determining if xul popups should be allowed to display over the menubar/taskbar. r=hyatt.

This commit is contained in:
pinkerton%netscape.com 2000-03-22 02:55:12 +00:00
Родитель e10bf39827
Коммит 3b1bbcedf8
4 изменённых файлов: 15 добавлений и 1 удалений

Просмотреть файл

@ -110,7 +110,8 @@ public:
eMetric_CaretBlinkTime, // default, may be overriden by OS
eMetric_CaretWidthTwips,
eMetric_SubmenuDelay
eMetric_SubmenuDelay,
eMetric_MenusCanOverlapOSBar // can popups overlap menu/task bar?
} nsMetricID;
typedef enum {

Просмотреть файл

@ -264,6 +264,10 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
case eMetric_SubmenuDelay:
aMetric = 200;
break;
case eMetric_MenusCanOverlapOSBar:
// we want XUL popups to be able to overlap the task bar.
aMetric = 1;
break;
default:
aMetric = 0;
res = NS_ERROR_FAILURE;

Просмотреть файл

@ -250,6 +250,10 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
case eMetric_SubmenuDelay:
aMetric = 200;
break;
case eMetric_MenusCanOverlapOSBar:
// xul popups are not allowed to overlap the menubar.
aMetric = 0;
break;
default:
aMetric = 0;
res = NS_ERROR_FAILURE;

Просмотреть файл

@ -275,6 +275,11 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
aMetric = sSubmenuDelay;
}
break;
case eMetric_MenusCanOverlapOSBar:
// we want XUL popups to be able to overlap the task bar.
aMetric = 1;
break;
default:
aMetric = -1;
res = NS_ERROR_FAILURE;