1 28 package org.eclipse.swt.internal.mozilla; 29 30 public class nsIComponentManager extends nsISupports { 31 32 static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 4; 33 34 public static final String NS_ICOMPONENTMANAGER_IID_STR = 35 "a88e5a60-205a-4bb1-94e1-2628daf51eae"; 36 37 public static final nsID NS_ICOMPONENTMANAGER_IID = 38 new nsID(NS_ICOMPONENTMANAGER_IID_STR); 39 40 public nsIComponentManager(int address) { 41 super(address); 42 } 43 44 public int GetClassObject(nsID aClass, nsID aIID, int [] result) { 45 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), aClass, aIID, result); 46 } 47 48 public int GetClassObjectByContractID(byte[] aContractID, nsID aIID, int [] result) { 49 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aContractID, aIID, result); 50 } 51 52 public int CreateInstance(nsID aClass, int aDelegate, nsID aIID, int [] result) { 53 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aClass, aDelegate, aIID, result); 54 } 55 56 public int CreateInstanceByContractID(byte[] aContractID, int aDelegate, nsID aIID, int [] result) { 57 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), aContractID, aDelegate, aIID, result); 58 } 59 } | Popular Tags |