From e452dfb04b7b32a81520dfc8eea88f22f2ca2a78 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. git-svn-id: svn://10.0.0.236/trunk@85480 18797224-902f-48f8-a5cc-f745e15eee43 --- .../exthandler/nsIExternalHelperAppService.idl | 3 ++- .../exthandler/nsIExternalProtocolService.idl | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/mozilla/uriloader/exthandler/nsIExternalHelperAppService.idl b/mozilla/uriloader/exthandler/nsIExternalHelperAppService.idl index c78ee21e569..ba3ddbe4a7d 100644 --- a/mozilla/uriloader/exthandler/nsIExternalHelperAppService.idl +++ b/mozilla/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/mozilla/uriloader/exthandler/nsIExternalProtocolService.idl b/mozilla/uriloader/exthandler/nsIExternalProtocolService.idl index a75b69af54c..fa45e484406 100644 --- a/mozilla/uriloader/exthandler/nsIExternalProtocolService.idl +++ b/mozilla/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); +};