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

Unified Diff: webkit/glue/plugins/plugin_host.cc

Issue 519030: bsds: views/ and webkit/ support for FreeBSD/OpenBSD (Closed)
Patch Set: Created 11 years 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/glue/plugins/plugin_host.cc
diff --git a/webkit/glue/plugins/plugin_host.cc b/webkit/glue/plugins/plugin_host.cc
index 0c6e54df7d400c3b70ca7021e5ab7ca8fd8c84e1..327493775bbca63d342238bb47930b240cc7bd9a 100644
--- a/webkit/glue/plugins/plugin_host.cc
+++ b/webkit/glue/plugins/plugin_host.cc
@@ -705,24 +705,22 @@ NPError NPN_GetValue(NPP id, NPNVariable variable, void* value) {
}
break;
}
+ #if !defined(OS_MACOSX) // OS X doesn't have windowed plugins.
case NPNVnetscapeWindow: {
- #if defined(OS_WIN) || defined(OS_LINUX)
scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id);
gfx::PluginWindowHandle handle = plugin->window_handle();
*((void**)value) = (void*)handle;
rv = NPERR_NO_ERROR;
- #else
- NOTIMPLEMENTED();
- #endif
break;
}
+ #endif
case NPNVjavascriptEnabledBool: {
// yes, JS is enabled.
*((void**)value) = (void*)1;
rv = NPERR_NO_ERROR;
break;
}
- #if defined(OS_LINUX)
+ #if defined(TOOLKIT_USES_GTK)
case NPNVToolkit:
// Tell them we are GTK2. (The alternative is GTK 1.2.)
*reinterpret_cast<int*>(value) = NPNVGtk2;
@@ -730,7 +728,6 @@ NPError NPN_GetValue(NPP id, NPNVariable variable, void* value) {
break;
case NPNVSupportsXEmbedBool:
- // Yes, we support XEmbed.
*reinterpret_cast<NPBool*>(value) = TRUE;
rv = NPERR_NO_ERROR;
break;

Powered by Google App Engine
This is Rietveld 408576698