int SetFocus () { long /*int*/[] result = new long /*int*/[1]; int rc = webBrowser.QueryInterface (nsIBaseWindow.NS_IBASEWINDOW_10_IID, result); if (rc != XPCOM.NS_OK) { rc = webBrowser.QueryInterface (nsIBaseWindow.NS_IBASEWINDOW_IID, result); if (rc != XPCOM.NS_OK) error (rc); } if (result[0] == 0) error (XPCOM.NS_ERROR_NO_INTERFACE); nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); rc = baseWindow.SetFocus (); if (rc != XPCOM.NS_OK) error (rc); baseWindow.Release (); /* * Note. Mozilla notifies here that one of the children took * focus. This could or should be used to fire an SWT.FOCUS_IN * event on Browser focus listeners. */ return XPCOM.NS_OK; }
int SetFocus () { int /*long*/[] result = new int /*long*/[1]; int rc = webBrowser.QueryInterface (IIDStore.GetIID (nsIBaseWindow.class), result); if (rc != XPCOM.NS_OK) { browser.dispose (); error (rc); } if (result[0] == 0) error (XPCOM.NS_ERROR_NO_INTERFACE); nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); rc = baseWindow.SetFocus (); if (rc != XPCOM.NS_OK) error (rc); baseWindow.Release (); /* * Note. Mozilla notifies here that one of the children took * focus. This could or should be used to fire an SWT.FOCUS_IN * event on Browser focus listeners. */ return XPCOM.NS_OK; }
int SetFocus () { int /*long*/[] result = new int /*long*/[1]; int rc = webBrowser.QueryInterface (IIDStore.GetIID (nsIBaseWindow.class), result); if (rc != XPCOM.NS_OK) { browser.dispose (); error (rc); } if (result[0] == 0) error (XPCOM.NS_ERROR_NO_INTERFACE); nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); rc = baseWindow.SetFocus (); if (rc != XPCOM.NS_OK) error (rc); baseWindow.Release (); /* * Note. Mozilla notifies here that one of the children took * focus. This could or should be used to fire an SWT.FOCUS_IN * event on Browser focus listeners. */ return XPCOM.NS_OK; }
int SetFocus () { long /*int*/[] result = new long /*int*/[1]; int rc = webBrowser.QueryInterface (IIDStore.GetIID (nsIBaseWindow.class), result); if (rc != XPCOM.NS_OK) { browser.dispose (); error (rc); } if (result[0] == 0) error (XPCOM.NS_ERROR_NO_INTERFACE); nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); rc = baseWindow.SetFocus (); if (rc != XPCOM.NS_OK) error (rc); baseWindow.Release (); /* * Note. Mozilla notifies here that one of the children took * focus. This could or should be used to fire an SWT.FOCUS_IN * event on Browser focus listeners. */ return XPCOM.NS_OK; }
int SetFocus () { int /*long*/[] result = new int /*long*/[1]; int rc = webBrowser.QueryInterface (IIDStore.GetIID (nsIBaseWindow.class), result); if (rc != XPCOM.NS_OK) { browser.dispose (); error (rc); } if (result[0] == 0) error (XPCOM.NS_ERROR_NO_INTERFACE); nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); rc = baseWindow.SetFocus (); if (rc != XPCOM.NS_OK) error (rc); baseWindow.Release (); /* * Note. Mozilla notifies here that one of the children took * focus. This could or should be used to fire an SWT.FOCUS_IN * event on Browser focus listeners. */ return XPCOM.NS_OK; }