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

Unified Diff: webkit/plugins/npapi/test/plugin_client.cc

Issue 10628004: Remove support for the QuickDraw NPAPI drawing model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Switch test plugin to CG Created 8 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 side-by-side diff with in-line comments
Download patch
Index: webkit/plugins/npapi/test/plugin_client.cc
diff --git a/webkit/plugins/npapi/test/plugin_client.cc b/webkit/plugins/npapi/test/plugin_client.cc
index c8035f34fc56b443bd7da2711dcf9c8fb86c5bec..e7db8ba3d6988f900e8c2bf395c8e90422c3afac 100644
--- a/webkit/plugins/npapi/test/plugin_client.cc
+++ b/webkit/plugins/npapi/test/plugin_client.cc
@@ -109,6 +109,15 @@ NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode,
}
}
+#if defined(OS_MACOSX)
+ // Set a modern drawing model so that the plugin doesn't require support for
+ // QuickDraw. No support checking or error checking is done because if it
+ // fails it doesn't matter; the plugin will just stay with the older model,
+ // and nothing in the test plugin cares which is used.
+ NPAPIClient::PluginClient::HostFunctions()->setvalue(
+ instance, NPPVpluginDrawingModel, (void*)NPDrawingModelCoreGraphics);
+#endif
+
NPError ret = new_test->New(mode, argc, (const char**)argn,
(const char**)argv, saved);
if ((ret == NPERR_NO_ERROR) && new_test->IsWindowless()) {
« no previous file with comments | « webkit/plugins/npapi/quickdraw_drawing_manager_mac.cc ('k') | webkit/plugins/npapi/webplugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698