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

Side by Side Diff: content/shell/tools/plugin/main.cpp

Issue 659023002: Test plugin: fflush(stdout) after writing to stdout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | 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 // 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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698