зеркало из https://github.com/mozilla/gecko-dev.git
added a metric for determining if xul popups should be allowed to display over the menubar/taskbar. r=hyatt.
This commit is contained in:
Родитель
e10bf39827
Коммит
3b1bbcedf8
|
@ -110,7 +110,8 @@ public:
|
||||||
|
|
||||||
eMetric_CaretBlinkTime, // default, may be overriden by OS
|
eMetric_CaretBlinkTime, // default, may be overriden by OS
|
||||||
eMetric_CaretWidthTwips,
|
eMetric_CaretWidthTwips,
|
||||||
eMetric_SubmenuDelay
|
eMetric_SubmenuDelay,
|
||||||
|
eMetric_MenusCanOverlapOSBar // can popups overlap menu/task bar?
|
||||||
} nsMetricID;
|
} nsMetricID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
|
@ -264,6 +264,10 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
|
||||||
case eMetric_SubmenuDelay:
|
case eMetric_SubmenuDelay:
|
||||||
aMetric = 200;
|
aMetric = 200;
|
||||||
break;
|
break;
|
||||||
|
case eMetric_MenusCanOverlapOSBar:
|
||||||
|
// we want XUL popups to be able to overlap the task bar.
|
||||||
|
aMetric = 1;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
aMetric = 0;
|
aMetric = 0;
|
||||||
res = NS_ERROR_FAILURE;
|
res = NS_ERROR_FAILURE;
|
||||||
|
|
|
@ -250,6 +250,10 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
|
||||||
case eMetric_SubmenuDelay:
|
case eMetric_SubmenuDelay:
|
||||||
aMetric = 200;
|
aMetric = 200;
|
||||||
break;
|
break;
|
||||||
|
case eMetric_MenusCanOverlapOSBar:
|
||||||
|
// xul popups are not allowed to overlap the menubar.
|
||||||
|
aMetric = 0;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
aMetric = 0;
|
aMetric = 0;
|
||||||
res = NS_ERROR_FAILURE;
|
res = NS_ERROR_FAILURE;
|
||||||
|
|
|
@ -275,6 +275,11 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
|
||||||
aMetric = sSubmenuDelay;
|
aMetric = sSubmenuDelay;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case eMetric_MenusCanOverlapOSBar:
|
||||||
|
// we want XUL popups to be able to overlap the task bar.
|
||||||
|
aMetric = 1;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
aMetric = -1;
|
aMetric = -1;
|
||||||
res = NS_ERROR_FAILURE;
|
res = NS_ERROR_FAILURE;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче