int GetDisplayDirectory (long /*int*/ aDisplayDirectory) { String directoryName = directory != null ? directory : ""; //$NON-NLS-1$ nsEmbedString path = new nsEmbedString (directoryName); long /*int*/[] file = new long /*int*/[1]; int rc = XPCOM.NS_NewLocalFile (path.getAddress (), 1, file); path.dispose (); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (file[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); XPCOM.memmove (aDisplayDirectory, file, C.PTR_SIZEOF); return XPCOM.NS_OK; }
int SetDisplayDirectory (int /*long*/ aDisplayDirectory) { if (aDisplayDirectory == 0) return XPCOM.NS_OK; nsILocalFile file = new nsILocalFile (aDisplayDirectory); nsEmbedString pathname = new nsEmbedString (); int rc = file.GetPath (pathname.getAddress()); if (rc != XPCOM.NS_OK) Mozilla.error (rc); directory = pathname.toString (); pathname.dispose (); return XPCOM.NS_OK; }
@Override String parseAString (int /*long*/ string) { return new nsEmbedString (string).toString (); } }
nsEmbedString data = new nsEmbedString ("(function(){" + script + "}())"); execute.EvalAsChrome(window, data, result); data.dispose (); execute.Release (); if (result[0] == 0) return null;
public int EvalAsChrome(nsIDOMWindow aWindow, nsEmbedString code, long /*int*/[] aVariant) { return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aWindow.getAddress(), code.getAddress(), aVariant); }
nsEmbedString data = new nsEmbedString ("(function(){" + script + "}())"); execute.EvalInWindow (window, data, result); data.dispose (); execute.Release (); if (result[0] == 0) return null;
public int EvalInWindow(nsIDOMWindow aWindow, nsEmbedString code, int /*long*/[] aVariant) { return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), aWindow.getAddress(), code.getAddress(), aVariant); }
@Override String parseAString (int /*long*/ string) { return new nsEmbedString (string).toString (); } }
int GetFile (long /*int*/ aFile) { String filename = ""; //$NON-NLS-1$ if (directory != null) filename += directory + SEPARATOR; if (files != null && files.length > 0) filename += files[0]; nsEmbedString path = new nsEmbedString (filename); long /*int*/[] file = new long /*int*/[1]; int rc = XPCOM.NS_NewLocalFile (path.getAddress (), 1, file); path.dispose (); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (file[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); XPCOM.memmove (aFile, file, C.PTR_SIZEOF); return XPCOM.NS_OK; }
int SetDisplayDirectory (int /*long*/ aDisplayDirectory) { if (aDisplayDirectory == 0) return XPCOM.NS_OK; nsILocalFile file = new nsILocalFile (aDisplayDirectory); nsEmbedString pathname = new nsEmbedString (); int rc = file.GetPath (pathname.getAddress()); if (rc != XPCOM.NS_OK) Mozilla.error (rc); directory = pathname.toString (); pathname.dispose (); return XPCOM.NS_OK; }
nsEmbedString data = new nsEmbedString ("(function(){" + script + "}())"); execute.EvalAsChrome(window, data, result); data.dispose (); execute.Release (); if (result[0] == 0) return null;
public int EvalInWindow(nsIDOMWindow aWindow, nsEmbedString code, int /*long*/[] aVariant) { return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), aWindow.getAddress(), code.getAddress(), aVariant); }
@Override String parseAString (long /*int*/ string) { return new nsEmbedString (string).toString (); } }
int GetDisplayDirectory (long /*int*/ aDisplayDirectory) { String directoryName = directory != null ? directory : ""; //$NON-NLS-1$ nsEmbedString path = new nsEmbedString (directoryName); long /*int*/[] file = new long /*int*/[1]; int rc = XPCOM.NS_NewLocalFile (path.getAddress (), 1, file); path.dispose (); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (file[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); XPCOM.memmove (aDisplayDirectory, file, C.PTR_SIZEOF); return XPCOM.NS_OK; }
int SetDisplayDirectory (int /*long*/ aDisplayDirectory) { if (aDisplayDirectory == 0) return XPCOM.NS_OK; nsILocalFile file = new nsILocalFile (aDisplayDirectory); nsEmbedString pathname = new nsEmbedString (); int rc = file.GetPath (pathname.getAddress()); if (rc != XPCOM.NS_OK) Mozilla.error (rc); directory = pathname.toString (); pathname.dispose (); return XPCOM.NS_OK; }
nsEmbedString data = new nsEmbedString ("(function(){" + script + "}())"); execute.EvalAsChrome(window, data, result); data.dispose (); execute.Release (); if (result[0] == 0) return null;
public int EvalAsChrome(nsIDOMWindow aWindow, nsEmbedString code, int /*long*/[] aVariant) { return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aWindow.getAddress(), code.getAddress(), aVariant); }
@Override String parseAString (int /*long*/ string) { return new nsEmbedString (string).toString (); } }
int GetDisplayDirectory (int /*long*/ aDisplayDirectory) { String directoryName = directory != null ? directory : ""; //$NON-NLS-1$ nsEmbedString path = new nsEmbedString (directoryName); int /*long*/[] file = new int /*long*/[1]; int rc = XPCOM.NS_NewLocalFile (path.getAddress (), 1, file); path.dispose (); if (rc != XPCOM.NS_OK) Mozilla.error (rc); if (file[0] == 0) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); XPCOM.memmove (aDisplayDirectory, file, C.PTR_SIZEOF); return XPCOM.NS_OK; }
int SetDisplayDirectory (long /*int*/ aDisplayDirectory) { if (aDisplayDirectory == 0) return XPCOM.NS_OK; nsILocalFile file = new nsILocalFile (aDisplayDirectory); nsEmbedString pathname = new nsEmbedString (); int rc = file.GetPath (pathname.getAddress()); if (rc != XPCOM.NS_OK) Mozilla.error (rc); directory = pathname.toString (); pathname.dispose (); return XPCOM.NS_OK; }