diff options
author | Kris Maglione <kris@vimperator.org> | 2009-11-05 16:09:49 -0500 |
---|---|---|
committer | Kris Maglione <kris@vimperator.org> | 2009-11-05 16:09:49 -0500 |
commit | 33e5ea582cde035eb97bc9921fbea0c864465e02 (patch) | |
tree | 05208985b734fbfaea690810bbd22a6d3723fc5f /common/components | |
parent | 76e9b8c0edd7421093339af09741709478e7615a (diff) | |
download | pentadactyl-33e5ea582cde035eb97bc9921fbea0c864465e02.tar.gz |
Fix some symlink woes. Closes issue #140.
--HG--
rename : common/components/about-handler.js => muttator/components/about-handler.js
rename : common/components/commandline-handler.js => muttator/components/commandline-handler.js
rename : common/components/about-handler.js => vimperator/components/about-handler.js
rename : common/components/commandline-handler.js => vimperator/components/commandline-handler.js
rename : common/components/about-handler.js => xulmus/components/about-handler.js
rename : common/components/commandline-handler.js => xulmus/components/commandline-handler.js
Diffstat (limited to 'common/components')
-rw-r--r-- | common/components/about-handler.js | 38 | ||||
-rw-r--r-- | common/components/commandline-handler.js | 45 |
2 files changed, 0 insertions, 83 deletions
diff --git a/common/components/about-handler.js b/common/components/about-handler.js deleted file mode 100644 index 6476f214..00000000 --- a/common/components/about-handler.js +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2009 by Doug Kearns -// -// This work is licensed for reuse under an MIT license. Details are -// given in the LICENSE.txt file included with this file. - -Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); - -const Cc = Components.classes; -const Ci = Components.interfaces; - -function AboutHandler() {} - -AboutHandler.prototype = { - - classDescription: "About Vimperator Page", - - classID: Components.ID("81495d80-89ee-4c36-a88d-ea7c4e5ac63f"), - - contractID: "@mozilla.org/network/protocol/about;1?what=vimperator", - - QueryInterface: XPCOMUtils.generateQI([Ci.nsIAboutModule]), - - newChannel: function (uri) - { - let channel = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService) - .newChannel("chrome://vimperator/content/about.html", null, null); - - channel.originalURI = uri; - - return channel; - }, - - getURIFlags: function (uri) Ci.nsIAboutModule.ALLOW_SCRIPT, -}; - -function NSGetModule(compMgr, fileSpec) XPCOMUtils.generateModule([AboutHandler]); - -// vim: set fdm=marker sw=4 ts=4 et: diff --git a/common/components/commandline-handler.js b/common/components/commandline-handler.js deleted file mode 100644 index 054f6369..00000000 --- a/common/components/commandline-handler.js +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2009 by Doug Kearns -// -// This work is licensed for reuse under an MIT license. Details are -// given in the LICENSE.txt file included with this file. - - -Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); - -function CommandLineHandler() -{ - this.wrappedJSObject = this; -} - -CommandLineHandler.prototype = { - - classDescription: "Vimperator Command-line Handler", - - classID: Components.ID("{16dc34f7-6d22-4aa4-a67f-2921fb5dcb69}"), - - contractID: "@mozilla.org/commandlinehandler/general-startup;1?type=vimperator", - - _xpcom_categories: [{ - category: "command-line-handler", - entry: "m-vimperator" - }], - - QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsICommandLineHandler]), - - handle: function (commandLine) - { - // TODO: handle remote launches differently? - try - { - this.optionValue = commandLine.handleFlagWithParam("vimperator", false); - } - catch (e) - { - //"vimperator: option -vimperator requires an argument" - } - } -}; - -function NSGetModule(compMgr, fileSpec) XPCOMUtils.generateModule([CommandLineHandler]); - -// vim: set fdm=marker sw=4 ts=4 et: |