зеркало из https://github.com/mozilla/gecko-dev.git
Updates to our mail core XUL file to get loading of a hard coded news url to run.
This commit is contained in:
Родитель
0064c92613
Коммит
b38422f1d2
|
@ -1,8 +1,10 @@
|
|||
<?xml version="1.0"?>
|
||||
<window xmlns:html="http://www.w3.org/TR/REC-html40">
|
||||
<window xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<?xml-stylesheet href="xul.css" type="text/css"?>
|
||||
<!DOCTYPE window>
|
||||
|
||||
<xul:window xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<html:script language="JavaScript">
|
||||
function StartUp()
|
||||
{
|
||||
|
@ -22,15 +24,18 @@ function StartUp()
|
|||
|
||||
function OpenURL(url)
|
||||
{
|
||||
dump("OpenURL from XUL\n");
|
||||
var appCore = XPAppCoresManager.Find("MsgAppCore");
|
||||
if (appCore != null) {
|
||||
appCore.OpenURL(url);
|
||||
}
|
||||
dump("\n\nOpenURL from XUL\n\n\n");
|
||||
var appCore = new MsgAppCore();
|
||||
if (appCore != null) {
|
||||
dump("Initializing AppCore and setting Window\n");
|
||||
appCore.Init("MsgAppCore");
|
||||
appCore.SetWindow(window);
|
||||
appCore.OpenURL(url);
|
||||
}
|
||||
}
|
||||
|
||||
</html:script>
|
||||
<window>
|
||||
|
||||
<xul:commands>
|
||||
<xul:command name="nsCmd:StartUp" onCommand="StartUp();"/>
|
||||
<xul:command name="nsCmd:GetMessage" onCommand="window.getmessage();"/>
|
||||
|
@ -38,12 +43,10 @@ function OpenURL(url)
|
|||
<xul:command name="nsCmd:ReplyMessage" onCommand="window.replymessage();"/>
|
||||
<xul:command name="nsCmd:ForwardMessage" onCommand="window.forwardmessage();"/>
|
||||
<xul:command name="nsCmd:DeleteMessage" onCommand="window.deletemessage();"/>
|
||||
<xul:command name="nsCmd:LoadURL1" onCommand="OpenURL('news://zia.mcom.com:119/35D8A048.3C0F0C7A@zia.mcom.com');"/>
|
||||
<xul:command name="nsCmd:LoadURL2" onCommand="loadURL(...);"/>
|
||||
<xul:command name="nsCmd:LoadURL3" onCommand="loadURL(...);"/>
|
||||
<xul:command name="nsCmd:LoadURL4" onCommand="loadURL(...);"/>
|
||||
<!-- other parameters of command are assumed to have
|
||||
some useful initial value -->
|
||||
<xul:command name="nsCmd:LoadURL1" onCommand="OpenURL('news://news.mcom.com:119/35BE6AB1.55A14AE4@netscape.com');"/>
|
||||
<xul:command name="nsCmd:LoadURL2" onCommand="OpenURL();"/>
|
||||
<xul:command name="nsCmd:LoadURL3" onCommand="OpenURL();"/>
|
||||
<xul:command name="nsCmd:LoadURL4" onCommand="OpenURL();"/>
|
||||
</xul:commands>
|
||||
<xul:menubar>
|
||||
<xul:menu name="File">
|
||||
|
@ -111,5 +114,5 @@ function OpenURL(url)
|
|||
</html:a>
|
||||
</xul:toolbar>
|
||||
|
||||
</window>
|
||||
</xul:window>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче