Change to coroutine infrastructure
[conkeror.git] / components / commandline.js
bloba42b6fe30455ac5f57b7cf57bfc47a365349f6cd
1 const Cc = Components.classes;
2 const Ci = Components.interfaces;
3 Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
5 function cmdline() {}
6 cmdline.prototype = {
7     handle: function (cmdline) {
8         cmdline.preventDefault = true;
9         var conkeror = Cc["@conkeror.mozdev.org/application;1"].getService().wrappedJSObject;
10         conkeror.handle_command_line(cmdline);
11     },
12     QueryInterface: XPCOMUtils.generateQI([Ci.nsICommandLineHandler]),
13     contractID: "@mozilla.org/commandlinehandler/general-startup;1?type=conkeror",
14     classID: Components.ID("{0f4dd758-b55a-4386-a79c-8698642eac51}"),
15     classDescription: "clh_conkeror",
16     _xpcom_categories: [{
17             category: "command-line-handler",
18             entry: "y-conkeror"
19         }]
22 function NSGetModule(compMgr, fileSpec)
23     XPCOMUtils.generateModule([cmdline]);