зеркало из https://github.com/mozilla/gecko-dev.git
Minimo only. Add full screen support to the context menu. Removing window size from css
This commit is contained in:
Родитель
bb3f66468b
Коммит
216a4fbef2
|
@ -44,6 +44,7 @@ var gBrowserStatusHandlerArray=new Array();
|
|||
var gtabCounter=0;
|
||||
var gBrowserStatusHandler;
|
||||
var gSelectedTab=null;
|
||||
var gFullScreen=false;
|
||||
|
||||
function nsBrowserStatusHandler()
|
||||
{
|
||||
|
@ -358,3 +359,12 @@ function BrowserPopupShowing () {
|
|||
}
|
||||
|
||||
|
||||
function DoFullScreen()
|
||||
{
|
||||
gFullScreen = !gFullScreen;
|
||||
|
||||
document.getElementById("nav-bar").hidden = gFullScreen;
|
||||
getBrowser().setStripVisibilityTo(!gFullScreen);
|
||||
window.fullScreen = gFullScreen;
|
||||
}
|
||||
|
||||
|
|
|
@ -73,9 +73,7 @@
|
|||
<command id="cmd_BrowserTestSendSMS" oncommand="BrowserTestSendSMS()"/>
|
||||
|
||||
<toolbar id="nav-bar">
|
||||
|
||||
<menubar class="chromeclass-menubar">
|
||||
|
||||
<menu id="menu-button" >
|
||||
<menupopup>
|
||||
<menuitem id="command_BrowserOpenTab" command="cmd_BrowserOpenTab" label="new Tab" />
|
||||
|
@ -118,7 +116,7 @@
|
|||
<popupset>
|
||||
<popup id="contentAreaContextMenu" onpopupshowing="BrowserPopupShowing()">
|
||||
<menuitem id="item_call" insertbefore="context-sep-view" label="" oncommand=""/>
|
||||
<menuitem id="item_test" label="Context Menu" oncommand=""/>
|
||||
<menuitem id="full_screen" label="Toggle FullScreen" oncommand="DoFullScreen()"/>
|
||||
</popup>
|
||||
<popup id="menu_FilePopup">
|
||||
<menuitem id="menu_close"/>
|
||||
|
|
|
@ -45,12 +45,6 @@
|
|||
border:1px solid black;
|
||||
}
|
||||
|
||||
|
||||
window {
|
||||
width: 240px;
|
||||
height: 320px;
|
||||
}
|
||||
|
||||
#urlbar {
|
||||
padding:1px;
|
||||
}
|
||||
|
@ -102,3 +96,4 @@ toolbar *, #appcontent * {
|
|||
{
|
||||
list-style-image : url("chrome://minimo/skin/reload.gif");
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче