| Index: webkit/glue/plugins/plugin_host.cc
|
| ===================================================================
|
| --- webkit/glue/plugins/plugin_host.cc (revision 16673)
|
| +++ webkit/glue/plugins/plugin_host.cc (working copy)
|
| @@ -2,17 +2,6 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// HACK: we need this #define in place before npapi.h is included for
|
| -// plugins to work. However, all sorts of headers include npapi.h, so
|
| -// the only way to be certain the define is in place is to put it
|
| -// here. You might ask, "Why not set it in npapi.h directly, or in
|
| -// this directory's SConscript, then?" but it turns out this define
|
| -// makes npapi.h include Xlib.h, which in turn defines a ton of symbols
|
| -// like None and Status, causing conflicts with the aforementioned
|
| -// many headers that include npapi.h. Ugh.
|
| -// See also webplugin_delegate_impl.cc.
|
| -#define MOZ_X11 1
|
| -
|
| #include "config.h"
|
|
|
| #include "webkit/glue/plugins/plugin_host.h"
|
| @@ -720,9 +709,9 @@
|
| }
|
| case NPNVnetscapeWindow:
|
| {
|
| -#if defined(OS_WIN)
|
| +#if defined(OS_WIN) || defined(OS_LINUX)
|
| scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id);
|
| - HWND handle = plugin->window_handle();
|
| + gfx::NativeView handle = plugin->window_handle();
|
| *((void**)value) = (void*)handle;
|
| rv = NPERR_NO_ERROR;
|
| #else
|
|
|