1 11 package org.eclipse.swt.browser; 12 13 import org.eclipse.swt.internal.C; 14 import org.eclipse.swt.internal.mozilla.*; 15 16 class FilePickerFactory_1_8 extends FilePickerFactory { 17 18 void createCOMInterfaces () { 19 20 supports = new XPCOMObject (new int[] {2, 0, 0}) { 21 public int method0 (int [] args) {return QueryInterface (args[0], args[1]);} 22 public int method1 (int [] args) {return AddRef ();} 23 public int method2 (int [] args) {return Release ();} 24 }; 25 26 factory = new XPCOMObject (new int[] {2, 0, 0, 3, 1}) { 27 public int method0 (int [] args) {return QueryInterface (args[0], args[1]);} 28 public int method1 (int [] args) {return AddRef ();} 29 public int method2 (int [] args) {return Release ();} 30 public int method3 (int [] args) {return CreateInstance (args[0], args[1], args[2]);} 31 public int method4 (int [] args) {return LockFactory (args[0]);} 32 }; 33 } 34 35 36 37 public int CreateInstance (int aOuter, int iid, int result) { 38 FilePicker_1_8 picker = new FilePicker_1_8 (); 39 picker.AddRef (); 40 XPCOM.memmove (result, new int [] {picker.getAddress ()}, C.PTR_SIZEOF); 41 return XPCOM.NS_OK; 42 } 43 44 } 45 | Popular Tags |