From 3211ac9b809d1325cf0117edc8b56c79dcbc6b15 Mon Sep 17 00:00:00 2001 From: des Date: Sun, 17 Feb 2008 09:32:50 +0000 Subject: [PATCH] Unfinished Firefox plugin. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2499 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-tools/firefox/Makefile | 15 +++++++ varnish-tools/firefox/chrome.manifest | 3 ++ .../chrome/content/varnish-icon-red-32.gif | Bin 0 -> 1249 bytes .../firefox/chrome/content/varnish.js | 37 ++++++++++++++++++ .../firefox/chrome/content/varnish.xul | 8 ++++ varnish-tools/firefox/install.rdf | 24 ++++++++++++ 6 files changed, 87 insertions(+) create mode 100644 varnish-tools/firefox/Makefile create mode 100644 varnish-tools/firefox/chrome.manifest create mode 100644 varnish-tools/firefox/chrome/content/varnish-icon-red-32.gif create mode 100644 varnish-tools/firefox/chrome/content/varnish.js create mode 100644 varnish-tools/firefox/chrome/content/varnish.xul create mode 100644 varnish-tools/firefox/install.rdf diff --git a/varnish-tools/firefox/Makefile b/varnish-tools/firefox/Makefile new file mode 100644 index 00000000..0605d3fe --- /dev/null +++ b/varnish-tools/firefox/Makefile @@ -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} diff --git a/varnish-tools/firefox/chrome.manifest b/varnish-tools/firefox/chrome.manifest new file mode 100644 index 00000000..7e44ded3 --- /dev/null +++ b/varnish-tools/firefox/chrome.manifest @@ -0,0 +1,3 @@ +# $Id$ +content varnish chrome/content/ +overlay chrome://browser/content/browser.xul chrome://varnish/content/varnish.xul diff --git a/varnish-tools/firefox/chrome/content/varnish-icon-red-32.gif b/varnish-tools/firefox/chrome/content/varnish-icon-red-32.gif new file mode 100644 index 0000000000000000000000000000000000000000..4af1fcb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ekb9YQd v!o%oec)l+wxBT4ABwYpt|4AIxj<>4Bx^c;hLF$p~E(!`ug;azf5b)W*?l_Ii literal 0 HcmV?d00001 diff --git a/varnish-tools/firefox/chrome/content/varnish.js b/varnish-tools/firefox/chrome/content/varnish.js new file mode 100644 index 00000000..92cb946b --- /dev/null +++ b/varnish-tools/firefox/chrome/content/varnish.js @@ -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) { + }, +}; diff --git a/varnish-tools/firefox/chrome/content/varnish.xul b/varnish-tools/firefox/chrome/content/varnish.xul new file mode 100644 index 00000000..604925c9 --- /dev/null +++ b/varnish-tools/firefox/chrome/content/varnish.xul @@ -0,0 +1,8 @@ + + + +