1 11 package org.eclipse.swt.internal.mozilla; 12 13 import java.util.*; 14 import org.eclipse.swt.*; 15 import org.eclipse.swt.internal.*; 16 17 public class XPCOMObject { 18 19 private int ppVtable; 20 21 static private final int MAX_ARG_COUNT = 12; 22 static private final int MAX_VTABLE_LENGTH = 80; 23 static private Callback[][] Callbacks = new Callback[MAX_VTABLE_LENGTH][MAX_ARG_COUNT]; 24 static private Hashtable ObjectMap = new Hashtable (); 25 26 public XPCOMObject (int[] argCounts) { 27 int [] callbackAddresses = new int [argCounts.length]; 28 synchronized (Callbacks) { 29 for (int i = 0, length = argCounts.length; i < length; i++){ 30 if ((Callbacks[i][argCounts[i]]) == null) { 31 Callbacks[i][argCounts[i]] = new Callback (getClass (), "callback"+i, argCounts[i] + 1, true); } 33 callbackAddresses[i] = Callbacks[i][argCounts[i]].getAddress (); 34 if (callbackAddresses[i] == 0) SWT.error (SWT.ERROR_NO_MORE_CALLBACKS); 35 } 36 } 37 38 int pVtable = C.malloc (C.PTR_SIZEOF * argCounts.length); 39 XPCOM.memmove (pVtable, callbackAddresses, C.PTR_SIZEOF * argCounts.length); 40 ppVtable = C.malloc (C.PTR_SIZEOF); 41 XPCOM.memmove (ppVtable, new int [] {pVtable}, C.PTR_SIZEOF); 42 ObjectMap.put (new LONG (ppVtable), this); 43 } 44 45 static int callback0 (int [] callbackArgs) { 46 int address = callbackArgs[0]; 48 Object object = ObjectMap.get (new LONG (address)); 49 if (object == null) return XPCOM.NS_ERROR_FAILURE; 50 int [] args = new int [callbackArgs.length - 1]; 51 System.arraycopy (callbackArgs, 1, args, 0, args.length); 52 return ((XPCOMObject) object).method0 (args); 53 } 54 static int callback1 (int [] callbackArgs) { 55 int address = callbackArgs[0]; 57 Object object = ObjectMap.get (new LONG (address)); 58 if (object == null) return XPCOM.NS_ERROR_FAILURE; 59 int [] args = new int [callbackArgs.length - 1]; 60 System.arraycopy (callbackArgs, 1, args, 0, args.length); 61 return ((XPCOMObject) object).method1 (args); 62 } 63 static int callback10 (int [] callbackArgs) { 64 int address = callbackArgs[0]; 66 Object object = ObjectMap.get (new LONG (address)); 67 if (object == null) return XPCOM.NS_ERROR_FAILURE; 68 int [] args = new int [callbackArgs.length - 1]; 69 System.arraycopy (callbackArgs, 1, args, 0, args.length); 70 return ((XPCOMObject) object).method10 (args); 71 } 72 static int callback11 (int [] callbackArgs) { 73 int address = callbackArgs[0]; 75 Object object = ObjectMap.get (new LONG (address)); 76 if (object == null) return XPCOM.NS_ERROR_FAILURE; 77 int [] args = new int [callbackArgs.length - 1]; 78 System.arraycopy (callbackArgs, 1, args, 0, args.length); 79 return ((XPCOMObject) object).method11 (args); 80 } 81 static int callback12 (int [] callbackArgs) { 82 int address = callbackArgs[0]; 84 Object object = ObjectMap.get (new LONG (address)); 85 if (object == null) return XPCOM.NS_ERROR_FAILURE; 86 int [] args = new int [callbackArgs.length - 1]; 87 System.arraycopy (callbackArgs, 1, args, 0, args.length); 88 return ((XPCOMObject) object).method12 (args); 89 } 90 static int callback13 (int [] callbackArgs) { 91 int address = callbackArgs[0]; 93 Object object = ObjectMap.get (new LONG (address)); 94 if (object == null) return XPCOM.NS_ERROR_FAILURE; 95 int [] args = new int [callbackArgs.length - 1]; 96 System.arraycopy (callbackArgs, 1, args, 0, args.length); 97 return ((XPCOMObject) object).method13 (args); 98 } 99 static int callback14 (int [] callbackArgs) { 100 int address = callbackArgs[0]; 102 Object object = ObjectMap.get (new LONG (address)); 103 if (object == null) return XPCOM.NS_ERROR_FAILURE; 104 int [] args = new int [callbackArgs.length - 1]; 105 System.arraycopy (callbackArgs, 1, args, 0, args.length); 106 return ((XPCOMObject) object).method14 (args); 107 } 108 static int callback15 (int [] callbackArgs) { 109 int address = callbackArgs[0]; 111 Object object = ObjectMap.get (new LONG (address)); 112 if (object == null) return XPCOM.NS_ERROR_FAILURE; 113 int [] args = new int [callbackArgs.length - 1]; 114 System.arraycopy (callbackArgs, 1, args, 0, args.length); 115 return ((XPCOMObject) object).method15 (args); 116 } 117 static int callback16 (int [] callbackArgs) { 118 int address = callbackArgs[0]; 120 Object object = ObjectMap.get (new LONG (address)); 121 if (object == null) return XPCOM.NS_ERROR_FAILURE; 122 int [] args = new int [callbackArgs.length - 1]; 123 System.arraycopy (callbackArgs, 1, args, 0, args.length); 124 return ((XPCOMObject) object).method16 (args); 125 } 126 static int callback17 (int [] callbackArgs) { 127 int address = callbackArgs[0]; 129 Object object = ObjectMap.get (new LONG (address)); 130 if (object == null) return XPCOM.NS_ERROR_FAILURE; 131 int [] args = new int [callbackArgs.length - 1]; 132 System.arraycopy (callbackArgs, 1, args, 0, args.length); 133 return ((XPCOMObject) object).method17 (args); 134 } 135 static int callback18 (int [] callbackArgs) { 136 int address = callbackArgs[0]; 138 Object object = ObjectMap.get (new LONG (address)); 139 if (object == null) return XPCOM.NS_ERROR_FAILURE; 140 int [] args = new int [callbackArgs.length - 1]; 141 System.arraycopy (callbackArgs, 1, args, 0, args.length); 142 return ((XPCOMObject) object).method18 (args); 143 } 144 static int callback19 (int [] callbackArgs) { 145 int address = callbackArgs[0]; 147 Object object = ObjectMap.get (new LONG (address)); 148 if (object == null) return XPCOM.NS_ERROR_FAILURE; 149 int [] args = new int [callbackArgs.length - 1]; 150 System.arraycopy (callbackArgs, 1, args, 0, args.length); 151 return ((XPCOMObject) object).method19 (args); 152 } 153 static int callback2 (int [] callbackArgs) { 154 int address = callbackArgs[0]; 156 Object object = ObjectMap.get (new LONG (address)); 157 if (object == null) return XPCOM.NS_ERROR_FAILURE; 158 int [] args = new int [callbackArgs.length - 1]; 159 System.arraycopy (callbackArgs, 1, args, 0, args.length); 160 return ((XPCOMObject) object).method2 (args); 161 } 162 static int callback20 (int [] callbackArgs) { 163 int address = callbackArgs[0]; 165 Object object = ObjectMap.get (new LONG (address)); 166 if (object == null) return XPCOM.NS_ERROR_FAILURE; 167 int [] args = new int [callbackArgs.length - 1]; 168 System.arraycopy (callbackArgs, 1, args, 0, args.length); 169 return ((XPCOMObject) object).method20 (args); 170 } 171 static int callback21 (int [] callbackArgs) { 172 int address = callbackArgs[0]; 174 Object object = ObjectMap.get (new LONG (address)); 175 if (object == null) return XPCOM.NS_ERROR_FAILURE; 176 int [] args = new int [callbackArgs.length - 1]; 177 System.arraycopy (callbackArgs, 1, args, 0, args.length); 178 return ((XPCOMObject) object).method21 (args); 179 } 180 static int callback22 (int [] callbackArgs) { 181 int address = callbackArgs[0]; 183 Object object = ObjectMap.get (new LONG (address)); 184 if (object == null) return XPCOM.NS_ERROR_FAILURE; 185 int [] args = new int [callbackArgs.length - 1]; 186 System.arraycopy (callbackArgs, 1, args, 0, args.length); 187 return ((XPCOMObject) object).method22 (args); 188 } 189 static int callback23 (int [] callbackArgs) { 190 int address = callbackArgs[0]; 192 Object object = ObjectMap.get (new LONG (address)); 193 if (object == null) return XPCOM.NS_ERROR_FAILURE; 194 int [] args = new int [callbackArgs.length - 1]; 195 System.arraycopy (callbackArgs, 1, args, 0, args.length); 196 return ((XPCOMObject) object).method23 (args); 197 } 198 static int callback24 (int [] callbackArgs) { 199 int address = callbackArgs[0]; 201 Object object = ObjectMap.get (new LONG (address)); 202 if (object == null) return XPCOM.NS_ERROR_FAILURE; 203 int [] args = new int [callbackArgs.length - 1]; 204 System.arraycopy (callbackArgs, 1, args, 0, args.length); 205 return ((XPCOMObject) object).method24 (args); 206 } 207 static int callback25 (int [] callbackArgs) { 208 int address = callbackArgs[0]; 210 Object object = ObjectMap.get (new LONG (address)); 211 if (object == null) return XPCOM.NS_ERROR_FAILURE; 212 int [] args = new int [callbackArgs.length - 1]; 213 System.arraycopy (callbackArgs, 1, args, 0, args.length); 214 return ((XPCOMObject) object).method25 (args); 215 } 216 static int callback26 (int [] callbackArgs) { 217 int address = callbackArgs[0]; 219 Object object = ObjectMap.get (new LONG (address)); 220 if (object == null) return XPCOM.NS_ERROR_FAILURE; 221 int [] args = new int [callbackArgs.length - 1]; 222 System.arraycopy (callbackArgs, 1, args, 0, args.length); 223 return ((XPCOMObject) object).method26 (args); 224 } 225 static int callback27 (int [] callbackArgs) { 226 int address = callbackArgs[0]; 228 Object object = ObjectMap.get (new LONG (address)); 229 if (object == null) return XPCOM.NS_ERROR_FAILURE; 230 int [] args = new int [callbackArgs.length - 1]; 231 System.arraycopy (callbackArgs, 1, args, 0, args.length); 232 return ((XPCOMObject) object).method27 (args); 233 } 234 static int callback28 (int [] callbackArgs) { 235 int address = callbackArgs[0]; 237 Object object = ObjectMap.get (new LONG (address)); 238 if (object == null) return XPCOM.NS_ERROR_FAILURE; 239 int [] args = new int [callbackArgs.length - 1]; 240 System.arraycopy (callbackArgs, 1, args, 0, args.length); 241 return ((XPCOMObject) object).method28 (args); 242 } 243 static int callback29 (int [] callbackArgs) { 244 int address = callbackArgs[0]; 246 Object object = ObjectMap.get (new LONG (address)); 247 if (object == null) return XPCOM.NS_ERROR_FAILURE; 248 int [] args = new int [callbackArgs.length - 1]; 249 System.arraycopy (callbackArgs, 1, args, 0, args.length); 250 return ((XPCOMObject) object).method29 (args); 251 } 252 static int callback3 (int [] callbackArgs) { 253 int address = callbackArgs[0]; 255 Object object = ObjectMap.get (new LONG (address)); 256 if (object == null) return XPCOM.NS_ERROR_FAILURE; 257 int [] args = new int [callbackArgs.length - 1]; 258 System.arraycopy (callbackArgs, 1, args, 0, args.length); 259 return ((XPCOMObject) object).method3 (args); 260 } 261 static int callback30 (int [] callbackArgs) { 262 int address = callbackArgs[0]; 264 Object object = ObjectMap.get (new LONG (address)); 265 if (object == null) return XPCOM.NS_ERROR_FAILURE; 266 int [] args = new int [callbackArgs.length - 1]; 267 System.arraycopy (callbackArgs, 1, args, 0, args.length); 268 return ((XPCOMObject) object).method30 (args); 269 } 270 static int callback31 (int [] callbackArgs) { 271 int address = callbackArgs[0]; 273 Object object = ObjectMap.get (new LONG (address)); 274 if (object == null) return XPCOM.NS_ERROR_FAILURE; 275 int [] args = new int [callbackArgs.length - 1]; 276 System.arraycopy (callbackArgs, 1, args, 0, args.length); 277 return ((XPCOMObject) object).method31 (args); 278 } 279 static int callback32 (int [] callbackArgs) { 280 int address = callbackArgs[0]; 282 Object object = ObjectMap.get (new LONG (address)); 283 if (object == null) return XPCOM.NS_ERROR_FAILURE; 284 int [] args = new int [callbackArgs.length - 1]; 285 System.arraycopy (callbackArgs, 1, args, 0, args.length); 286 return ((XPCOMObject) object).method32 (args); 287 } 288 static int callback33 (int [] callbackArgs) { 289 int address = callbackArgs[0]; 291 Object object = ObjectMap.get (new LONG (address)); 292 if (object == null) return XPCOM.NS_ERROR_FAILURE; 293 int [] args = new int [callbackArgs.length - 1]; 294 System.arraycopy (callbackArgs, 1, args, 0, args.length); 295 return ((XPCOMObject) object).method33 (args); 296 } 297 static int callback34 (int [] callbackArgs) { 298 int address = callbackArgs[0]; 300 Object object = ObjectMap.get (new LONG (address)); 301 if (object == null) return XPCOM.NS_ERROR_FAILURE; 302 int [] args = new int [callbackArgs.length - 1]; 303 System.arraycopy (callbackArgs, 1, args, 0, args.length); 304 return ((XPCOMObject) object).method34 (args); 305 } 306 static int callback35 (int [] callbackArgs) { 307 int address = callbackArgs[0]; 309 Object object = ObjectMap.get (new LONG (address)); 310 if (object == null) return XPCOM.NS_ERROR_FAILURE; 311 int [] args = new int [callbackArgs.length - 1]; 312 System.arraycopy (callbackArgs, 1, args, 0, args.length); 313 return ((XPCOMObject) object).method35 (args); 314 } 315 static int callback36 (int [] callbackArgs) { 316 int address = callbackArgs[0]; 318 Object object = ObjectMap.get (new LONG (address)); 319 if (object == null) return XPCOM.NS_ERROR_FAILURE; 320 int [] args = new int [callbackArgs.length - 1]; 321 System.arraycopy (callbackArgs, 1, args, 0, args.length); 322 return ((XPCOMObject) object).method36 (args); 323 } 324 static int callback37 (int [] callbackArgs) { 325 int address = callbackArgs[0]; 327 Object object = ObjectMap.get (new LONG (address)); 328 if (object == null) return XPCOM.NS_ERROR_FAILURE; 329 int [] args = new int [callbackArgs.length - 1]; 330 System.arraycopy (callbackArgs, 1, args, 0, args.length); 331 return ((XPCOMObject) object).method37 (args); 332 } 333 static int callback38 (int [] callbackArgs) { 334 int address = callbackArgs[0]; 336 Object object = ObjectMap.get (new LONG (address)); 337 if (object == null) return XPCOM.NS_ERROR_FAILURE; 338 int [] args = new int [callbackArgs.length - 1]; 339 System.arraycopy (callbackArgs, 1, args, 0, args.length); 340 return ((XPCOMObject) object).method38 (args); 341 } 342 static int callback39 (int [] callbackArgs) { 343 int address = callbackArgs[0]; 345 Object object = ObjectMap.get (new LONG (address)); 346 if (object == null) return XPCOM.NS_ERROR_FAILURE; 347 int [] args = new int [callbackArgs.length - 1]; 348 System.arraycopy (callbackArgs, 1, args, 0, args.length); 349 return ((XPCOMObject) object).method39 (args); 350 } 351 static int callback4 (int [] callbackArgs) { 352 int address = callbackArgs[0]; 354 Object object = ObjectMap.get (new LONG (address)); 355 if (object == null) return XPCOM.NS_ERROR_FAILURE; 356 int [] args = new int [callbackArgs.length - 1]; 357 System.arraycopy (callbackArgs, 1, args, 0, args.length); 358 return ((XPCOMObject) object).method4 (args); 359 } 360 static int callback40 (int [] callbackArgs) { 361 int address = callbackArgs[0]; 363 Object object = ObjectMap.get (new LONG (address)); 364 if (object == null) return XPCOM.NS_ERROR_FAILURE; 365 int [] args = new int [callbackArgs.length - 1]; 366 System.arraycopy (callbackArgs, 1, args, 0, args.length); 367 return ((XPCOMObject) object).method40 (args); 368 } 369 static int callback41 (int [] callbackArgs) { 370 int address = callbackArgs[0]; 372 Object object = ObjectMap.get (new LONG (address)); 373 if (object == null) return XPCOM.NS_ERROR_FAILURE; 374 int [] args = new int [callbackArgs.length - 1]; 375 System.arraycopy (callbackArgs, 1, args, 0, args.length); 376 return ((XPCOMObject) object).method41 (args); 377 } 378 static int callback42 (int [] callbackArgs) { 379 int address = callbackArgs[0]; 381 Object object = ObjectMap.get (new LONG (address)); 382 if (object == null) return XPCOM.NS_ERROR_FAILURE; 383 int [] args = new int [callbackArgs.length - 1]; 384 System.arraycopy (callbackArgs, 1, args, 0, args.length); 385 return ((XPCOMObject) object).method42 (args); 386 } 387 static int callback43 (int [] callbackArgs) { 388 int address = callbackArgs[0]; 390 Object object = ObjectMap.get (new LONG (address)); 391 if (object == null) return XPCOM.NS_ERROR_FAILURE; 392 int [] args = new int [callbackArgs.length - 1]; 393 System.arraycopy (callbackArgs, 1, args, 0, args.length); 394 return ((XPCOMObject) object).method43 (args); 395 } 396 static int callback44 (int [] callbackArgs) { 397 int address = callbackArgs[0]; 399 Object object = ObjectMap.get (new LONG (address)); 400 if (object == null) return XPCOM.NS_ERROR_FAILURE; 401 int [] args = new int [callbackArgs.length - 1]; 402 System.arraycopy (callbackArgs, 1, args, 0, args.length); 403 return ((XPCOMObject) object).method44 (args); 404 } 405 static int callback45 (int [] callbackArgs) { 406 int address = callbackArgs[0]; 408 Object object = ObjectMap.get (new LONG (address)); 409 if (object == null) return XPCOM.NS_ERROR_FAILURE; 410 int [] args = new int [callbackArgs.length - 1]; 411 System.arraycopy (callbackArgs, 1, args, 0, args.length); 412 return ((XPCOMObject) object).method45 (args); 413 } 414 static int callback46 (int [] callbackArgs) { 415 int address = callbackArgs[0]; 417 Object object = ObjectMap.get (new LONG (address)); 418 if (object == null) return XPCOM.NS_ERROR_FAILURE; 419 int [] args = new int [callbackArgs.length - 1]; 420 System.arraycopy (callbackArgs, 1, args, 0, args.length); 421 return ((XPCOMObject) object).method46 (args); 422 } 423 static int callback47 (int [] callbackArgs) { 424 int address = callbackArgs[0]; 426 Object object = ObjectMap.get (new LONG (address)); 427 if (object == null) return XPCOM.NS_ERROR_FAILURE; 428 int [] args = new int [callbackArgs.length - 1]; 429 System.arraycopy (callbackArgs, 1, args, 0, args.length); 430 return ((XPCOMObject) object).method47 (args); 431 } 432 static int callback48 (int [] callbackArgs) { 433 int address = callbackArgs[0]; 435 Object object = ObjectMap.get (new LONG (address)); 436 if (object == null) return XPCOM.NS_ERROR_FAILURE; 437 int [] args = new int [callbackArgs.length - 1]; 438 System.arraycopy (callbackArgs, 1, args, 0, args.length); 439 return ((XPCOMObject) object).method48 (args); 440 } 441 static int callback49 (int [] callbackArgs) { 442 int address = callbackArgs[0]; 444 Object object = ObjectMap.get (new LONG (address)); 445 if (object == null) return XPCOM.NS_ERROR_FAILURE; 446 int [] args = new int [callbackArgs.length - 1]; 447 System.arraycopy (callbackArgs, 1, args, 0, args.length); 448 return ((XPCOMObject) object).method49 (args); 449 } 450 static int callback5 (int [] callbackArgs) { 451 int address = callbackArgs[0]; 453 Object object = ObjectMap.get (new LONG (address)); 454 if (object == null) return XPCOM.NS_ERROR_FAILURE; 455 int [] args = new int [callbackArgs.length - 1]; 456 System.arraycopy (callbackArgs, 1, args, 0, args.length); 457 return ((XPCOMObject) object).method5 (args); 458 } 459 static int callback50 (int [] callbackArgs) { 460 int address = callbackArgs[0]; 462 Object object = ObjectMap.get (new LONG (address)); 463 if (object == null) return XPCOM.NS_ERROR_FAILURE; 464 int [] args = new int [callbackArgs.length - 1]; 465 System.arraycopy (callbackArgs, 1, args, 0, args.length); 466 return ((XPCOMObject) object).method50 (args); 467 } 468 static int callback51 (int [] callbackArgs) { 469 int address = callbackArgs[0]; 471 Object object = ObjectMap.get (new LONG (address)); 472 if (object == null) return XPCOM.NS_ERROR_FAILURE; 473 int [] args = new int [callbackArgs.length - 1]; 474 System.arraycopy (callbackArgs, 1, args, 0, args.length); 475 return ((XPCOMObject) object).method51 (args); 476 } 477 static int callback52 (int [] callbackArgs) { 478 int address = callbackArgs[0]; 480 Object object = ObjectMap.get (new LONG (address)); 481 if (object == null) return XPCOM.NS_ERROR_FAILURE; 482 int [] args = new int [callbackArgs.length - 1]; 483 System.arraycopy (callbackArgs, 1, args, 0, args.length); 484 return ((XPCOMObject) object).method52 (args); 485 } 486 static int callback53 (int [] callbackArgs) { 487 int address = callbackArgs[0]; 489 Object object = ObjectMap.get (new LONG (address)); 490 if (object == null) return XPCOM.NS_ERROR_FAILURE; 491 int [] args = new int [callbackArgs.length - 1]; 492 System.arraycopy (callbackArgs, 1, args, 0, args.length); 493 return ((XPCOMObject) object).method53 (args); 494 } 495 static int callback54 (int [] callbackArgs) { 496 int address = callbackArgs[0]; 498 Object object = ObjectMap.get (new LONG (address)); 499 if (object == null) return XPCOM.NS_ERROR_FAILURE; 500 int [] args = new int [callbackArgs.length - 1]; 501 System.arraycopy (callbackArgs, 1, args, 0, args.length); 502 return ((XPCOMObject) object).method54 (args); 503 } 504 static int callback55 (int [] callbackArgs) { 505 int address = callbackArgs[0]; 507 Object object = ObjectMap.get (new LONG (address)); 508 if (object == null) return XPCOM.NS_ERROR_FAILURE; 509 int [] args = new int [callbackArgs.length - 1]; 510 System.arraycopy (callbackArgs, 1, args, 0, args.length); 511 return ((XPCOMObject) object).method55 (args); 512 } 513 static int callback56 (int [] callbackArgs) { 514 int address = callbackArgs[0]; 516 Object object = ObjectMap.get (new LONG (address)); 517 if (object == null) return XPCOM.NS_ERROR_FAILURE; 518 int [] args = new int [callbackArgs.length - 1]; 519 System.arraycopy (callbackArgs, 1, args, 0, args.length); 520 return ((XPCOMObject) object).method56 (args); 521 } 522 static int callback57 (int [] callbackArgs) { 523 int address = callbackArgs[0]; 525 Object object = ObjectMap.get (new LONG (address)); 526 if (object == null) return XPCOM.NS_ERROR_FAILURE; 527 int [] args = new int [callbackArgs.length - 1]; 528 System.arraycopy (callbackArgs, 1, args, 0, args.length); 529 return ((XPCOMObject) object).method57 (args); 530 } 531 static int callback58 (int [] callbackArgs) { 532 int address = callbackArgs[0]; 534 Object object = ObjectMap.get (new LONG (address)); 535 if (object == null) return XPCOM.NS_ERROR_FAILURE; 536 int [] args = new int [callbackArgs.length - 1]; 537 System.arraycopy (callbackArgs, 1, args, 0, args.length); 538 return ((XPCOMObject) object).method58 (args); 539 } 540 static int callback59 (int [] callbackArgs) { 541 int address = callbackArgs[0]; 543 Object object = ObjectMap.get (new LONG (address)); 544 if (object == null) return XPCOM.NS_ERROR_FAILURE; 545 int [] args = new int [callbackArgs.length - 1]; 546 System.arraycopy (callbackArgs, 1, args, 0, args.length); 547 return ((XPCOMObject) object).method59 (args); 548 } 549 static int callback6 (int [] callbackArgs) { 550 int address = callbackArgs[0]; 552 Object object = ObjectMap.get (new LONG (address)); 553 if (object == null) return XPCOM.NS_ERROR_FAILURE; 554 int [] args = new int [callbackArgs.length - 1]; 555 System.arraycopy (callbackArgs, 1, args, 0, args.length); 556 return ((XPCOMObject) object).method6 (args); 557 } 558 static int callback60 (int [] callbackArgs) { 559 int address = callbackArgs[0]; 561 Object object = ObjectMap.get (new LONG (address)); 562 if (object == null) return XPCOM.NS_ERROR_FAILURE; 563 int [] args = new int [callbackArgs.length - 1]; 564 System.arraycopy (callbackArgs, 1, args, 0, args.length); 565 return ((XPCOMObject) object).method60 (args); 566 } 567 static int callback61 (int [] callbackArgs) { 568 int address = callbackArgs[0]; 570 Object object = ObjectMap.get (new LONG (address)); 571 if (object == null) return XPCOM.NS_ERROR_FAILURE; 572 int [] args = new int [callbackArgs.length - 1]; 573 System.arraycopy (callbackArgs, 1, args, 0, args.length); 574 return ((XPCOMObject) object).method61 (args); 575 } 576 static int callback62 (int [] callbackArgs) { 577 int address = callbackArgs[0]; 579 Object object = ObjectMap.get (new LONG (address)); 580 if (object == null) return XPCOM.NS_ERROR_FAILURE; 581 int [] args = new int [callbackArgs.length - 1]; 582 System.arraycopy (callbackArgs, 1, args, 0, args.length); 583 return ((XPCOMObject) object).method62 (args); 584 } 585 static int callback63 (int [] callbackArgs) { 586 int address = callbackArgs[0]; 588 Object object = ObjectMap.get (new LONG (address)); 589 if (object == null) return XPCOM.NS_ERROR_FAILURE; 590 int [] args = new int [callbackArgs.length - 1]; 591 System.arraycopy (callbackArgs, 1, args, 0, args.length); 592 return ((XPCOMObject) object).method63 (args); 593 } 594 static int callback64 (int [] callbackArgs) { 595 int address = callbackArgs[0]; 597 Object object = ObjectMap.get (new LONG (address)); 598 if (object == null) return XPCOM.NS_ERROR_FAILURE; 599 int [] args = new int [callbackArgs.length - 1]; 600 System.arraycopy (callbackArgs, 1, args, 0, args.length); 601 return ((XPCOMObject) object).method64 (args); 602 } 603 static int callback65 (int [] callbackArgs) { 604 int address = callbackArgs[0]; 606 Object object = ObjectMap.get (new LONG (address)); 607 if (object == null) return XPCOM.NS_ERROR_FAILURE; 608 int [] args = new int [callbackArgs.length - 1]; 609 System.arraycopy (callbackArgs, 1, args, 0, args.length); 610 return ((XPCOMObject) object).method65 (args); 611 } 612 static int callback66 (int [] callbackArgs) { 613 int address = callbackArgs[0]; 615 Object object = ObjectMap.get (new LONG (address)); 616 if (object == null) return XPCOM.NS_ERROR_FAILURE; 617 int [] args = new int [callbackArgs.length - 1]; 618 System.arraycopy (callbackArgs, 1, args, 0, args.length); 619 return ((XPCOMObject) object).method66 (args); 620 } 621 static int callback67 (int [] callbackArgs) { 622 int address = callbackArgs[0]; 624 Object object = ObjectMap.get (new LONG (address)); 625 if (object == null) return XPCOM.NS_ERROR_FAILURE; 626 int [] args = new int [callbackArgs.length - 1]; 627 System.arraycopy (callbackArgs, 1, args, 0, args.length); 628 return ((XPCOMObject) object).method67 (args); 629 } 630 static int callback68 (int [] callbackArgs) { 631 int address = callbackArgs[0]; 633 Object object = ObjectMap.get (new LONG (address)); 634 if (object == null) return XPCOM.NS_ERROR_FAILURE; 635 int [] args = new int [callbackArgs.length - 1]; 636 System.arraycopy (callbackArgs, 1, args, 0, args.length); 637 return ((XPCOMObject) object).method68 (args); 638 } 639 static int callback69 (int [] callbackArgs) { 640 int address = callbackArgs[0]; 642 Object object = ObjectMap.get (new LONG (address)); 643 if (object == null) return XPCOM.NS_ERROR_FAILURE; 644 int [] args = new int [callbackArgs.length - 1]; 645 System.arraycopy (callbackArgs, 1, args, 0, args.length); 646 return ((XPCOMObject) object).method69 (args); 647 } 648 static int callback7 (int [] callbackArgs) { 649 int address = callbackArgs[0]; 651 Object object = ObjectMap.get (new LONG (address)); 652 if (object == null) return XPCOM.NS_ERROR_FAILURE; 653 int [] args = new int [callbackArgs.length - 1]; 654 System.arraycopy (callbackArgs, 1, args, 0, args.length); 655 return ((XPCOMObject) object).method7 (args); 656 } 657 static int callback70 (int [] callbackArgs) { 658 int address = callbackArgs[0]; 660 Object object = ObjectMap.get (new LONG (address)); 661 if (object == null) return XPCOM.NS_ERROR_FAILURE; 662 int [] args = new int [callbackArgs.length - 1]; 663 System.arraycopy (callbackArgs, 1, args, 0, args.length); 664 return ((XPCOMObject) object).method70 (args); 665 } 666 static int callback71 (int [] callbackArgs) { 667 int address = callbackArgs[0]; 669 Object object = ObjectMap.get (new LONG (address)); 670 if (object == null) return XPCOM.NS_ERROR_FAILURE; 671 int [] args = new int [callbackArgs.length - 1]; 672 System.arraycopy (callbackArgs, 1, args, 0, args.length); 673 return ((XPCOMObject) object).method71 (args); 674 } 675 static int callback72 (int [] callbackArgs) { 676 int address = callbackArgs[0]; 678 Object object = ObjectMap.get (new LONG (address)); 679 if (object == null) return XPCOM.NS_ERROR_FAILURE; 680 int [] args = new int [callbackArgs.length - 1]; 681 System.arraycopy (callbackArgs, 1, args, 0, args.length); 682 return ((XPCOMObject) object).method72 (args); 683 } 684 static int callback73 (int [] callbackArgs) { 685 int address = callbackArgs[0]; 687 Object object = ObjectMap.get (new LONG (address)); 688 if (object == null) return XPCOM.NS_ERROR_FAILURE; 689 int [] args = new int [callbackArgs.length - 1]; 690 System.arraycopy (callbackArgs, 1, args, 0, args.length); 691 return ((XPCOMObject) object).method73 (args); 692 } 693 static int callback74 (int [] callbackArgs) { 694 int address = callbackArgs[0]; 696 Object object = ObjectMap.get (new LONG (address)); 697 if (object == null) return XPCOM.NS_ERROR_FAILURE; 698 int [] args = new int [callbackArgs.length - 1]; 699 System.arraycopy (callbackArgs, 1, args, 0, args.length); 700 return ((XPCOMObject) object).method74 (args); 701 } 702 static int callback75 (int [] callbackArgs) { 703 int address = callbackArgs[0]; 705 Object object = ObjectMap.get (new LONG (address)); 706 if (object == null) return XPCOM.NS_ERROR_FAILURE; 707 int [] args = new int [callbackArgs.length - 1]; 708 System.arraycopy (callbackArgs, 1, args, 0, args.length); 709 return ((XPCOMObject) object).method75 (args); 710 } 711 static int callback76 (int [] callbackArgs) { 712 int address = callbackArgs[0]; 714 Object object = ObjectMap.get (new LONG (address)); 715 if (object == null) return XPCOM.NS_ERROR_FAILURE; 716 int [] args = new int [callbackArgs.length - 1]; 717 System.arraycopy (callbackArgs, 1, args, 0, args.length); 718 return ((XPCOMObject) object).method76 (args); 719 } 720 static int callback77 (int [] callbackArgs) { 721 int address = callbackArgs[0]; 723 Object object = ObjectMap.get (new LONG (address)); 724 if (object == null) return XPCOM.NS_ERROR_FAILURE; 725 int [] args = new int [callbackArgs.length - 1]; 726 System.arraycopy (callbackArgs, 1, args, 0, args.length); 727 return ((XPCOMObject) object).method77 (args); 728 } 729 static int callback78 (int [] callbackArgs) { 730 int address = callbackArgs[0]; 732 Object object = ObjectMap.get (new LONG (address)); 733 if (object == null) return XPCOM.NS_ERROR_FAILURE; 734 int [] args = new int [callbackArgs.length - 1]; 735 System.arraycopy (callbackArgs, 1, args, 0, args.length); 736 return ((XPCOMObject) object).method78 (args); 737 } 738 static int callback79 (int [] callbackArgs) { 739 int address = callbackArgs[0]; 741 Object object = ObjectMap.get (new LONG (address)); 742 if (object == null) return XPCOM.NS_ERROR_FAILURE; 743 int [] args = new int [callbackArgs.length - 1]; 744 System.arraycopy (callbackArgs, 1, args, 0, args.length); 745 return ((XPCOMObject) object).method79 (args); 746 } 747 static int callback8 (int [] callbackArgs) { 748 int address = callbackArgs[0]; 750 Object object = ObjectMap.get (new LONG (address)); 751 if (object == null) return XPCOM.NS_ERROR_FAILURE; 752 int [] args = new int [callbackArgs.length - 1]; 753 System.arraycopy (callbackArgs, 1, args, 0, args.length); 754 return ((XPCOMObject) object).method8 (args); 755 } 756 static int callback9 (int [] callbackArgs) { 757 int address = callbackArgs[0]; 759 Object object = ObjectMap.get (new LONG (address)); 760 if (object == null) return XPCOM.NS_ERROR_FAILURE; 761 int [] args = new int [callbackArgs.length - 1]; 762 System.arraycopy (callbackArgs, 1, args, 0, args.length); 763 return ((XPCOMObject) object).method9 (args); 764 } 765 766 public void dispose() { 767 int [] pVtable = new int [1]; 769 XPCOM.memmove (pVtable, ppVtable, C.PTR_SIZEOF); 770 C.free (pVtable[0]); 771 C.free (ppVtable); 772 773 ObjectMap.remove (new LONG (ppVtable)); 775 776 ppVtable = 0; 777 } 778 779 public int getAddress () { 780 return ppVtable; 781 } 782 783 public int method0 (int [] args) { 784 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 785 } 786 public int method1 (int [] args) { 787 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 788 } 789 public int method10 (int [] args) { 790 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 791 } 792 public int method11 (int [] args) { 793 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 794 } 795 public int method12 (int [] args) { 796 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 797 } 798 public int method13 (int [] args) { 799 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 800 } 801 public int method14 (int [] args) { 802 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 803 } 804 public int method15 (int [] args) { 805 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 806 } 807 public int method16 (int [] args) { 808 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 809 } 810 public int method17 (int [] args) { 811 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 812 } 813 public int method18 (int [] args) { 814 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 815 } 816 public int method19 (int [] args) { 817 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 818 } 819 public int method2 (int [] args) { 820 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 821 } 822 public int method20 (int [] args) { 823 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 824 } 825 public int method21 (int [] args) { 826 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 827 } 828 public int method22 (int [] args) { 829 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 830 } 831 public int method23 (int [] args) { 832 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 833 } 834 public int method24 (int [] args) { 835 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 836 } 837 public int method25 (int [] args) { 838 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 839 } 840 public int method26 (int [] args) { 841 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 842 } 843 public int method27 (int [] args) { 844 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 845 } 846 public int method28 (int [] args) { 847 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 848 } 849 public int method29 (int [] args) { 850 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 851 } 852 public int method3 (int [] args) { 853 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 854 } 855 public int method30 (int [] args) { 856 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 857 } 858 public int method31 (int [] args) { 859 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 860 } 861 public int method32 (int [] args) { 862 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 863 } 864 public int method33 (int [] args) { 865 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 866 } 867 public int method34 (int [] args) { 868 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 869 } 870 public int method35 (int [] args) { 871 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 872 } 873 public int method36 (int [] args) { 874 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 875 } 876 public int method37 (int [] args) { 877 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 878 } 879 public int method38 (int [] args) { 880 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 881 } 882 public int method39 (int [] args) { 883 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 884 } 885 public int method4 (int [] args) { 886 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 887 } 888 public int method40 (int [] args) { 889 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 890 } 891 public int method41 (int [] args) { 892 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 893 } 894 public int method42 (int [] args) { 895 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 896 } 897 public int method43 (int [] args) { 898 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 899 } 900 public int method44 (int [] args) { 901 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 902 } 903 public int method45 (int [] args) { 904 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 905 } 906 public int method46 (int [] args) { 907 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 908 } 909 public int method47 (int [] args) { 910 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 911 } 912 public int method48 (int [] args) { 913 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 914 } 915 public int method49 (int [] args) { 916 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 917 } 918 public int method5 (int [] args) { 919 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 920 } 921 public int method50 (int [] args) { 922 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 923 } 924 public int method51 (int [] args) { 925 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 926 } 927 public int method52 (int [] args) { 928 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 929 } 930 public int method53 (int [] args) { 931 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 932 } 933 public int method54 (int [] args) { 934 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 935 } 936 public int method55 (int [] args) { 937 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 938 } 939 public int method56 (int [] args) { 940 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 941 } 942 public int method57 (int [] args) { 943 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 944 } 945 public int method58 (int [] args) { 946 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 947 } 948 public int method59 (int [] args) { 949 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 950 } 951 public int method6 (int [] args) { 952 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 953 } 954 public int method60 (int [] args) { 955 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 956 } 957 public int method61 (int [] args) { 958 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 959 } 960 public int method62 (int [] args) { 961 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 962 } 963 public int method63 (int [] args) { 964 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 965 } 966 public int method64 (int [] args) { 967 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 968 } 969 public int method65 (int [] args) { 970 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 971 } 972 public int method66 (int [] args) { 973 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 974 } 975 public int method67 (int [] args) { 976 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 977 } 978 public int method68 (int [] args) { 979 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 980 } 981 public int method69 (int [] args) { 982 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 983 } 984 public int method7 (int [] args) { 985 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 986 } 987 public int method70 (int [] args) { 988 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 989 } 990 public int method71 (int [] args) { 991 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 992 } 993 public int method72 (int [] args) { 994 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 995 } 996 public int method73 (int [] args) { 997 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 998 } 999 public int method74 (int [] args) { 1000 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 1001} 1002public int method75 (int [] args) { 1003 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 1004} 1005public int method76 (int [] args) { 1006 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 1007} 1008public int method77 (int [] args) { 1009 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 1010} 1011public int method78 (int [] args) { 1012 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 1013} 1014public int method79 (int [] args) { 1015 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 1016} 1017public int method8 (int [] args) { 1018 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 1019} 1020public int method9 (int [] args) { 1021 return XPCOM.NS_ERROR_NOT_IMPLEMENTED; 1022} 1023} 1024 1025 | Popular Tags |