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

Unified Diff: third_party/npapi/bindings/npapi.h

Issue 115330: linux: Adding events to windowless plugins on Linux (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | third_party/npapi/bindings/npapi_x11.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/npapi/bindings/npapi.h
===================================================================
--- third_party/npapi/bindings/npapi.h (revision 16673)
+++ third_party/npapi/bindings/npapi.h (working copy)
@@ -107,6 +107,7 @@
// On Linux and Mac, be sure to set Mozilla-specific macros.
#if defined(OS_LINUX)
#define XP_UNIX 1
+#define MOZ_X11 1
#elif defined(OS_MACOSX)
#ifndef XP_MACOSX
#define XP_MACOSX 1
@@ -133,11 +134,17 @@
#if defined(XP_UNIX)
# include <stdio.h>
+// BEGIN GOOGLE MODIFICATIONS
+#if 0
+// END GOOGLE MODIFICATIONS
# if defined(MOZ_X11)
# include <X11/Xlib.h>
# include <X11/Xutil.h>
# endif
+// BEGIN GOOGLE MODIFICATIONS
#endif
+// END GOOGLE MODIFICATIONS
+#endif
/*----------------------------------------------------------------------*/
/* Plugin Version Constants */
@@ -341,16 +348,9 @@
int32 type;
} NPAnyCallbackStruct;
-typedef struct
-{
- int32 type;
-#ifdef MOZ_X11
- Display* display;
- Visual* visual;
- Colormap colormap;
- unsigned int depth;
-#endif
-} NPSetWindowCallbackStruct;
+// BEGIN GOOGLE MODIFICATIONS
+typedef struct _NPSetWindowCallbackStruct NPSetWindowCallbackStruct;
+// END GOOGLE MODIFICATIONS
typedef struct
{
@@ -564,6 +564,9 @@
uint32 lParam;
} NPEvent;
#elif defined (XP_UNIX) && defined(MOZ_X11)
+// BEGIN GOOGLE MODIFICATIONS
+typedef union _XEvent XEvent;
+// END GOOGLE MODIFICATIONS
typedef XEvent NPEvent;
#else
typedef void* NPEvent;
@@ -578,6 +581,9 @@
#elif defined(XP_WIN)
typedef HRGN NPRegion;
#elif defined(XP_UNIX) && defined(MOZ_X11)
+// BEGIN GOOGLE MODIFICATIONS
+typedef struct _XRegion *Region;
+// END GOOGLE MODIFICATIONS
typedef Region NPRegion;
#else
typedef void *NPRegion;
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | third_party/npapi/bindings/npapi_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698