From 020da12e3e13df2f3961f800f53fc384b0e706ba Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Thu, 18 Feb 1999 04:57:21 +0000 Subject: [PATCH] This is the true file that will be loaded by the browser. --- xpfe/browser/src/navigator.xul | 194 +++++++++++++++++++++++++++++++++ 1 file changed, 194 insertions(+) create mode 100644 xpfe/browser/src/navigator.xul diff --git a/xpfe/browser/src/navigator.xul b/xpfe/browser/src/navigator.xul new file mode 100644 index 000000000000..2b13186259a4 --- /dev/null +++ b/xpfe/browser/src/navigator.xul @@ -0,0 +1,194 @@ + + + + + + + + + function Startup() + { + dump("Doing Startup...\n"); + appCore = XPAppCoresManager.Find("BrowserAppCore"); + dump("Looking up BrowserAppCore...\n"); + if (appCore == null) { + dump("Creating BrowserAppCore...\n"); + appCore = new BrowserAppCore(); + if (appCore != null) { + dump("BrowserAppCore has been created.\n"); + appCore.Init("BrowserAppCore"); + appCore.setContentWindow(window.frames[0]); + appCore.setWebShellWindow(window); + appCore.setDisableCallback("DoDisableButtons();"); + appCore.setEnableCallback("DoEnableButtons();"); + dump("Adding BrowserAppCore to AppCoreManager...\n"); + XPAppCoresManager.Add(appCore); + } + } else { + dump("BrowserAppCore has already been created! Why?\n"); + } + } + + function DoDisableButtons() + { + // Find buttons in the UI and disable them + dump("Browser disabling buttons\n"); + } + + function DoEnableButtons() + { + // Find buttons in the UI and enable them + dump("Browser enabling buttons\n"); + } + + function BrowserBack() + { + appCore = XPAppCoresManager.Find("BrowserAppCore"); + if (appCore != null) { + dump("Going Back\n"); + appCore.back(); + } else { + dump("BrowserAppCore has not been created!\n"); + } + } + + function BrowserForward() + { + appCore = XPAppCoresManager.Find("BrowserAppCore"); + if (appCore != null) { + dump("Going Forward\n"); + appCore.forward(); + } else { + dump("BrowserAppCore has not been created!\n"); + } + } + + function BrowserNewWindow() + { + appCore = XPAppCoresManager.Find("BrowserAppCore"); + if (appCore != null) { + dump("Opening New Window\n"); + appCore.newWindow(); + } else { + dump("BrowserAppCore has not been created!\n"); + } + } + + function BrowserPrintPreview() + { + dump("BrowserPrintPreview\n"); + } + + function BrowserClose() + { + dump("BrowserClose\n"); + } + + function BrowserExit() + { + appCore = XPAppCoresManager.Find("BrowserAppCore"); + if (appCore != null) { + dump("Exiting\n"); + appCore.exit(); + } else { + dump("BrowserAppCore has not been created!\n"); + } + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Back + + + + + Forward + + + + + Reload + + + + + Stop + + + Home + + + + Print + + + + + + + + Bookmarks + + + + + + What's Related + + + + + + Mozilla.org + + + Mozilla.org + + + Mozilla.org + + + + + + + + +