From 18bcc3c1e8ac29683e6d09a9c2d8b3037b0fb360 Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Tue, 27 Jan 2009 21:39:15 +0000 Subject: POSIX: gfx::NativeViewId and CrossProcessEvent Create a couple new typedefs for porting work. Firstly, gfx::NativeViewId is a handle to a platform specific widget in the renderer process. For Windows, this is just a HWND as before. However, in other platforms the ids used in the renderer process will be something else. CrossProcessEvent is the type of a HANDLE to a Windows event object which is used across processes. Since we aren't going to support these sorts of events on non-Windows platforms, this will have to go away at some point. For now, however, this lets us build code without too many ifdefs all over the place. Review URL: http://codereview.chromium.org/18768 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8756 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/webplugin_impl.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'webkit/glue/webplugin_impl.h') diff --git a/webkit/glue/webplugin_impl.h b/webkit/glue/webplugin_impl.h index b99b784..58c633e 100644 --- a/webkit/glue/webplugin_impl.h +++ b/webkit/glue/webplugin_impl.h @@ -11,6 +11,7 @@ #include "config.h" #include "base/compiler_specific.h" +#include "base/gfx/native_widget_types.h" MSVC_PUSH_WARNING_LEVEL(0); #include "ResourceHandle.h" @@ -146,7 +147,7 @@ class WebPluginImpl : public WebPlugin, int arg_count, char** arg_names, char** arg_values); // WebPlugin implementation: - void SetWindow(HWND window, HANDLE pump_messages_event); + void SetWindow(gfx::NativeView window, HANDLE pump_messages_event); // Given a (maybe partial) url, completes using the base url. bool CompleteURL(const std::string& url_in, std::string* url_out); @@ -323,7 +324,7 @@ class WebPluginImpl : public WebPlugin, std::vector clients_; bool windowless_; - HWND window_; + gfx::NativeView window_; WebCore::Element* element_; WebFrameImpl* webframe_; -- cgit v1.1