| Index: base/gfx/native_widget_types.h
|
| diff --git a/base/gfx/native_widget_types.h b/base/gfx/native_widget_types.h
|
| index 9444a610d90884dc41cf3b82bddbebbf537e9204..e9a923057a5c6490dcf5897649039895b7ce9e9c 100644
|
| --- a/base/gfx/native_widget_types.h
|
| +++ b/base/gfx/native_widget_types.h
|
| @@ -114,6 +114,21 @@ static inline NativeViewId IdFromNativeView(NativeView view) {
|
| NativeViewId IdFromNativeView(NativeView view);
|
| #endif // defined(OS_LINUX)
|
|
|
| +
|
| +// PluginWindowHandle is an abstraction wrapping "the types of windows
|
| +// used by NPAPI plugins". On Windows it's an HWND, on X it's an X
|
| +// window id.
|
| +#if defined(OS_WIN)
|
| + typedef HWND PluginWindowHandle;
|
| +#elif defined(OS_LINUX)
|
| + typedef unsigned long PluginWindowHandle;
|
| +#else
|
| + // On OS X we don't have windowed plugins.
|
| + // Use a gfx::NativeView so the previously-compiling code still works.
|
| + // TODO(evanm): remove this and use void* instead.
|
| + typedef gfx::NativeView PluginWindowHandle;
|
| +#endif
|
| +
|
| } // namespace gfx
|
|
|
| #endif // BASE_GFX_NATIVE_WIDGET_TYPES_H_
|
|
|