40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
$OpenBSD: patch-chrome_common_plugin_messages_cc,v 1.2 2011/03/15 11:38:05 robert Exp $
|
|
--- chrome/common/plugin_messages.cc.orig Mon Mar 14 11:46:57 2011
|
|
+++ chrome/common/plugin_messages.cc Mon Mar 14 11:47:41 2011
|
|
@@ -56,7 +56,7 @@ NPVariant_Param::~NPVariant_Param() {
|
|
|
|
PluginMsg_UpdateGeometry_Param::PluginMsg_UpdateGeometry_Param()
|
|
: transparent(false),
|
|
-#if !defined(OS_MACOSX)
|
|
+#if !defined(OS_MACOSX) && !defined(OS_OPENBSD)
|
|
windowless_buffer(TransportDIB::DefaultHandleValue()),
|
|
background_buffer(TransportDIB::DefaultHandleValue())
|
|
#else
|
|
@@ -271,7 +271,7 @@ void ParamTraits<PluginMsg_UpdateGeometry_Param>::Writ
|
|
WriteParam(m, p.windowless_buffer);
|
|
WriteParam(m, p.background_buffer);
|
|
WriteParam(m, p.transparent);
|
|
-#if defined(OS_MACOSX)
|
|
+#if defined(OS_MACOSX) || defined(OS_OPENBSD)
|
|
WriteParam(m, p.ack_key);
|
|
#endif
|
|
}
|
|
@@ -285,7 +285,7 @@ bool ParamTraits<PluginMsg_UpdateGeometry_Param>::Read
|
|
ReadParam(m, iter, &r->windowless_buffer) &&
|
|
ReadParam(m, iter, &r->background_buffer) &&
|
|
ReadParam(m, iter, &r->transparent)
|
|
-#if defined(OS_MACOSX)
|
|
+#if defined(OS_MACOSX) || defined(OS_OPENBSD)
|
|
&&
|
|
ReadParam(m, iter, &r->ack_key)
|
|
#endif
|
|
@@ -304,7 +304,7 @@ void ParamTraits<PluginMsg_UpdateGeometry_Param>::Log(
|
|
LogParam(p.background_buffer, l);
|
|
l->append(", ");
|
|
LogParam(p.transparent, l);
|
|
-#if defined(OS_MACOSX)
|
|
+#if defined(OS_MACOSX) || defined(OS_OPENBSD)
|
|
l->append(", ");
|
|
LogParam(p.ack_key, l);
|
|
#endif
|