| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 testIdentifier = argv[i]; | 193 testIdentifier = argv[i]; |
| 194 if (strcasecmp(argn[i], "onstreamload") == 0 && !obj->onStreamLoad) | 194 if (strcasecmp(argn[i], "onstreamload") == 0 && !obj->onStreamLoad) |
| 195 obj->onStreamLoad = strdup(argv[i]); | 195 obj->onStreamLoad = strdup(argv[i]); |
| 196 else if (strcasecmp(argn[i], "onStreamDestroy") == 0 && !obj->onStreamDe
stroy) | 196 else if (strcasecmp(argn[i], "onStreamDestroy") == 0 && !obj->onStreamDe
stroy) |
| 197 obj->onStreamDestroy = strdup(argv[i]); | 197 obj->onStreamDestroy = strdup(argv[i]); |
| 198 else if (strcasecmp(argn[i], "onURLNotify") == 0 && !obj->onURLNotify) | 198 else if (strcasecmp(argn[i], "onURLNotify") == 0 && !obj->onURLNotify) |
| 199 obj->onURLNotify = strdup(argv[i]); | 199 obj->onURLNotify = strdup(argv[i]); |
| 200 else if (strcasecmp(argn[i], "src") == 0 && | 200 else if (strcasecmp(argn[i], "src") == 0 && |
| 201 strcasecmp(argv[i], "data:application/x-webkit-test-netscape,re
turnerrorfromnewstream") == 0) | 201 strcasecmp(argv[i], "data:application/x-webkit-test-netscape,re
turnerrorfromnewstream") == 0) |
| 202 obj->returnErrorFromNewStream = TRUE; | 202 obj->returnErrorFromNewStream = TRUE; |
| 203 else if (strcasecmp(argn[i], "src") == 0 && |
| 204 strcasecmp(argv[i], "data:application/x-webkit-test-netscape,al
ertwhenloaded") == 0) |
| 205 executeScript(obj, "alert('Plugin Loaded!')"); |
| 203 else if (strcasecmp(argn[i], "onSetWindow") == 0 && !obj->onSetWindow) | 206 else if (strcasecmp(argn[i], "onSetWindow") == 0 && !obj->onSetWindow) |
| 204 obj->onSetWindow = strdup(argv[i]); | 207 obj->onSetWindow = strdup(argv[i]); |
| 205 else if (strcasecmp(argn[i], "onNew") == 0 && !onNewScript) | 208 else if (strcasecmp(argn[i], "onNew") == 0 && !onNewScript) |
| 206 onNewScript = argv[i]; | 209 onNewScript = argv[i]; |
| 207 else if (strcasecmp(argn[i], "onPaintEvent") == 0 && !obj->onPaintEvent) | 210 else if (strcasecmp(argn[i], "onPaintEvent") == 0 && !obj->onPaintEvent) |
| 208 obj->onPaintEvent = strdup(argv[i]); | 211 obj->onPaintEvent = strdup(argv[i]); |
| 209 else if (strcasecmp(argn[i], "logfirstsetwindow") == 0) | 212 else if (strcasecmp(argn[i], "logfirstsetwindow") == 0) |
| 210 obj->logSetWindow = TRUE; | 213 obj->logSetWindow = TRUE; |
| 211 else if (strcasecmp(argn[i], "testnpruntime") == 0) | 214 else if (strcasecmp(argn[i], "testnpruntime") == 0) |
| 212 testNPRuntime(instance); | 215 testNPRuntime(instance); |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 { | 756 { |
| 754 return "application/x-webkit-test-netscape:testnetscape:test netscape conten
t"; | 757 return "application/x-webkit-test-netscape:testnetscape:test netscape conten
t"; |
| 755 } | 758 } |
| 756 | 759 |
| 757 extern "C" | 760 extern "C" |
| 758 NPError NP_GetValue(NPP instance, NPPVariable variable, void* value) | 761 NPError NP_GetValue(NPP instance, NPPVariable variable, void* value) |
| 759 { | 762 { |
| 760 return NPP_GetValue(instance, variable, value); | 763 return NPP_GetValue(instance, variable, value); |
| 761 } | 764 } |
| 762 #endif | 765 #endif |
| OLD | NEW |