protected static boolean IsXULRunner10 () { return MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10, true); }
protected static boolean IsXULRunner31 () { return MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR31, true); }
protected static boolean IsXULRunner24 () { return MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR24, true); }
int Available (int /*long*/ _retval) { int available = buffer == null ? 0 : buffer.length - index; if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR24)) XPCOM.memmove (_retval, new long[] {available}, 8); else XPCOM.memmove (_retval, new int[] {available}, 4); return XPCOM.NS_OK; }
public static void memmove(boolean[] dest, int /*long*/ src) { if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10)) { byte[] result = new byte[1]; memmove (result, src, 1); dest[0] = result[0] != 0; } else { int[] result = new int[1]; memmove (result, src, 4); dest[0] = result[0] != 0; } }
public static void memmove(int /*long*/ dest, boolean[] src) { if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10)) { memmove (dest, new byte[] {src[0] ? (byte)1 : 0}, 1); } else { memmove (dest, new int[] {src[0] ? 1 : 0}, 4); } }
public static void memmove(long /*int*/ dest, boolean[] src) { if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10)) { memmove (dest, new byte[] {src[0] ? (byte)1 : 0}, 1); } else { memmove (dest, new int[] {src[0] ? 1 : 0}, 4); } }
public static void memmove(int /*long*/ dest, boolean[] src) { if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10)) { memmove (dest, new byte[] {src[0] ? (byte)1 : 0}, 1); } else { memmove (dest, new int[] {src[0] ? 1 : 0}, 4); } }
public static void memmove(int /*long*/ dest, boolean[] src) { if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10)) { memmove (dest, new byte[] {src[0] ? (byte)1 : 0}, 1); } else { memmove (dest, new int[] {src[0] ? 1 : 0}, 4); } }
public static void memmove(boolean[] dest, int /*long*/ src) { if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10)) { byte[] result = new byte[1]; memmove (result, src, 1); dest[0] = result[0] != 0; } else { int[] result = new int[1]; memmove (result, src, 4); dest[0] = result[0] != 0; } }
int Available (int /*long*/ _retval) { int available = buffer == null ? 0 : buffer.length - index; if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR24)) XPCOM.memmove (_retval, new long[] {available}, 8); else XPCOM.memmove (_retval, new int[] {available}, 4); return XPCOM.NS_OK; }
public static void memmove(boolean[] dest, long /*int*/ src) { if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10)) { byte[] result = new byte[1]; memmove (result, src, 1); dest[0] = result[0] != 0; } else { int[] result = new int[1]; memmove (result, src, 4); dest[0] = result[0] != 0; } }
int Available (int /*long*/ _retval) { int available = buffer == null ? 0 : buffer.length - index; if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR24)) XPCOM.memmove (_retval, new long[] {available}, 8); else XPCOM.memmove (_retval, new int[] {available}, 4); return XPCOM.NS_OK; }
public int SerializeToString(int /*long*/ root, int /*long*/[] _retval) { if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR1_8)) { /* >= 1.8.x */ return XPCOM.NS_COMFALSE; } return XPCOM.VtblCall(this.getMethodIndex("serializeToString"), getAddress(), root, _retval); }
public int SerializeToString(int /*long*/ root, int /*long*/ _retval) { if (!MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR1_8)) { /* 1.4.x */ return XPCOM.NS_COMFALSE; } return XPCOM.VtblCall(this.getMethodIndex("serializeToString"), getAddress(), root, _retval); } }
public int SerializeToString(long /*int*/ root, long /*int*/ _retval) { if (!MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR1_8)) { /* 1.4.x */ return XPCOM.NS_COMFALSE; } return XPCOM.VtblCall(this.getMethodIndex("serializeToString"), getAddress(), root, _retval); } }
public int SerializeToString(int /*long*/ root, int /*long*/ _retval) { if (!MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR1_8)) { /* 1.4.x */ return XPCOM.NS_COMFALSE; } return XPCOM.VtblCall(this.getMethodIndex("serializeToString"), getAddress(), root, _retval); } }
@Override public Object evaluate (String script, boolean trusted) throws SWTException { if (!MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR24, false)) { return super.evaluate(script); } if (trusted) { return evaluateAsChrome(script); } else { return evaluateInWindow(script); } }
public int SerializeToString(int /*long*/ root, int /*long*/[] _retval) { if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR1_8)) { /* >= 1.8.x */ return XPCOM.NS_COMFALSE; } return XPCOM.VtblCall(this.getMethodIndex("serializeToString"), getAddress(), root, _retval); }
@Override public Object evaluate (String script, boolean trusted) throws SWTException { if (!MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR24, false)) { return super.evaluate(script); } if (trusted) { return evaluateAsChrome(script); } else { return evaluateInWindow(script); } }