Bug 510312 Provide notification bar for content tabs. r=asuth
This commit is contained in:
Родитель
0709bfb885
Коммит
a1ace8f568
|
@ -504,6 +504,26 @@ function getBrowser()
|
|||
document.getElementById("messagepane");
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is global and expected by toolkit to get the notification box
|
||||
* for the browser for use with items like password manager.
|
||||
*/
|
||||
function getNotificationBox(aWindow) {
|
||||
var tabmail = document.getElementById("tabmail");
|
||||
var tabInfo = tabmail.tabInfo;
|
||||
|
||||
for (var i = 0; i < tabInfo.length; ++i) {
|
||||
var browserFunc = tabInfo[i].mode.getBrowser ||
|
||||
tabInfo[i].mode.tabType.getBrowser;
|
||||
if (browserFunc) {
|
||||
var possBrowser = browserFunc.call(tabInfo[i].mode.tabType, tabInfo[i]);
|
||||
if (possBrowser && possBrowser.contentWindow == aWindow)
|
||||
return possBrowser.parentNode;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// Given the server, open the twisty and the set the selection
|
||||
// on inbox of that server.
|
||||
// prompt if offline.
|
||||
|
|
|
@ -41,8 +41,10 @@
|
|||
|
||||
<vbox id="contentTab" collapsed="true">
|
||||
<vbox flex="1">
|
||||
<browser type="content-targetable" flex="1" disablehistory="true"/>
|
||||
<findbar/>
|
||||
<notificationbox flex="1">
|
||||
<browser type="content-targetable" flex="1" disablehistory="true"/>
|
||||
<findbar/>
|
||||
</notificationbox>
|
||||
</vbox>
|
||||
</vbox>
|
||||
</overlay>
|
||||
|
|
Загрузка…
Ссылка в новой задаче