1 28 package org.eclipse.swt.internal.mozilla; 29 30 import org.eclipse.swt.internal.*; 31 32 public class XPCOM extends C { 33 public static final String MOZILLA_FIVE_HOME = "MOZILLA_FIVE_HOME"; public static final String MOZILLA_PLUGIN_PATH = "MOZ_PLUGIN_PATH"; public static final String CONTENT_MAYBETEXT = "application/x-vnd.mozilla.maybe-text"; public static final String CONTENT_MULTIPART = "multipart/x-mixed-replace"; public static final String DOMEVENT_FOCUS = "focus"; public static final String DOMEVENT_UNLOAD = "unload"; public static final String DOMEVENT_MOUSEDOWN = "mousedown"; public static final String DOMEVENT_MOUSEUP = "mouseup"; public static final String DOMEVENT_MOUSEMOVE = "mousemove"; public static final String DOMEVENT_MOUSEOVER = "mouseover"; public static final String DOMEVENT_MOUSEOUT = "mouseout"; 45 46 public static final nsID NS_APPSHELL_CID = new nsID("2d96b3df-c051-11d1-a827-0040959a28c9"); public static final nsID NS_CATEGORYMANAGER_CID = new nsID("16d222a6-1dd2-11b2-b693-f38b02c021b2"); public static final nsID NS_DOWNLOAD_CID = new nsID("e3fa9D0a-1dd1-11b2-bdef-8c720b597445"); public static final nsID NS_FILEPICKER_CID = new nsID("54ae32f8-1dd2-11b2-a209-df7c505370f8"); public static final nsID NS_HELPERAPPLAUNCHERDIALOG_CID = new nsID("f68578eb-6ec2-4169-ae19-8c6243f0abe1"); public static final nsID NS_INPUTSTREAMCHANNEL_CID = new nsID("6ddb050c-0d04-11d4-986e-00c04fa0cf4a"); public static final nsID NS_IOSERVICE_CID = new nsID("9ac9e770-18bc-11d3-9337-00104ba0fd40"); public static final nsID NS_LOADGROUP_CID = new nsID("e1c61582-2a84-11d3-8cce-0060b0fc14a3"); public static final nsID NS_PROMPTSERVICE_CID = new nsID("a2112d6a-0e28-421f-b46a-25c0b308cbd0"); 56 public static final String NS_CONTEXTSTACK_CONTRACTID = "@mozilla.org/js/xpc/ContextStack;1"; public static final String NS_COOKIEMANAGER_CONTRACTID = "@mozilla.org/cookiemanager;1"; public static final String NS_DIRECTORYSERVICE_CONTRACTID = "@mozilla.org/file/directory_service;1"; public static final String NS_DOWNLOAD_CONTRACTID = "@mozilla.org/download;1"; public static final String NS_FILEPICKER_CONTRACTID = "@mozilla.org/filepicker;1"; public static final String NS_HELPERAPPLAUNCHERDIALOG_CONTRACTID = "@mozilla.org/helperapplauncherdialog;1"; public static final String NS_MEMORY_CONTRACTID = "@mozilla.org/xpcom/memory-service;1"; public static final String NS_OBSERVER_CONTRACTID = "@mozilla.org/observer-service;1"; public static final String NS_PREFLOCALIZEDSTRING_CONTRACTID = "@mozilla.org/pref-localizedstring;1"; public static final String NS_PREFSERVICE_CONTRACTID = "@mozilla.org/preferences-service;1"; public static final String NS_PROMPTSERVICE_CONTRACTID = "@mozilla.org/embedcomp/prompt-service;1"; public static final String NS_TRANSFER_CONTRACTID = "@mozilla.org/transfer;1"; public static final String NS_WEBNAVIGATIONINFO_CONTRACTID = "@mozilla.org/webnavigation-info;1"; public static final String NS_WINDOWWATCHER_CONTRACTID = "@mozilla.org/embedcomp/window-watcher;1"; 71 72 public static final String NS_APP_CACHE_PARENT_DIR = "cachePDir"; public static final String NS_APP_HISTORY_50_FILE = "UHist"; public static final String NS_APP_LOCALSTORE_50_FILE = "LclSt"; public static final String NS_APP_PLUGINS_DIR_LIST = "APluginsDL"; public static final String NS_APP_PREFS_50_DIR = "PrefD"; public static final String NS_APP_PREFS_50_FILE = "PrefF"; public static final String NS_APP_USER_CHROME_DIR = "UChrm"; public static final String NS_APP_USER_MIMETYPES_50_FILE = "UMimTyp"; public static final String NS_APP_USER_PROFILE_50_DIR = "ProfD"; public static final String NS_GRE_COMPONENT_DIR = "GreComsD"; public static final String NS_GRE_DIR = "GreD"; public static final String NS_OS_CURRENT_PROCESS_DIR = "CurProcD"; public static final String NS_OS_HOME_DIR = "Home"; public static final String NS_OS_TEMP_DIR = "TmpD"; public static final String NS_XPCOM_COMPONENT_DIR = "ComsD"; public static final String NS_XPCOM_CURRENT_PROCESS_DIR = "XCurProcD"; public static final String NS_XPCOM_INIT_CURRENT_PROCESS_DIR = "MozBinD"; 90 91 public static final int NS_OK = 0; 92 public static final int NS_COMFALSE = 1; 93 public static final int NS_BINDING_ABORTED = 0x804B0002; 94 public static final int NS_ERROR_BASE = 0xc1f30000; 95 public static final int NS_ERROR_NOT_INITIALIZED = NS_ERROR_BASE + 1; 96 public static final int NS_ERROR_ALREADY_INITIALIZED = NS_ERROR_BASE + 2; 97 public static final int NS_ERROR_NOT_IMPLEMENTED = 0x80004001; 98 public static final int NS_NOINTERFACE = 0x80004002; 99 public static final int NS_ERROR_NO_INTERFACE = NS_NOINTERFACE; 100 public static final int NS_ERROR_INVALID_POINTER = 0x80004003; 101 public static final int NS_ERROR_NULL_POINTER = NS_ERROR_INVALID_POINTER; 102 public static final int NS_ERROR_ABORT = 0x80004004; 103 public static final int NS_ERROR_FAILURE = 0x80004005; 104 public static final int NS_ERROR_UNEXPECTED = 0x8000ffff; 105 public static final int NS_ERROR_OUT_OF_MEMORY = 0x8007000e; 106 public static final int NS_ERROR_ILLEGAL_VALUE = 0x80070057; 107 public static final int NS_ERROR_INVALID_ARG = NS_ERROR_ILLEGAL_VALUE; 108 public static final int NS_ERROR_NO_AGGREGATION = 0x80040110; 109 public static final int NS_ERROR_NOT_AVAILABLE = 0x80040111; 110 public static final int NS_ERROR_FACTORY_NOT_REGISTERED = 0x80040154; 111 public static final int NS_ERROR_FACTORY_REGISTER_AGAIN = 0x80040155; 112 public static final int NS_ERROR_FACTORY_NOT_LOADED = 0x800401f8; 113 public static final int NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT = NS_ERROR_BASE + 0x101; 114 public static final int NS_ERROR_FACTORY_EXISTS = NS_ERROR_BASE + 0x100; 115 public static final int NS_ERROR_HTMLPARSER_UNRESOLVEDDTD = 0x804e03f3; 116 public static final int NS_ERROR_FILE_NOT_FOUND = 0x80520012; 117 public static final String NS_APP_APPLICATION_REGISTRY_DIR = "AppRegD"; 119 public static final native void memmove(nsID dest, int src, int nbytes); 120 public static final native void memmove(int dest, nsID src, int nbytes); 121 public static final native int NS_GetComponentManager(int [] result); 122 public static final native int NS_GetServiceManager(int [] result); 123 public static final native int NS_InitXPCOM2(int result, int binDirectory, int appFileLocationProvider); 124 public static final native int NS_NewLocalFile(int path, boolean followLinks, int [] result); 125 public static final native int strlen_PRUnichar(int s); 126 public static final native int nsEmbedCString_new(); 127 public static final native int nsEmbedCString_new(byte[] aString, int length); 128 public static final native void nsEmbedCString_delete(int ptr); 129 public static final native int nsEmbedCString_Length(int ptr); 130 public static final native int nsEmbedCString_get(int ptr); 131 public static final native void nsID_delete(int ptr); 132 public static final native int nsID_new(); 133 public static final native boolean nsID_Equals(int ptr, int other); 134 public static final native int nsEmbedString_new(); 135 public static final native int nsEmbedString_new(char[] aString); 136 public static final native void nsEmbedString_delete(int ptr); 137 public static final native int nsEmbedString_Length(int ptr); 138 public static final native int nsEmbedString_get(int ptr); 139 public static final native int XPCOMGlueStartup(byte[] place); 140 public static final native int XPCOMGlueShutdown(); 141 142 public static final native int Call(int ptr, int aInStream, int aClosure, byte[] aFromSegment, int aToOffset, int aCount, int[] aWriteCount); 143 144 static final native int VtblCall(int fnNumber, int ppVtbl); 145 static final native int VtblCall(int fnNumber, int ppVtbl, boolean arg0); 146 static final native int VtblCall(int fnNumber, int ppVtbl, boolean[] arg0); 147 static final native int VtblCall(int fnNumber, int ppVtbl, char[] arg0); 148 static final native int VtblCall(int fnNumber, int ppVtbl, float arg0); 149 static final native int VtblCall(int fnNumber, int ppVtbl, float[] arg0); 150 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0); 151 static final native int VtblCall(int fnNumber, int ppVtbl, int[] arg0); 152 static final native int VtblCall(int fnNumber, int ppVtbl, long arg0); 153 static final native int VtblCall(int fnNumber, int ppVtbl, long[] arg0); 154 static final native int VtblCall(int fnNumber, int ppVtbl, short[] arg0); 155 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int [] arg1); 156 static final native int VtblCall(int fnNumber, int ppVtbl, boolean arg0, boolean[] arg1); 157 static final native int VtblCall(int fnNumber, int ppVtbl, boolean arg0, int arg1); 158 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, boolean[] arg1); 159 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, int[] arg1); 160 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, long[] arg1); 161 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, long arg1); 162 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, int arg1); 163 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, boolean arg1); 164 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, boolean[] arg1); 165 static final native int VtblCall(int fnNumber, int ppVtbl, long arg0, int arg1); 166 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1); 167 static final native int VtblCall(int fnNumber, int ppVtbl, long arg0, long arg1); 168 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, nsID arg1); 169 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, char[] arg1); 170 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, char[] arg1, int arg2); 171 static final native int VtblCall(int fnNumber, int ppVtbl, int[] arg0, int[] arg1); 172 static final native int VtblCall(int fnNumber, int ppVtbl, int[] arg0, long[] arg1); 173 static final native int VtblCall(int fnNumber, int ppVtbl, nsID arg0, boolean[] arg1); 174 static final native int VtblCall(int fnNumber, int ppVtbl, nsID arg0, int arg1); 175 static final native int VtblCall(int fnNumber, int ppVtbl, nsID arg0, int [] arg1); 176 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, boolean arg1, boolean arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, boolean arg9, boolean arg10, boolean arg11, boolean arg12, short arg13, int arg14); 177 static final native int VtblCall(int fnNumber, int ppVtbl, char[] arg0, boolean arg1); 178 static final native int VtblCall(int fnNumber, int ppVtbl, char[] arg0, boolean[] arg1); 179 static final native int VtblCall(int fnNumber, int ppVtbl, char[] arg0, char[] arg1); 180 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, int [] arg1, boolean[] arg2); 181 static final native int VtblCall(int fnNumber, int ppVtbl, int [] arg0, int [] arg1, int [] arg2); 182 static final native int VtblCall(int fnNumber, int ppVtbl, int[] arg0, long[] arg1, int [] arg2); 183 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, int arg1, int[] arg2); 184 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, nsID arg1, boolean[] arg2); 185 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, nsID arg1, int [] arg2); 186 static final native int VtblCall(int fnNumber, int ppVtbl, char[] arg0, int arg1, int [] arg2); 187 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, boolean arg1, boolean arg2); 188 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, boolean arg1, boolean[] arg2); 189 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, char[] arg1, char[] arg2); 190 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, int arg2); 191 static final native int VtblCall(int fnNumber, int ppVtbl, long arg0, long arg1, int arg2); 192 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, long arg1, long arg2); 193 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, long[] arg2); 194 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, int [] arg2); 195 static final native int VtblCall(int fnNumber, int ppVtbl, long arg0, long arg1, int[] arg2); 196 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, nsID arg1, int [] arg2); 197 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, byte[] arg1, boolean[] arg2); 198 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, boolean arg2); 199 static final native int VtblCall(int fnNumber, int ppVtbl, long arg0, long arg1, boolean arg2); 200 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, char[] arg2); 201 static final native int VtblCall(int fnNumber, int ppVtbl, nsID arg0, nsID arg1, boolean[] arg2); 202 static final native int VtblCall(int fnNumber, int ppVtbl, nsID arg0, nsID arg1, int [] arg2); 203 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, boolean arg1, int [] arg2, boolean[] arg3); 204 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, int arg1, nsID arg2, int [] arg3); 205 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, byte[] arg1, int arg2, int [] arg3); 206 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, char[] arg1, char[] arg2, boolean[] arg3); 207 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, char[] arg1, char[] arg2, int [] arg3); 208 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, int arg2, boolean arg3); 209 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, long arg2, boolean arg3); 210 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, int arg2, char[] arg3); 211 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, int arg2, int arg3); 212 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, int arg2, int[] arg3); 213 static final native int VtblCall(int fnNumber, int ppVtbl, int[] arg0, int[] arg1, int[] arg2, int[] arg3); 214 static final native int VtblCall(int fnNumber, int ppVtbl, nsID arg0, byte[] arg1, byte[] arg2, int arg3); 215 static final native int VtblCall(int fnNumber, int ppVtbl, nsID arg0, int arg1, nsID arg2, int [] arg3); 216 static final native int VtblCall(int fnNumber, int ppVtbl, char[] arg0, char[] arg1, char[] arg2, boolean arg3); 217 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, boolean arg1, int arg2, int [] arg3, boolean[] arg4); 218 static final native int VtblCall(int fnNumber, int ppVtbl, char[] arg0, int arg1, int arg2, int arg3, int arg4); 219 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, boolean arg1, boolean arg2, int arg3, int arg4); 220 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, char[] arg1, char[] arg2, char[] arg3, boolean[] arg4); 221 static final native int VtblCall(int fnNumber, int ppVtbl, long arg0, long arg1, long arg2, long arg3, long arg4); 222 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, int arg2, int arg3, boolean arg4); 223 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, int arg2, int arg3, int arg4); 224 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int[] arg1, int[] arg2, int[] arg3, int[] arg4); 225 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, byte[] arg1, byte[] arg2, byte[] arg3, int arg4, int [] arg5); 226 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, char[] arg1, char[] arg2, char[] arg3, boolean[] arg4, boolean[] arg5); 227 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, char[] arg2, int arg3, long arg4, int arg5); 228 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5); 229 static final native int VtblCall(int fnNumber, int ppVtbl, nsID arg0, byte[] arg1, byte[] arg2, int arg3, byte[] arg4, byte[] arg5); 230 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, char[] arg1, char[] arg2, int [] arg3, char[] arg4, boolean[] arg5, boolean[] arg6); 231 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, char[] arg1, char[] arg2, int arg3, int [] arg4, int[] arg5, boolean[] arg6); 232 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, char[] arg1, char[] arg2, int [] arg3, int [] arg4, char[] arg5, boolean[] arg6, boolean[] arg7); 233 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, char[] arg1, char[] arg2, int arg3, char[] arg4, char[] arg5, char[] arg6, char[] arg7, boolean[] arg8, int[] arg9); 234 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, int arg2, boolean arg3, char[] arg4, int arg5, int arg6, int arg7, int arg8, boolean arg9, int [] arg10, int [] arg11); 235 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0); 236 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, byte[] arg1, boolean arg2); 237 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, byte[] arg1, int [] arg2); 238 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, byte[] arg1, byte[] arg2, boolean arg3, boolean arg4, int [] arg5); 239 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, byte[] arg1); 240 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, int[] arg1, int [] arg2); 241 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, nsID arg1, int arg2); 242 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, long arg2, long arg3, long arg4, long arg5); 243 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, int arg2, int arg3, long arg4, int arg5, int arg6); 244 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, byte[] arg1); 245 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, byte[] arg1, boolean arg2); 246 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, byte[] arg1, char[] arg2); 247 static final native int VtblCall(int fnNumber, int ppVtbl, byte[] arg0, boolean[] arg1, int [] arg2); 248 static final native int VtblCall(int fnNumber, int ppVtbl, int arg0, int arg1, int arg2, int arg3, boolean[] arg4, int [] arg5); 249 } 250 | Popular Tags |