зеркало из https://github.com/mozilla/pjs.git
bug 451373 — code cleanup: makes it possible for extensions to add another panel without the risk that multiple such extensions would break each other
This commit is contained in:
Родитель
c98c41eb6e
Коммит
463b91419b
|
@ -394,6 +394,10 @@ var BrowserUI = {
|
|||
Shortcuts.init();
|
||||
},
|
||||
|
||||
switchPane : function(id) {
|
||||
document.getElementById("panel-items").selectedPanel = document.getElementById(id);
|
||||
},
|
||||
|
||||
_sizeControls : function(aEvent) {
|
||||
var rect = document.getElementById("browser-container").getBoundingClientRect();
|
||||
var containerW = rect.right - rect.left;
|
||||
|
|
|
@ -241,11 +241,11 @@
|
|||
</vbox>
|
||||
|
||||
<hbox id="panel-container" style="-moz-stack-sizing: ignore;" top="0" left="0">
|
||||
<vbox id="panel-controls">
|
||||
<toolbarbutton id="tool-addons" class="browser-control-button" oncommand="this.parentNode.nextSibling.selectedIndex=0;"/>
|
||||
<toolbarbutton id="tool-downloads" class="browser-control-button" oncommand="this.parentNode.nextSibling.selectedIndex=1;"/>
|
||||
<toolbarbutton id="tool-preferences" class="browser-control-button" oncommand="this.parentNode.nextSibling.selectedIndex=2;"/>
|
||||
<toolbarbutton id="tool-shortcuts" class="browser-control-button" oncommand="this.parentNode.nextSibling.selectedIndex=3;"/>
|
||||
<vbox id="panel-controls" oncommand="BrowserUI.switchPane(event.target.getAttribute('paneid'));">
|
||||
<toolbarbutton id="tool-addons" class="browser-control-button" paneid="addons-container"/>
|
||||
<toolbarbutton id="tool-downloads" class="browser-control-button" paneid="downloads-container"/>
|
||||
<toolbarbutton id="tool-preferences" class="browser-control-button" paneid="prefs-container"/>
|
||||
<toolbarbutton id="tool-shortcuts" class="browser-control-button" paneid="shortcuts-container"/>
|
||||
</vbox>
|
||||
<deck id="panel-items" flex="1">
|
||||
<iframe id="addons-container" flex="1"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче