From d6bd86376168fcb010313e3c5ff0ebe08411a5aa Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Thu, 25 Jan 2001 06:47:12 +0000 Subject: [PATCH] Bug #63346 --> add open and open folder APIs for the OS. Bug #61947 --> pass in the initial time when we started the download via getDownloadInfo so the progress dialog can use this information. --- .../exthandler/nsIExternalHelperAppService.idl | 3 ++- .../exthandler/nsIExternalProtocolService.idl | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/uriloader/exthandler/nsIExternalHelperAppService.idl b/uriloader/exthandler/nsIExternalHelperAppService.idl index c78ee21e5698..ba3ddbe4a7df 100644 --- a/uriloader/exthandler/nsIExternalHelperAppService.idl +++ b/uriloader/exthandler/nsIExternalHelperAppService.idl @@ -96,6 +96,7 @@ interface nsIHelperAppLauncher : nsISupports void closeProgressWindow(); // aSourceUrl--> the url we are downloading....and the file we are saving too - nsIFile getDownloadInfo(out nsIURI aSourceUrl); + // aTimeDownloadStarted --> time in ms that the download actually began + nsIFile getDownloadInfo(out nsIURI aSourceUrl, out long long aTimeDownloadStarted); }; diff --git a/uriloader/exthandler/nsIExternalProtocolService.idl b/uriloader/exthandler/nsIExternalProtocolService.idl index a75b69af54ce..fa45e4844064 100644 --- a/uriloader/exthandler/nsIExternalProtocolService.idl +++ b/uriloader/exthandler/nsIExternalProtocolService.idl @@ -31,6 +31,7 @@ #include "nsISupports.idl" interface nsIURI; +interface nsIFile; [scriptable, uuid(100FD4B3-4557-11d4-98D0-001083010E9B)] interface nsIExternalProtocolService : nsISupports @@ -42,4 +43,16 @@ interface nsIExternalProtocolService : nsISupports // used to load a url via an external protocol handler (if one exists) // aURL --> the url to load void loadUrl (in nsIURI aURL); -}; + + // i may need to find a better interface for the following two methods. I'm not sure yet + // (mscott) + // open --> Ask the operating system to attempt to open aFile. This is used as a quick + // and easy way for one to automatically open a file using the application associated + // with that file. + void open(in nsIFile aFile); + // openFolder --> Ask the operating system to open the folder and select the file + // specified by aFile. If aFile doesn't include the actual file and is just a folder + // name then we'll just open that folder. this routine only works on platforms which + // support the ability to open a folder... + void openFolder(in nsIFile aFile); +};