Index: linkToolbarOverlay.xul
===================================================================
RCS file: /cvsroot/mozilla/xpfe/browser/resources/content/linkToolbarOverlay.xul,v
retrieving revision 1.5
diff -u -r1.5 linkToolbarOverlay.xul
--- linkToolbarOverlay.xul 2001/10/06 02:27:28 1.5
+++ linkToolbarOverlay.xul 2001/10/24 04:53:01
@@ -79,6 +79,10 @@
+
+
+
+
+
@@ -131,6 +132,7 @@
+
@@ -238,6 +240,7 @@
+
Index: navigator.xul
===================================================================
RCS file: /cvsroot/mozilla/xpfe/browser/resources/content/navigator.xul,v
retrieving revision 1.336
diff -u -r1.336 navigator.xul
--- navigator.xul 2001/10/08 12:32:13 1.336
+++ navigator.xul 2001/10/24 04:53:09
@@ -54,8 +54,8 @@
titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
windowtype="navigator:browser" orient="vertical"
width="640" height="480"
- screenX="10" screenY="10"
- persist="screenX screenY width height sizemode">
+ screenX="10" screenY="10" fullScreen="false"
+ persist="screenX screenY width height sizemode fullScreen">
@@ -109,6 +109,7 @@
+
@@ -376,4 +377,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: navigator.js
===================================================================
RCS file: /cvsroot/mozilla/xpfe/browser/resources/content/navigator.js,v
retrieving revision 1.380
diff -u -r1.380 navigator.js
--- navigator.js 2001/10/13 02:26:30 1.380
+++ navigator.js 2001/10/24 04:53:13
@@ -386,6 +386,10 @@
remoteService.addBrowserInstance(window);
}
}
+
+ if (document.getElementById("main-window").getAttribute("fullScreen") == "true") {
+ BrowserFullScreenEnter();
+ }
}
function WindowFocusTimerCallback(element)
@@ -1031,6 +1035,50 @@
function OpenAddressbook()
{
open("chrome://messenger/content/addressbook/addressbook.xul", "_blank", "chrome,menubar,toolbar,resizable");
+}
+
+var fullScreen = false;
+
+function BrowserFullScreenToggle()
+{
+ var idx, attribute, value;
+ var element, currentValue
+ var fullScreenElementChanges = document.getElementById("fullScreenElementChanges");
+ var next = fullScreenElementChanges.firstChild;
+ while (next) {
+ idx = next.getAttribute("idx");
+ attribute = next.getAttribute("attribute");
+ value = next.getAttribute("value");
+
+ element = document.getElementById(idx);
+ currentValue = element.getAttribute(attribute);
+
+ if (value) {
+ element.setAttribute(attribute, value);
+ } else {
+ element.removeAttribute(attribute);
+ }
+ next.setAttribute("value", currentValue);
+
+ next = next.nextSibling;
+ }
+
+ fullScreen = !fullScreen;
+ document.getElementById("main-window").setAttribute("fullScreen", fullScreen?"true":"false");
+}
+
+function BrowserFullScreenEnter()
+{
+ if (!fullScreen) {
+ BrowserFullScreenToggle();
+ }
+}
+
+function BrowserFullScreenExit()
+{
+ if (fullScreen) {
+ BrowserFullScreenToggle();
+ }
}
function BrowserViewSource()
Index: fastnav.js
===================================================================
RCS file: /cvsroot/mozilla/xpfe/browser/resources/content/fastnav.js,v
retrieving revision 1.4
diff -u -r1.4 fastnav.js
--- fastnav.js 2001/09/28 20:13:28 1.4
+++ fastnav.js 2001/10/24 04:53:17
@@ -358,6 +358,10 @@
// Perform default browser checking.
checkForDefaultBrowser();
}
+
+ if (document.getElementById("main-window").getAttribute("fullScreen") == "true") {
+ BrowserFullScreenEnter();
+ }
}
function Shutdown()
@@ -929,6 +933,50 @@
function OpenAddressbook()
{
open("chrome://messenger/content/addressbook/addressbook.xul", "_blank", "chrome,menubar,toolbar,resizable");
+}
+
+var fullScreen = false;
+
+function BrowserFullScreenToggle()
+{
+ var idx, attribute, value;
+ var element, currentValue
+ var fullScreenElementChanges = document.getElementById("fullScreenElementChanges");
+ var next = fullScreenElementChanges.firstChild;
+ while (next) {
+ idx = next.getAttribute("idx");
+ attribute = next.getAttribute("attribute");
+ value = next.getAttribute("value");
+
+ element = document.getElementById(idx);
+ currentValue = element.getAttribute(attribute);
+
+ if (value) {
+ element.setAttribute(attribute, value);
+ } else {
+ element.removeAttribute(attribute);
+ }
+ next.setAttribute("value", currentValue);
+
+ next = next.nextSibling;
+ }
+
+ fullScreen = !fullScreen;
+ document.getElementById("main-window").setAttribute("fullScreen", fullScreen?"true":"false");
+}
+
+function BrowserFullScreenEnter()
+{
+ if (!fullScreen) {
+ BrowserFullScreenToggle();
+ }
+}
+
+function BrowserFullScreenExit()
+{
+ if (fullScreen) {
+ BrowserFullScreenToggle();
+ }
}
function BrowserViewSource()
Index: navigator.dtd
===================================================================
RCS file: /cvsroot/mozilla/xpfe/browser/resources/locale/en-US/navigator.dtd,v
retrieving revision 1.134
diff -u -r1.134 navigator.dtd
--- navigator.dtd 2001/10/01 04:51:22 1.134
+++ navigator.dtd 2001/10/24 04:53:18
@@ -59,6 +59,8 @@
+
+