int createBaseWindow (nsIBaseWindow baseWindow) { return baseWindow.Create (); }
public int SetFocus() { return XPCOM.VtblCall(this.getMethodIndex("setFocus"), getAddress()); } }
public int GetParentNativeWindow(int /*long*/[] aParentNativeWindow) { return XPCOM.VtblCall(this.getGetterIndex("parentNativeWindow"), getAddress(), aParentNativeWindow); }
public int SetVisibility(int aVisibility) { return XPCOM.VtblCall(this.getSetterIndex("visibility"), getAddress(), aVisibility); }
nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); result[0] = 0; Rectangle rect = browser.getClientArea (); rc = baseWindow.InitWindow (embedHandle, 0, 0, 0, rect.width, rect.height); if (rc != XPCOM.NS_OK) { browser.dispose (); error (XPCOM.NS_ERROR_FAILURE); rc = baseWindow.SetVisibility (1); if (rc != XPCOM.NS_OK) { browser.dispose (); error (XPCOM.NS_ERROR_FAILURE); baseWindow.Release ();
void onResize () { Rectangle rect = browser.getClientArea (); int width = Math.max (1, rect.width); int height = Math.max (1, rect.height); 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); delegate.setSize (embedHandle, width, height); nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); rc = baseWindow.SetPositionAndSize (0, 0, width, height, 1); if (rc != XPCOM.NS_OK) error (rc); baseWindow.Release (); }
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; }
nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); rc = baseWindow.Destroy (); if (rc != XPCOM.NS_OK) error (rc); baseWindow.Release ();
webBrowser.Release (); nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); result[0] = 0; long /*int*/[] aParentNativeWindow = new long /*int*/[1]; rc = baseWindow.GetParentNativeWindow (aParentNativeWindow); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (aParentNativeWindow[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NO_INTERFACE); baseWindow.Release ();
public int SetVisibility(int aVisibility) { return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + (IsXULRunner17 ? 17 : 16), getAddress(), aVisibility); }
nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); result[0] = 0; Rectangle rect = browser.getClientArea (); rc = baseWindow.InitWindow (embedHandle, 0, 0, 0, rect.width, rect.height); if (rc != XPCOM.NS_OK) { browser.dispose (); error (XPCOM.NS_ERROR_FAILURE); rc = baseWindow.SetVisibility (1); if (rc != XPCOM.NS_OK) { browser.dispose (); error (XPCOM.NS_ERROR_FAILURE); baseWindow.Release ();
void onResize () { Rectangle rect = browser.getClientArea (); int width = Math.max (1, rect.width); int height = Math.max (1, rect.height); 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); Point size = delegate.getNativeSize (width, height); delegate.setSize (embedHandle, size.x, size.y); nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); rc = baseWindow.SetPositionAndSize (0, 0, size.x, size.y, 1); if (rc != XPCOM.NS_OK) error (rc); baseWindow.Release (); }
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; }
nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); rc = baseWindow.Destroy (); if (rc != XPCOM.NS_OK) error (rc); baseWindow.Release ();
webBrowser.Release (); nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); result[0] = 0; int /*long*/[] aParentNativeWindow = new int /*long*/[1]; rc = baseWindow.GetParentNativeWindow (aParentNativeWindow); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (aParentNativeWindow[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NO_INTERFACE); baseWindow.Release ();
public int SetFocus() { return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + (IsXULRunner17 ? 21 : (IsXULRunner10 ? 20 : 22)), getAddress()); } }
public int GetParentNativeWindow(int /*long*/[] aParentNativeWindow) { return XPCOM.VtblCall(this.getGetterIndex("parentNativeWindow"), getAddress(), aParentNativeWindow); }
public int SetVisibility(int aVisibility) { return XPCOM.VtblCall(this.getSetterIndex("visibility"), getAddress(), aVisibility); }
nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); result[0] = 0; Rectangle rect = browser.getClientArea (); rc = baseWindow.InitWindow (embedHandle, 0, 0, 0, rect.width, rect.height); if (rc != XPCOM.NS_OK) { browser.dispose (); error (XPCOM.NS_ERROR_FAILURE); rc = baseWindow.SetVisibility (1); if (rc != XPCOM.NS_OK) { browser.dispose (); error (XPCOM.NS_ERROR_FAILURE); baseWindow.Release ();
void onResize () { Rectangle rect = DPIUtil.autoScaleUp (browser.getClientArea ()); // To Pixels int width = Math.max (1, rect.width); int height = Math.max (1, rect.height); 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); Point size = delegate.getNativeSize (width, height); delegate.setSize (embedHandle, size.x, size.y); nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]); rc = baseWindow.SetPositionAndSize (0, 0, size.x, size.y, 1); if (rc != XPCOM.NS_OK) error (rc); baseWindow.Release (); }