[Pkg-privacy-commits] [xul-ext-monkeysphere] 45/296: Remove all notification functions
Ximin Luo
infinity0 at moszumanska.debian.org
Mon Aug 24 07:39:24 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository xul-ext-monkeysphere.
commit 3500d467a0fcc4224f8ca2a0232f5d561afc3fb3
Author: Jameson Rollins <jrollins at finestructure.net>
Date: Sun Jan 10 16:16:03 2010 -0500
Remove all notification functions
The current UI doesn't use any notifications or prompts, so all the
notification code was removed for now.
---
chrome/content/monkeysphere.js | 117 -----------------------------------------
1 file changed, 117 deletions(-)
diff --git a/chrome/content/monkeysphere.js b/chrome/content/monkeysphere.js
index 820a7db..d64b1f3 100644
--- a/chrome/content/monkeysphere.js
+++ b/chrome/content/monkeysphere.js
@@ -567,123 +567,6 @@ var monkeysphere = {
},
////////////////////////////////////////////////////////////
-// NOTIFICATION FUNCTIONS
-////////////////////////////////////////////////////////////
-
- ////////////////////////////////////////////////////////////
- notify: {
-
- /////////////////////////////////////////////////////////
- // return true and log if a given notification box is present
- checkPresent: function(browser, value) {
- if (browser.getNotificationBox().getNotificationWithValue(value)) {
- monkeysphere.log("main", "notification '" + value + "' already present");
- return true;
- }
- return false;
- },
-
- /////////////////////////////////////////////////////////
- // this is the drop down which is shown if preferences indicate
- // that queries require user permission
- needsPermission: function(browser) {
- var notificationBox = browser.getNotificationBox();
-
- var value = "Monkeysphere:Permission";
-
- if (monkeysphere.notify.checkPresent(browser,value))
- return;
-
- var message = monkeysphere.messages.getString("needsPermission");
- var priority = notificationBox.PRIORITY_WARNING_HIGH;
- var buttons = [
- {
- label: monkeysphere.messages.getString("yesQuery"),
- accessKey : "",
- callback: function() {
- // FIXME: this might be a problem if there are other notifications,
- // but I can't figure out how to make it go away cleanly at startup
- notificationBox.removeAllNotifications();
-
- // update status
- monkeysphere.log("main", "user gives query permission");
- var uri = browser.currentURI;
- monkeysphere.updateStatus(browser,true);
- }
- },
- {
- label: monkeysphere.messages.getString("learnMore"),
- accessKey : "",
- callback: function() {
- browser.loadOneTab("chrome://monkeysphere/locale/help.html",
- null, null, null, false);
- }
- }
- ];
- notificationBox.appendNotification(message, value, null, priority, buttons);
- },
-
- /////////////////////////////////////////////////////////
- // this is the drop down which is shown if there
- // is a problem with the validation agent
- agentProblem: function(browser) {
- var notificationBox = browser.getNotificationBox();
-
- var value = "Monkeysphere:AgentProblem";
-
- var message = monkeysphere.messages.getString("agentError");
- var priority = notificationBox.PRIORITY_CRITICAL_LOW;
- var buttons = [
- {
- label: "help",
- accessKey : "",
- callback: function() {
- browser.loadOneTab("chrome://monkeysphere/locale/help.html",
- null, null, null, false);
- }
- }
- ];
- notificationBox.appendNotification(message, value, null, priority, buttons);
- },
-
- ////////////////////////////////////////////////////////
- // override verification success notification
- override: function(browser) {
- var notificationBox = browser.getNotificationBox();
-
- var value = "Monkeysphere:Override";
-
- var message = monkeysphere.messages.getString("verificationSuccess");
- var priority = notificationBox.PRIORITY_INFO_LOW;
- var buttons = [
- {
- label: monkeysphere.messages.getString("learnMore"),
- accessKey : "",
- callback: function() {
- browser.loadOneTab("chrome://monkeysphere/locale/help.html",
- null, null, null, false);
- }
- }
- ];
- notificationBox.appendNotification(message, value, null, priority, buttons);
- },
-
- ////////////////////////////////////////////////////////
- // alert to failure to verify host
- failed: function(browser) {
- var notificationBox = browser.getNotificationBox();
-
- var value = "Monkeysphere:Failed";
-
- var message = monkeysphere.messages.getString("unableToVerify");
- var priority = notificationBox.PRIORITY_CRITICAL_LOW;
- var buttons = null;
-
- notificationBox.appendNotification(message, value, null, priority, buttons);
- }
- },
-
-////////////////////////////////////////////////////////////
// FAVICON FUNCTIONS
////////////////////////////////////////////////////////////
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/xul-ext-monkeysphere.git
More information about the Pkg-privacy-commits
mailing list