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

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

Issue 155558: linux: add flash workarounds (Closed)
Patch Set: Created 11 years, 5 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
« no previous file with comments | « webkit/glue/plugins/flash_workarounds_linux.cc ('k') | webkit/webkit.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/plugin_host.cc
diff --git a/webkit/glue/plugins/plugin_host.cc b/webkit/glue/plugins/plugin_host.cc
index 40b2e1e16bab6170e00a68992f49070a356bc6fc..0a1b93c5ab3d1b5e8cac5ab9deafec7f7f5bcdec 100644
--- a/webkit/glue/plugins/plugin_host.cc
+++ b/webkit/glue/plugins/plugin_host.cc
@@ -6,6 +6,11 @@
#include "webkit/glue/plugins/plugin_host.h"
+#if defined(OS_LINUX)
+#include <gdk/gdk.h>
+#include <gdk/gdkx.h>
+#endif
+
#include "base/file_util.h"
#include "base/logging.h"
#include "base/scoped_ptr.h"
@@ -751,6 +756,9 @@ NPError NPN_GetValue(NPP id, NPNVariable variable, void *value) {
*reinterpret_cast<NPBool*>(value) = TRUE;
rv = NPERR_NO_ERROR;
break;
+ case NPNVxDisplay:
+ *static_cast<Display **>(value) = GDK_DISPLAY();
Evan Martin 2009/07/15 16:49:53 Does this help the NULL-display case?
+ break;
#endif
case NPNVSupportsWindowless:
{
« no previous file with comments | « webkit/glue/plugins/flash_workarounds_linux.cc ('k') | webkit/webkit.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698