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 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 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 SetObserver (long /*int*/ aObserver) { if (aObserver != 0) { nsISupports supports = new nsISupports (aObserver); long /*int*/[] result = new long /*int*/[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 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 (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); }
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); }
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); }
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); }
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); }
event.doit = result[0] == 0; if (rc == XPCOM.NS_OK && result[0] != 0) { new nsISupports (result[0]).Release ();
new nsISupports (badCertRequest).Release (); badCertRequest = 0;
new nsISupports (badCertRequest).Release (); badCertRequest = 0;
new nsISupports (badCertRequest).Release (); badCertRequest = 0;
new nsISupports (badCertRequest).Release (); badCertRequest = 0;
new nsISupports (badCertRequest).Release (); badCertRequest = 0;
serviceManager.Release(); nsISupports directoryService = new nsISupports (result[0]); result[0] = 0; rc = directoryService.QueryInterface (IIDStore.GetIID (nsIProperties.class), result);
serviceManager.Release(); nsISupports directoryService = new nsISupports (result[0]); result[0] = 0; rc = directoryService.QueryInterface (IIDStore.GetIID (nsIProperties.class), result);
rc = windowWatcher.GetChromeForWindow (topDOMWindow, result); if (rc != XPCOM.NS_OK) Mozilla.error (rc); new nsISupports (topDOMWindow).Release (); windowWatcher.Release (); if (result[0] == 0) return null; /* the parent chrome is disconnected */
rc = windowWatcher.GetChromeForWindow (topDOMWindow, result); if (rc != XPCOM.NS_OK) Mozilla.error (rc); new nsISupports (topDOMWindow).Release (); windowWatcher.Release (); if (result[0] == 0) return null; /* the parent chrome is disconnected */