internal PromptSaveToDiskEventArgs(nsIHelperAppLauncher launcher, String defaultFileName, String suggestedFileExtension, Boolean forcePrompt) : base(launcher) { this.m_DefaultFileName = defaultFileName; this.m_ForcePrompt = forcePrompt; this.m_SuggestedFileExtension = suggestedFileExtension; }
public void Show(nsIHelperAppLauncher aLauncher, nsISupports aWindowContext, uint aReason) { if (Download != null) { Download(this, new LauncherDialogEvent(aLauncher, aWindowContext, aReason)); } else { aLauncher.Cancel(nsIHelperAppLauncherConstants.NS_BINDING_ABORTED); } }
void nsIHelperAppLauncherDialog.Show(nsIHelperAppLauncher aLauncher, Object aWindowContext, UInt32 aReason) { Trace.TraceInformation("nsIHelperAppLauncherDialog.Show"); WebBrowser browser = GetBrowserFromWindowContext(aWindowContext); if (browser == null) { Trace.TraceWarning("Can't get Browser object from window context"); return; } var e = new PromptAppLaunchEventArgs(aLauncher); browser.Events.Raise(EventKey.PromptAppLaunch, e); }
nsILocalFile nsIHelperAppLauncherDialog.PromptForSaveToFile(nsIHelperAppLauncher aLauncher, Object aWindowContext, String aDefaultFileName, String aSuggestedFileExtension, Boolean aForcePrompt) { Trace.TraceInformation("nsIHelperAppLauncherDialog.PromptForSaveToFile"); WebBrowser browser = GetBrowserFromWindowContext(aWindowContext); if (browser == null) { Trace.TraceWarning("Can't get Browser object from window context"); return null; } var e = new PromptSaveToDiskEventArgs(aLauncher, aDefaultFileName, aSuggestedFileExtension, aForcePrompt); browser.Events.Raise(EventKey.PromptSaveToDisk, e); //TODO: Return selected file or call aLauncher.SaveToDisk() ? return null; }
public void PromptForSaveToFileAsync(nsIHelperAppLauncher aLauncher, nsISupports aWindowContext, string aDefaultFileName, string aSuggestedFileExtension, bool aForcePrompt) { throw new NotImplementedException(); }
public /*nsILocalFile*/ nsISupports PromptForSaveToFile(nsIHelperAppLauncher aLauncher, nsISupports aWindowContext, string aDefaultFileName, string aSuggestedFileExtension, bool aForcePrompt) { aLauncher.Cancel(nsIHelperAppLauncherConstants.NS_BINDING_ABORTED); return(null); }
public LauncherDialogEvent(nsIHelperAppLauncher aLauncher, nsISupports aWindowContext, uint aReason) { HelperAppLauncher = aLauncher; WebNavigation = aWindowContext as nsIWebNavigation; }
public LauncherDialogEvent(nsIHelperAppLauncher aLauncher, nsISupports aWindowContext, uint aReason) { HelperAppLauncher = aLauncher; WebNavigation = (nsIWebNavigation)aWindowContext; }
public nsILocalFile PromptForSaveToFile(nsIHelperAppLauncher aLauncher, nsISupports aWindowContext, string aDefaultFileName, string aSuggestedFileExtension, bool aForcePrompt) { aLauncher.Cancel(nsIHelperAppLauncherConstants.NS_BINDING_ABORTED); return null; }
internal PromptAppLaunchEventArgs(nsIHelperAppLauncher launcher) { this.m_Launcher = launcher; }