int CreateInstance (long /*int*/ aOuter, long /*int*/ iid, long /*int*/ result) { if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10)) { FilePicker_10 picker = new FilePicker_10 (); picker.AddRef (); XPCOM.memmove (result, new long /*int*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } else if (Mozilla.IsXULRunner) { FilePicker_1_8 picker = new FilePicker_1_8 (); picker.AddRef (); XPCOM.memmove (result, new long /*int*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } else { FilePicker picker = new FilePicker (); picker.AddRef (); XPCOM.memmove (result, new long /*int*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } return XPCOM.NS_OK; }
int CreateInstance (int /*long*/ aOuter, int /*long*/ iid, int /*long*/ result) { if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10)) { FilePicker_10 picker = new FilePicker_10 (); picker.AddRef (); XPCOM.memmove (result, new int /*long*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } else if (Mozilla.IsXULRunner) { FilePicker_1_8 picker = new FilePicker_1_8 (); picker.AddRef (); XPCOM.memmove (result, new int /*long*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } else { FilePicker picker = new FilePicker (); picker.AddRef (); XPCOM.memmove (result, new int /*long*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } return XPCOM.NS_OK; }
int CreateInstance (int /*long*/ aOuter, int /*long*/ iid, int /*long*/ result) { if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10)) { FilePicker_10 picker = new FilePicker_10 (); picker.AddRef (); XPCOM.memmove (result, new int /*long*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } else if (Mozilla.IsXULRunner) { FilePicker_1_8 picker = new FilePicker_1_8 (); picker.AddRef (); XPCOM.memmove (result, new int /*long*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } else { FilePicker picker = new FilePicker (); picker.AddRef (); XPCOM.memmove (result, new int /*long*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } return XPCOM.NS_OK; }
int CreateInstance (int /*long*/ aOuter, int /*long*/ iid, int /*long*/ result) { if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10)) { FilePicker_10 picker = new FilePicker_10 (); picker.AddRef (); XPCOM.memmove (result, new int /*long*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } else if (Mozilla.IsXULRunner) { FilePicker_1_8 picker = new FilePicker_1_8 (); picker.AddRef (); XPCOM.memmove (result, new int /*long*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } else { FilePicker picker = new FilePicker (); picker.AddRef (); XPCOM.memmove (result, new int /*long*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } return XPCOM.NS_OK; }
int CreateInstance (long /*int*/ aOuter, long /*int*/ iid, long /*int*/ result) { if (!Mozilla.IsPre_17) { FilePicker_17 picker = new FilePicker_17 (); picker.AddRef (); XPCOM.memmove (result, new long /*int*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } else if (!Mozilla.IsPre_4) { FilePicker_10 picker = new FilePicker_10 (); picker.AddRef (); XPCOM.memmove (result, new long /*int*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } else if (Mozilla.IsXULRunner) { FilePicker_1_8 picker = new FilePicker_1_8 (); picker.AddRef (); XPCOM.memmove (result, new long /*int*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } else { FilePicker picker = new FilePicker (); picker.AddRef (); XPCOM.memmove (result, new long /*int*/[] {picker.getAddress ()}, C.PTR_SIZEOF); } return XPCOM.NS_OK; }