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

Unified Diff: chrome/common/plugin_messages_internal.h

Issue 146078: linux: OOP windowed plugins (Closed)
Patch Set: new version Created 11 years, 5 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/browser/renderer_host/test/test_render_view_host.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/plugin_messages_internal.h
diff --git a/chrome/common/plugin_messages_internal.h b/chrome/common/plugin_messages_internal.h
index 9eed897e55a81be08e06bfcdd51d65c795691250..dc853c2b80bc9e25b5894fcd60ebd17834b8a4b4 100644
--- a/chrome/common/plugin_messages_internal.h
+++ b/chrome/common/plugin_messages_internal.h
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/gfx/native_widget_types.h"
#include "base/shared_memory.h"
#include "build/build_config.h"
#include "chrome/common/ipc_message_macros.h"
@@ -97,6 +98,16 @@ IPC_BEGIN_MESSAGES(PluginProcessHost)
HWND /* caller window */)
#endif
+#if defined(OS_LINUX)
+ // On Linux, the mapping between NativeViewId and X window ids
+ // is known only to the browser. This message lets the plugin process
+ // ask about a NativeViewId that was provided by the renderer.
+ // It will get 0 back if it's a bogus input.
+ IPC_SYNC_MESSAGE_CONTROL1_1(PluginProcessHostMsg_MapNativeViewId,
+ gfx::NativeViewId /* input: native view id */,
+ gfx::PluginWindowHandle /* output: X window id */)
+#endif
+
IPC_END_MESSAGES(PluginProcessHost)
@@ -219,7 +230,16 @@ IPC_BEGIN_MESSAGES(PluginHost)
// The window parameter is a handle to the window if the plugin is a windowed
// plugin. It is NULL for windowless plugins.
IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_SetWindow,
- gfx::NativeViewId /* window */)
+ gfx::PluginWindowHandle /* window */)
+
+#if defined(OS_LINUX)
+ // Asks the renderer to create a plugin container (GtkSocket).
+ IPC_SYNC_MESSAGE_ROUTED0_1(PluginHostMsg_CreatePluginContainer,
+ gfx::PluginWindowHandle /* container */)
+ // Asks the renderer to destroy a plugin container (GtkSocket).
+ IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_DestroyPluginContainer,
+ gfx::PluginWindowHandle /* container */)
+#endif
#if defined(OS_WIN)
// The modal_loop_pump_messages_event parameter is an event handle which is
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698