From 3cc1fb86f4c37e070b99d1ef1acb0486ba5ae73b Mon Sep 17 00:00:00 2001 From: "hewitt%netscape.com" Date: Thu, 14 Sep 2006 06:03:18 +0000 Subject: [PATCH] 68136 - Mozilla should have a Full-screen mode, r=ben, sr=jst/jag --- suite/browser/navigator.js | 17 +++++++++++++++++ suite/browser/navigator.xul | 14 +++++++++++++- suite/browser/navigatorOverlay.xul | 4 ++++ .../browser/win/platformNavigationBindings.xul | 2 ++ .../locales/en-US/chrome/browser/navigator.dtd | 2 ++ 5 files changed, 38 insertions(+), 1 deletion(-) diff --git a/suite/browser/navigator.js b/suite/browser/navigator.js index 11f1d7d5c6d..f38fa83e1dd 100644 --- a/suite/browser/navigator.js +++ b/suite/browser/navigator.js @@ -414,8 +414,14 @@ function Startup() remoteService.addBrowserInstance(window); } } + + // called when we go into full screen, even if it is + // initiated by a web page script + addEventListener("fullscreen", onFullScreen, false); + // now load bookmarks after a delay setTimeout(LoadBookmarksCallback, 0); + } function LoadBookmarksCallback() @@ -1543,3 +1549,14 @@ function FillInPTTooltip(tipElement) return true; // show tooltip } + +function BrowserFullScreen() +{ + window.fullScreen = !window.fullScreen; +} + +function onFullScreen() +{ + FullScreen.toggle(); +} + diff --git a/suite/browser/navigator.xul b/suite/browser/navigator.xul index f1eed6eeccd..080eb84b37d 100644 --- a/suite/browser/navigator.xul +++ b/suite/browser/navigator.xul @@ -60,6 +60,7 @@ Contributor(s): ______________________________________. -->