Mailing List Archive

r2499 - in trunk/varnish-tools: . firefox firefox/chrome firefox/chrome/content firefox/chrome/icons firefox/defaults
Author: des
Date: 2008-02-17 10:32:50 +0100 (Sun, 17 Feb 2008)
New Revision: 2499

Added:
trunk/varnish-tools/firefox/
trunk/varnish-tools/firefox/Makefile
trunk/varnish-tools/firefox/chrome.manifest
trunk/varnish-tools/firefox/chrome/
trunk/varnish-tools/firefox/chrome/content/
trunk/varnish-tools/firefox/chrome/content/varnish-icon-red-32.gif
trunk/varnish-tools/firefox/chrome/content/varnish.js
trunk/varnish-tools/firefox/chrome/content/varnish.xul
trunk/varnish-tools/firefox/chrome/icons/
trunk/varnish-tools/firefox/chrome/icons/default/
trunk/varnish-tools/firefox/components/
trunk/varnish-tools/firefox/defaults/
trunk/varnish-tools/firefox/defaults/preferences/
trunk/varnish-tools/firefox/install.rdf
trunk/varnish-tools/firefox/plugins/
Log:
Unfinished Firefox plugin.


Added: trunk/varnish-tools/firefox/Makefile
===================================================================
--- trunk/varnish-tools/firefox/Makefile (rev 0)
+++ trunk/varnish-tools/firefox/Makefile 2008-02-17 09:32:50 UTC (rev 2499)
@@ -0,0 +1,15 @@
+# $Id$
+
+CHROME_CONTENT = \
+ chrome/content/varnish-icon-red-32.gif \
+ chrome/content/varnish.xul \
+
+FILES = \
+ install.rdf \
+ chrome.manifest \
+ ${CHROME_CONTENT}
+
+all: varnish.xpi
+
+varnish.xpi: ${FILES}
+ zip $@ ${FILES}


Property changes on: trunk/varnish-tools/firefox/Makefile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native

Added: trunk/varnish-tools/firefox/chrome/content/varnish-icon-red-32.gif
===================================================================
(Binary files differ)


Property changes on: trunk/varnish-tools/firefox/chrome/content/varnish-icon-red-32.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream

Added: trunk/varnish-tools/firefox/chrome/content/varnish.js
===================================================================
--- trunk/varnish-tools/firefox/chrome/content/varnish.js (rev 0)
+++ trunk/varnish-tools/firefox/chrome/content/varnish.js 2008-02-17 09:32:50 UTC (rev 2499)
@@ -0,0 +1,37 @@
+// $Id$
+
+var varnish = {
+ rebuild: function() {
+ }
+};
+
+function varnish_register()
+{
+ window.getBrowser().addProgressListener(varnish_progress_listener);
+}
+
+function varnish_unregister()
+{
+ window.getBrowser().removeProgressListener(varnish_progress_listener);
+}
+
+window.addEventListener("load", varnish_register, false);
+window.addEventListener("unload", varnish_unregister, false);
+
+var varnish_progress_listener = {
+ onLocationChange: function(webProgress, request, location) {
+ },
+
+ onProgressChange: function(webProgress, request, curSelfProgress,
+ maxSelfProgress, curTotalProgress, maxTotalProgress) {
+ },
+
+ onSecurityChange: function(webProgress, request, state) {
+ },
+
+ onStateChange: function(webProgress, request, stateFlags, status) {
+ },
+
+ onStatusChange: function(webProgress, request, status, message) {
+ },
+};


Property changes on: trunk/varnish-tools/firefox/chrome/content/varnish.js
___________________________________________________________________
Name: svn:keywords
+ Id

Added: trunk/varnish-tools/firefox/chrome/content/varnish.xul
===================================================================
--- trunk/varnish-tools/firefox/chrome/content/varnish.xul (rev 0)
+++ trunk/varnish-tools/firefox/chrome/content/varnish.xul 2008-02-17 09:32:50 UTC (rev 2499)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Id$ -->
+<overlay id="sample" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+ <script type="application/x-javascript" src="chrome://varnish/content/varnish.js"/>
+ <statusbar id="status-bar">
+ <statusbarpanel id="varnish-panel" insertafter="statusbar-progresspanel"/>
+ </statusbar>
+</overlay>


Property changes on: trunk/varnish-tools/firefox/chrome/content/varnish.xul
___________________________________________________________________
Name: svn:keywords
+ Id

Added: trunk/varnish-tools/firefox/chrome.manifest
===================================================================
--- trunk/varnish-tools/firefox/chrome.manifest (rev 0)
+++ trunk/varnish-tools/firefox/chrome.manifest 2008-02-17 09:32:50 UTC (rev 2499)
@@ -0,0 +1,3 @@
+# $Id$
+content varnish chrome/content/
+overlay chrome://browser/content/browser.xul chrome://varnish/content/varnish.xul


Property changes on: trunk/varnish-tools/firefox/chrome.manifest
___________________________________________________________________
Name: svn:keywords
+ Id

Added: trunk/varnish-tools/firefox/install.rdf
===================================================================
--- trunk/varnish-tools/firefox/install.rdf (rev 0)
+++ trunk/varnish-tools/firefox/install.rdf 2008-02-17 09:32:50 UTC (rev 2499)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Id$ -->
+<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:em="http://www.mozilla.org/2004/em-rdf#">
+ <Description about="urn:mozilla:install-manifest">
+ <em:id>firefox-extension at varnish-cache.org</em:id>
+ <em:version>1.0</em:version>
+ <em:type>2</em:type>
+
+ <em:targetApplication>
+ <Description>
+ <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
+ <em:minVersion>2.0</em:minVersion>
+ <em:maxVersion>2.0.0.*</em:maxVersion>
+ </Description>
+ </em:targetApplication>
+
+ <em:name>Varnish</em:name>
+ <em:description>Displays information about a Varnish HTTP accelerator</em:description>
+ <em:creator>Dag-Erling Sm?rgrav</em:creator>
+ <em:homepageURL>http://www.varnish-cache.org/</em:homepageURL>
+ <em:iconURL>chrome://varnish/content/varnish-icon-red-32.gif</em:iconURL>
+ </Description>
+</RDF>


Property changes on: trunk/varnish-tools/firefox/install.rdf
___________________________________________________________________
Name: svn:keywords
+ Id