mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 09:30:44 +00:00
Initial checkin
This commit is contained in:
parent
771e61571a
commit
cebfe262ab
30
silentdl/tests/MailAppShell.html
Normal file
30
silentdl/tests/MailAppShell.html
Normal file
@ -0,0 +1,30 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla Browser</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
</head>
|
||||
<body bgcolor="#C0C0C0">
|
||||
<style type="text/css">
|
||||
/* This style sheet should be in a seperate file */
|
||||
|
||||
BODY,TD {
|
||||
font-family: Sans-Serif;
|
||||
background-color: #C0C0C0;
|
||||
}
|
||||
|
||||
BODY,TD,INPUT {
|
||||
font-size: 9pt;
|
||||
}
|
||||
BODY {
|
||||
margin: 0px 0px 0px 0px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<iframe src="MailToolbar.xml" name="browser.toolbar" width="100%" height="80" >
|
||||
|
||||
<iframe src="MailFrame.html" name="browser.webwindow" width="100%" height="500" >
|
||||
|
||||
<iframe src="status.html" name="browser.status" width="100%" height="34" >
|
||||
|
||||
</body>
|
||||
</html>
|
28
silentdl/tests/MailAppShellNoTB.html
Normal file
28
silentdl/tests/MailAppShellNoTB.html
Normal file
@ -0,0 +1,28 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla Browser</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
</head>
|
||||
<body bgcolor="#C0C0C0">
|
||||
<style type="text/css">
|
||||
/* This style sheet should be in a seperate file */
|
||||
|
||||
BODY,TD {
|
||||
font-family: Sans-Serif;
|
||||
background-color: #C0C0C0;
|
||||
}
|
||||
|
||||
BODY,TD,INPUT {
|
||||
font-size: 9pt;
|
||||
}
|
||||
BODY {
|
||||
margin: 0px 0px 0px 0px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<iframe src="MailToolbar.xml" name="mail.toolbar" width="100%" height="80" >
|
||||
|
||||
<iframe src="MailFrame.html" name="mail.webwindow" width="100%" height="500" >
|
||||
|
||||
</body>
|
||||
</html>
|
138
silentdl/tests/MailFrame.html
Normal file
138
silentdl/tests/MailFrame.html
Normal file
@ -0,0 +1,138 @@
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<script LANGUAGE="JavaScript">
|
||||
<!--
|
||||
|
||||
function SendMailMessage()
|
||||
{
|
||||
var appCore = AppCoresManager.Find("MailCore");
|
||||
if (appCore==null) {
|
||||
appCore = new MailCore();
|
||||
if (appCore != null) {
|
||||
appCore.Init("MailCore");
|
||||
appCore.MailCompleteCallback("MailSent()");
|
||||
appCore.SetWindow(window);
|
||||
appCore.SendMail(document.forms[0].elements[1].value, document.forms[0].elements[2].value, document.forms[0].elements[4].value);
|
||||
}
|
||||
} else {
|
||||
appCore.SendMail(document.forms[0].elements[1].value, document.forms[0].elements[2].value, document.forms[0].elements[4].value);
|
||||
}
|
||||
|
||||
appCore = AppCoresManager.Find("ToolbarCore");
|
||||
if (appCore==null) {
|
||||
appCore = new ToolbarCore();
|
||||
if (appCore != null) {
|
||||
appCore.Init("ToolbarCore");
|
||||
appCore.SetWindow(window.parent.frames[2]);
|
||||
appCore.SetStatus("Mail was Sent!");
|
||||
} else {
|
||||
}
|
||||
} else {
|
||||
appCore.SetStatus("Mail was Sent!");
|
||||
}
|
||||
}
|
||||
|
||||
function MailSent()
|
||||
{
|
||||
|
||||
// Clear Them
|
||||
document.forms[0].elements[1].value = "";
|
||||
document.forms[0].elements[2].value = "";
|
||||
document.forms[0].elements[4].value = "";
|
||||
|
||||
/*dump("top name: "+top.name+"\n");
|
||||
if (window.parent.frames[2] != null) {
|
||||
dump("frame[2] name: "+window.parent.frames[2].name+"\n");
|
||||
var parent = window.parent.frames[0].parent;
|
||||
dump("parent name: "+parent.name+"\n");
|
||||
var doc = window.parent.frames[2].document;
|
||||
var win = window.parent.frames[2];
|
||||
if (doc != null) {
|
||||
//dump("Doc name: "+doc.name);
|
||||
doc.elements[8].value = "xxxxxx";
|
||||
} else {
|
||||
dump("doc was null\n");
|
||||
}
|
||||
} else {
|
||||
dump("parent is null\n");
|
||||
}*/
|
||||
}
|
||||
|
||||
// End -->
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
/* This style sheet should be in a seperate file */
|
||||
|
||||
FIELDSET {
|
||||
background-color: rgb(192, 192, 192);
|
||||
border: 2px groove rgb(192, 192, 192);
|
||||
display: inline;
|
||||
margin-left: 10px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
LEGEND {
|
||||
background-color:rgb(192, 192, 192);
|
||||
border: none ;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
|
||||
BODY,TD {
|
||||
font-family: Sans-Serif;
|
||||
background-color: #C0C0C0;
|
||||
}
|
||||
|
||||
LABEL {
|
||||
background-color: #C0C0C0;
|
||||
margin: 0px 0px 0px 0px;
|
||||
padding-left: 0px;
|
||||
padding-right: 0px;
|
||||
}
|
||||
|
||||
BODY,TD,INPUT {
|
||||
font-size: 9pt;
|
||||
}
|
||||
|
||||
BODY {
|
||||
margin: 0px 0px 0px 0px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
<p><form ENCTYPE="text/plain" onSubmit="return submitForms()"></center>
|
||||
<TABLE bgcolor="#C0C0C0">
|
||||
<TR>
|
||||
<TD>
|
||||
<fieldset width="100%" height="100%" >
|
||||
<legend align=left> Info </legend>
|
||||
<TABLE width="100%" height="100%">
|
||||
<TR>
|
||||
<TD>Address:</TD>
|
||||
<TD width="100%"><input type="text" name="addrTo" ></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>Subject:</TD>
|
||||
<TD><input type="text" name="subject" id="subject"></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</fieldset>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<fieldset width="100%" height="100%" >
|
||||
<legend align=left> Message </legend>
|
||||
<TEXTAREA cols=40 rows=20 name="mailbody"></TEXTAREA>
|
||||
</fieldset>
|
||||
</TD>
|
||||
</TR></TABLE>
|
||||
</form>
|
||||
</center>
|
||||
|
||||
</body>
|
||||
</html>
|
55
silentdl/tests/MailToolbar.xml
Normal file
55
silentdl/tests/MailToolbar.xml
Normal file
@ -0,0 +1,55 @@
|
||||
<?xml version="1.0"?>
|
||||
<window xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<?xml-stylesheet href="xul.css" type="text/css"?>
|
||||
<!DOCTYPE window>
|
||||
|
||||
<window>
|
||||
<xul:commands>
|
||||
<xul:command name="nsCmd:MailSendMsg" onCommand="SendMailMessage()"/>
|
||||
<xul:command name="nsCmd:BrowserForward" onCommand="window.forward();"/>
|
||||
<xul:command name="nsCmd:BrowserReload" onCommand="window.reload();"/>
|
||||
<xul:command name="nsCmd:BrowserStop" onCommand="window.stop();"/>
|
||||
<xul:command name="nsCmd:BrowserHome" onCommand="window.home();"/>
|
||||
<xul:command name="nsCmd:BrowserPrint" onCommand="window.print();"/>
|
||||
<!-- other parameters of command are assumed to have
|
||||
some useful initial value -->
|
||||
</xul:commands>
|
||||
|
||||
<xul:toolbox>
|
||||
|
||||
<xul:toolbar>
|
||||
<html:button cmd="nsCmd:MailSendMsg" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="resource:/res/toolbar/sendmsg.gif"/><html:BR/>Send
|
||||
</html:button>
|
||||
<html:button cmd="nsCmd:MailGetMsg" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="resource:/res/toolbar/getmsg.gif"/><html:BR/>GetMsg
|
||||
</html:button>
|
||||
<html:button cmd="nsCmd:MailNewMsg" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="resource:/res/toolbar/newmsg.gif"/><html:BR/>New Msg
|
||||
</html:button>
|
||||
<html:button cmd="nsCmd:MailReply" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="resource:/res/toolbar/reply.gif"/><html:BR/>Reply
|
||||
</html:button>
|
||||
<html:button cmd="nsCmd:MailForward" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="resource:/res/toolbar/forward.gif"/><html:BR/>Forward
|
||||
</html:button>
|
||||
<html:button cmd="nsCmd:BrowserPrint" style="background-color:rgb(192,192,192);">
|
||||
<html:img src="resource:/res/toolbar/TB_Print.gif"/><html:BR/>Print
|
||||
</html:button>
|
||||
<html:a style="position:relative; direction:rtl; right:3; top: 2px;" href="http://www.netscape.com">
|
||||
<html:img alt="Throbber!" border=0 src="resource:/res/throbber/anims00.gif"/>
|
||||
</html:a>
|
||||
</xul:toolbar>
|
||||
|
||||
<xul:toolbar>
|
||||
<html:FORM>
|
||||
<html:SELECT style="width:200px;">
|
||||
<html:OPTION>INBOX</HTML:OPTION>
|
||||
</html:SELECT>
|
||||
</html:FORM>
|
||||
</xul:toolbox>
|
||||
|
||||
</xul:toolbox>
|
||||
|
||||
</window>
|
||||
|
Loading…
x
Reference in New Issue
Block a user