Adding updateNotification bits.

not part of build.


git-svn-id: svn://10.0.0.236/trunk@64366 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com 2000-03-28 11:52:11 +00:00
parent c62cab3c1c
commit cd1b5f482d
3 changed files with 112 additions and 0 deletions

View File

@ -0,0 +1,48 @@
<?xml version="1.0"?> <!-- -*- Mode: SGML -*- -->
<!--
- The contents of this file are subject to the Mozilla Public
- License Version 1.1 (the "License"); you may not use this file
- except in compliance with the License. You may obtain a copy of
- the License at http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS
- IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- implied. See the License for the specific language governing
- rights and limitations under the License.
-
- The Original Code is Mozilla Communicator.
-
- The Initial Developer of the Original Code is Netscape
- Communications Corp. Portions created by Netscape Communications
- Corp. are Copyright (C) 1999 Netscape Communications Corp. All
- Rights Reserved.
-
- Contributor(s): Doug Turner <dougt@netscape.com>
- Chris Waterson <waterson@netscape.com>
-->
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:NC="http://home.netscape.com/NC-rdf#">
<RDF:Bag about="http://home.netscape.com/NC-rdf#SoftwareUpdateRoot">
<RDF:li>
<RDF:Bag about="http://home.netscape.com/NC-rdf#SoftwarePackages" NC:title="Test Updates" NC:url="http://www.netscape.com/people/dougt">
<RDF:li>
<RDF:Description ID="Update344">
<NC:version>3.4.1.12</NC:version>
<NC:registryKey>/AOL/</NC:registryKey>
</RDF:Description>
</RDF:li>
<RDF:li>
<RDF:Description ID="PGPPlugin345">
<NC:version>1.1.2.0</NC:version>
<NC:registryKey>/PGP/ROCKS/</NC:registryKey>
</RDF:Description>
</RDF:li>
</RDF:Bag>
</RDF:li>
</RDF:Bag>
</RDF:RDF>

View File

@ -0,0 +1,30 @@
<?xml version="1.0"?> <!-- -*- Mode: SGML -*- -->
<!--
- The contents of this file are subject to the Mozilla Public
- License Version 1.1 (the "License"); you may not use this file
- except in compliance with the License. You may obtain a copy of
- the License at http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS
- IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- implied. See the License for the specific language governing
- rights and limitations under the License.
-
- The Original Code is Mozilla Communicator.
-
- The Initial Developer of the Original Code is Netscape
- Communications Corp. Portions created by Netscape Communications
- Corp. are Copyright (C) 1999 Netscape Communications Corp. All
- Rights Reserved.
-
- Contributor(s): Doug Turner <dougt@netscape.com>
- Chris Waterson <waterson@netscape.com>
-->
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:NC="http://home.netscape.com/NC-rdf#">
<RDF:Bag about="http://home.netscape.com/NC-rdf#SoftwareUpdateDataSources">
<RDF:li resource="chrome://xpinstall/content/SoftwareUpdate-Source-1.rdf" />
</RDF:Bag>
</RDF:RDF>

View File

@ -0,0 +1,34 @@
<?xml version="1.0"?>
<!DOCTYPE window SYSTEM "chrome://global/locale/updateNotification.dtd" >
<overlay id="updateNotificationMenuID"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:script language="JavaScript">
function ShowUpdateFromResource( node )
{
var url = node.getAttribute('updateURL');
dump (url + '\n' );
//window.open( url );
}
</html:script>
<menupopup id="taskPopup">
<menu value="&updateNotification.label;" datasources="rdf:xpinstall-update-notifier" ref="http://home.netscape.com/NC-rdf#SoftwareNotificationRoot">
<template>
<rule>
<menupopup>
<menuitem uri="rdf:*" value="rdf:http://home.netscape.com/NC-rdf#name" updateURL="rdf:http://home.netscape.com/NC-rdf#url" oncommand="ShowUpdateFromResource( event.target )"/>
</menupopup>
</rule>
</template>
</menu>
<menuseparator/>
</menupopup>
</overlay>