1 28 package org.eclipse.swt.internal.mozilla; 29 30 public class nsIFactory extends nsISupports { 31 32 static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 2; 33 34 public static final String NS_IFACTORY_IID_STR = 35 "00000001-0000-0000-c000-000000000046"; 36 37 public static final nsID NS_IFACTORY_IID = 38 new nsID(NS_IFACTORY_IID_STR); 39 40 public nsIFactory(int address) { 41 super(address); 42 } 43 44 public int CreateInstance(int aOuter, nsID iid, int [] result) { 45 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), aOuter, iid, result); 46 } 47 48 public int LockFactory(boolean lock) { 49 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), lock); 50 } 51 } | Popular Tags |