Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: webkit/tools/npapi_layout_test_plugin/main.cpp

Issue 118486: Companion change to https://bugs.webkit.org/show_bug.cgi?id=15457. Add loggi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webframeloaderclient_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Ap ple") in 2 IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Ap ple") in
3 consideration of your agreement to the following terms, and your use, installat ion, 3 consideration of your agreement to the following terms, and your use, installat ion,
4 modification or redistribution of this Apple software constitutes acceptance of these 4 modification or redistribution of this Apple software constitutes acceptance of these
5 terms. If you do not agree with these terms, please do not use, install, modif y or 5 terms. If you do not agree with these terms, please do not use, install, modif y or
6 redistribute this Apple software. 6 redistribute this Apple software.
7 7
8 In consideration of your agreement to abide by the following terms, and subject to these 8 In consideration of your agreement to abide by the following terms, and subject to these
9 terms, Apple grants you a personal, non-exclusive license, under Apple’s copyri ghts in 9 terms, Apple grants you a personal, non-exclusive license, under Apple’s copyri ghts in
10 this original Apple software (the "Apple Software"), to use, reproduce, modify and 10 this original Apple software (the "Apple Software"), to use, reproduce, modify and
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 for (int i = 0; i < argc; i++) { 137 for (int i = 0; i < argc; i++) {
138 if (strcasecmp(argn[i], "onstreamload") == 0 && !obj->onStreamLoad) 138 if (strcasecmp(argn[i], "onstreamload") == 0 && !obj->onStreamLoad)
139 obj->onStreamLoad = strdup(argv[i]); 139 obj->onStreamLoad = strdup(argv[i]);
140 else if (strcasecmp(argn[i], "onStreamDestroy") == 0 && !obj->onStre amDestroy) 140 else if (strcasecmp(argn[i], "onStreamDestroy") == 0 && !obj->onStre amDestroy)
141 obj->onStreamDestroy = strdup(argv[i]); 141 obj->onStreamDestroy = strdup(argv[i]);
142 else if (strcasecmp(argn[i], "onURLNotify") == 0 && !obj->onURLNotif y) 142 else if (strcasecmp(argn[i], "onURLNotify") == 0 && !obj->onURLNotif y)
143 obj->onURLNotify = strdup(argv[i]); 143 obj->onURLNotify = strdup(argv[i]);
144 else if (strcasecmp(argn[i], "logfirstsetwindow") == 0) 144 else if (strcasecmp(argn[i], "logfirstsetwindow") == 0)
145 obj->logSetWindow = TRUE; 145 obj->logSetWindow = TRUE;
146 else if (strcasecmp(argn[i], "logSrc") == 0) {
147 for (int i = 0; i < argc; i++) {
148 if (strcasecmp(argn[i], "src") == 0) {
149 log(instance, "src: %s", argv[i]);
150 fflush(stdout);
151 }
152 }
153 }
146 } 154 }
147 155
148 instance->pdata = obj; 156 instance->pdata = obj;
149 } 157 }
150 158
151 // On Windows and Unix, plugins only get events if they are windowless. 159 // On Windows and Unix, plugins only get events if they are windowless.
152 return browser->setvalue(instance, NPPVpluginWindowBool, NULL); 160 return browser->setvalue(instance, NPPVpluginWindowBool, NULL);
153 } 161 }
154 162
155 NPError NPP_Destroy(NPP instance, NPSavedData **save) 163 NPError NPP_Destroy(NPP instance, NPSavedData **save)
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 *v = obj; 445 *v = obj;
438 return NPERR_NO_ERROR; 446 return NPERR_NO_ERROR;
439 } 447 }
440 return NPERR_GENERIC_ERROR; 448 return NPERR_GENERIC_ERROR;
441 } 449 }
442 450
443 NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value) 451 NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value)
444 { 452 {
445 return NPERR_GENERIC_ERROR; 453 return NPERR_GENERIC_ERROR;
446 } 454 }
OLDNEW
« no previous file with comments | « webkit/glue/webframeloaderclient_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698