OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /* | 5 /* |
6 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 6 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
7 * | 7 * |
8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
10 * are met: | 10 * are met: |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 if (obj->onPaintEvent) | 345 if (obj->onPaintEvent) |
346 free(obj->onPaintEvent); | 346 free(obj->onPaintEvent); |
347 | 347 |
348 if (obj->evaluateScriptOnMouseDownOrKeyDown) | 348 if (obj->evaluateScriptOnMouseDownOrKeyDown) |
349 free(obj->evaluateScriptOnMouseDownOrKeyDown); | 349 free(obj->evaluateScriptOnMouseDownOrKeyDown); |
350 | 350 |
351 if (obj->logDestroy) { | 351 if (obj->logDestroy) { |
352 // Note: this intentionally avoids using pluginLog(), because that | 352 // Note: this intentionally avoids using pluginLog(), because that |
353 // requires running JS during document detach, which is forbidden. | 353 // requires running JS during document detach, which is forbidden. |
354 puts("PLUGIN: NPP_Destroy"); | 354 puts("PLUGIN: NPP_Destroy"); |
| 355 fflush(stdout); |
355 } | 356 } |
356 | 357 |
357 #ifdef XP_MACOSX | 358 #ifdef XP_MACOSX |
358 if (obj->coreAnimationLayer) | 359 if (obj->coreAnimationLayer) |
359 CFRelease(obj->coreAnimationLayer); | 360 CFRelease(obj->coreAnimationLayer); |
360 #endif | 361 #endif |
361 | 362 |
362 if (obj->pluginTest) | 363 if (obj->pluginTest) |
363 obj->pluginTest->NPP_Destroy(save); | 364 obj->pluginTest->NPP_Destroy(save); |
364 | 365 |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 { | 891 { |
891 return "application/x-webkit-test-netscape:testnetscape:test netscape conten
t;image/png:png:PNG image"; | 892 return "application/x-webkit-test-netscape:testnetscape:test netscape conten
t;image/png:png:PNG image"; |
892 } | 893 } |
893 | 894 |
894 extern "C" | 895 extern "C" |
895 NPError NP_GetValue(NPP instance, NPPVariable variable, void* value) | 896 NPError NP_GetValue(NPP instance, NPPVariable variable, void* value) |
896 { | 897 { |
897 return NPP_GetValue(instance, variable, value); | 898 return NPP_GetValue(instance, variable, value); |
898 } | 899 } |
899 #endif | 900 #endif |
OLD | NEW |