public int Cancel() { return XPCOM.VtblCall(this.getMethodIndex("cancel"), getAddress()); } }
int Show (long /*int*/ aLauncher, long /*int*/ aContext, int aReason) { /* * The interface for nsIHelperAppLauncher changed as of mozilla 1.8. Query the received * nsIHelperAppLauncher for the new interface, and if it is not found then fall back to * the old interface. */ nsISupports supports = new nsISupports (aLauncher); long /*int*/[] result = new long /*int*/[1]; int rc = supports.QueryInterface (nsIHelperAppLauncher_1_8.NS_IHELPERAPPLAUNCHER_IID, result); if (rc == XPCOM.NS_OK) { /* >= 1.8 */ nsIHelperAppLauncher_1_8 helperAppLauncher = new nsIHelperAppLauncher_1_8 (aLauncher); rc = helperAppLauncher.SaveToDisk (0, 0); helperAppLauncher.Release (); return rc; } nsIHelperAppLauncher helperAppLauncher = new nsIHelperAppLauncher (aLauncher); /* < 1.8 */ return helperAppLauncher.SaveToDisk (0, 0); }
rc = launcher.Cancel (XPCOM.NS_BINDING_ABORTED); } else { nsIHelperAppLauncher launcher = new nsIHelperAppLauncher (arg0); rc = launcher.Cancel ();
public int LaunchWithApplication(long /*int*/ aApplication, int aRememberThisPreference) { return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), aApplication, aRememberThisPreference); }
int OnStateChange (int /*long*/ aWebProgress, int /*long*/ aRequest, int aStateFlags, int aStatus) { if ((aStateFlags & nsIWebProgressListener.STATE_STOP) != 0) { if (helperAppLauncher != null) helperAppLauncher.Release (); helperAppLauncher = null; if (shell != null && !shell.isDisposed ()) shell.dispose (); shell = null; } return XPCOM.NS_OK; }
int SetObserver (long /*int*/ aObserver) { if (aObserver != 0) { nsISupports supports = new nsISupports (aObserver); long /*int*/[] result = new long /*int*/[1]; int rc = supports.QueryInterface (nsIHelperAppLauncher.NS_IHELPERAPPLAUNCHER_IID, result); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (result[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NO_INTERFACE); helperAppLauncher = new nsIHelperAppLauncher (result[0]); } return XPCOM.NS_OK; }
int Show (long /*int*/ aLauncher, long /*int*/ aContext, int aReason) { /* * The interface for nsIHelperAppLauncher changed as of mozilla 1.8. Query the received * nsIHelperAppLauncher for the new interface, and if it is not found then fall back to * the old interface. */ nsISupports supports = new nsISupports (aLauncher); long /*int*/[] result = new long /*int*/[1]; int rc = supports.QueryInterface (IIDStore.GetIID (nsIHelperAppLauncher_1_8.class), result); if (rc == XPCOM.NS_OK) { /* >= 1.8 */ nsIHelperAppLauncher_1_8 helperAppLauncher = new nsIHelperAppLauncher_1_8 (aLauncher); rc = helperAppLauncher.SaveToDisk (0, 0); helperAppLauncher.Release (); return rc; } nsIHelperAppLauncher helperAppLauncher = new nsIHelperAppLauncher (aLauncher); /* < 1.8 */ return helperAppLauncher.SaveToDisk (0, 0); }
rc = launcher.Cancel (XPCOM.NS_BINDING_ABORTED); } else { nsIHelperAppLauncher launcher = new nsIHelperAppLauncher (arg0); rc = launcher.Cancel ();
public int Cancel() { return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress()); }
int OnStateChange (long /*int*/ aWebProgress, long /*int*/ aRequest, int aStateFlags, int aStatus) { if ((aStateFlags & nsIWebProgressListener.STATE_STOP) != 0) { if (helperAppLauncher != null) helperAppLauncher.Release (); helperAppLauncher = null; if (shell != null && !shell.isDisposed ()) shell.dispose (); shell = null; } return XPCOM.NS_OK; }
int SetObserver (int /*long*/ aObserver) { if (aObserver != 0) { nsISupports supports = new nsISupports (aObserver); int /*long*/[] result = new int /*long*/[1]; int rc = supports.QueryInterface (IIDStore.GetIID (nsIHelperAppLauncher.class), result); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (result[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NO_INTERFACE); helperAppLauncher = new nsIHelperAppLauncher (result[0]); } return XPCOM.NS_OK; }
int Show (int /*long*/ aLauncher, int /*long*/ aContext, int aReason) { /* * The interface for nsIHelperAppLauncher changed as of mozilla 1.8. Query the received * nsIHelperAppLauncher for the new interface, and if it is not found then fall back to * the old interface. */ nsISupports supports = new nsISupports (aLauncher); int /*long*/[] result = new int /*long*/[1]; int rc = supports.QueryInterface (IIDStore.GetIID (nsIHelperAppLauncher_1_8.class), result); if (rc == XPCOM.NS_OK) { /* >= 1.8 */ nsIHelperAppLauncher_1_8 helperAppLauncher = new nsIHelperAppLauncher_1_8 (aLauncher); rc = helperAppLauncher.SaveToDisk (0, 0); helperAppLauncher.Release (); return rc; } nsIHelperAppLauncher helperAppLauncher = new nsIHelperAppLauncher (aLauncher); /* < 1.8 */ return helperAppLauncher.SaveToDisk (0, 0); }
rc = launcher.Cancel (XPCOM.NS_BINDING_ABORTED); } else { nsIHelperAppLauncher launcher = new nsIHelperAppLauncher (arg0); rc = launcher.Cancel ();
public int Cancel() { return XPCOM.VtblCall(this.getMethodIndex("cancel"), getAddress()); } }
public int GetSuggestedFileName(long /*int*/[] aSuggestedFileName) { return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aSuggestedFileName); }
int OnStateChange (int /*long*/ aWebProgress, int /*long*/ aRequest, int aStateFlags, int aStatus) { if ((aStateFlags & nsIWebProgressListener.STATE_STOP) != 0) { if (helperAppLauncher != null) helperAppLauncher.Release (); helperAppLauncher = null; if (shell != null && !shell.isDisposed ()) shell.dispose (); shell = null; } return XPCOM.NS_OK; }
int SetObserver (int /*long*/ aObserver) { if (aObserver != 0) { nsISupports supports = new nsISupports (aObserver); int /*long*/[] result = new int /*long*/[1]; int rc = supports.QueryInterface (IIDStore.GetIID (nsIHelperAppLauncher.class), result); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (result[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NO_INTERFACE); helperAppLauncher = new nsIHelperAppLauncher (result[0]); } return XPCOM.NS_OK; }