Mercurial > projects > dwt-linux
diff dwt/browser/FilePickerFactory_1_8.d @ 348:9a4d7706df52
Test Update to fix linux XPCOM interface issues
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Fri, 31 Oct 2008 21:46:44 -0700 |
parents | 5abc6f7f7a95 |
children |
line wrap: on
line diff
--- a/dwt/browser/FilePickerFactory_1_8.d Wed Oct 29 20:12:27 2008 -0700 +++ b/dwt/browser/FilePickerFactory_1_8.d Fri Oct 31 21:46:44 2008 -0700 @@ -25,26 +25,7 @@ class FilePickerFactory_1_8 : FilePickerFactory { -/+ -void createCOMInterfaces () { - /* Create each of the interfaces that this object implements */ - supports = new XPCOMObject (new int[] {2, 0, 0}) { - public int /*long*/ method0 (int /*long*/[] args) {return QueryInterface (args[0], args[1]);} - public int /*long*/ method1 (int /*long*/[] args) {return AddRef ();} - public int /*long*/ method2 (int /*long*/[] args) {return Release ();} - }; - - factory = new XPCOMObject (new int[] {2, 0, 0, 3, 1}) { - public int /*long*/ method0 (int /*long*/[] args) {return QueryInterface (args[0], args[1]);} - public int /*long*/ method1 (int /*long*/[] args) {return AddRef ();} - public int /*long*/ method2 (int /*long*/[] args) {return Release ();} - public int /*long*/ method3 (int /*long*/[] args) {return CreateInstance (args[0], args[1], args[2]);} - public int /*long*/ method4 (int /*long*/[] args) {return LockFactory ((int)/*64*/args[0]);} - }; -} -+/ -/* nsIFactory */ - +extern(System) nsresult CreateInstance (nsISupports aOuter, nsID* iid, void** result) { if (result is null) return XPCOM.NS_ERROR_INVALID_ARG;