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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/gfx/native_widget_types.h"
5 #include "base/shared_memory.h" 6 #include "base/shared_memory.h"
6 #include "build/build_config.h" 7 #include "build/build_config.h"
7 #include "chrome/common/ipc_message_macros.h" 8 #include "chrome/common/ipc_message_macros.h"
8 #include "webkit/glue/webcursor.h" 9 #include "webkit/glue/webcursor.h"
9 10
10 #if defined(OS_POSIX) 11 #if defined(OS_POSIX)
11 #include "base/file_descriptor_posix.h" 12 #include "base/file_descriptor_posix.h"
12 #endif 13 #endif
13 14
14 //----------------------------------------------------------------------------- 15 //-----------------------------------------------------------------------------
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginWindowDestroyed, 91 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginWindowDestroyed,
91 HWND /* window */, 92 HWND /* window */,
92 HWND /* parent */) 93 HWND /* parent */)
93 94
94 IPC_MESSAGE_ROUTED3(PluginProcessHostMsg_DownloadUrl, 95 IPC_MESSAGE_ROUTED3(PluginProcessHostMsg_DownloadUrl,
95 std::string /* URL */, 96 std::string /* URL */,
96 int /* process id */, 97 int /* process id */,
97 HWND /* caller window */) 98 HWND /* caller window */)
98 #endif 99 #endif
99 100
101 #if defined(OS_LINUX)
102 // On Linux, the mapping between NativeViewId and X window ids
103 // is known only to the browser. This message lets the plugin process
104 // ask about a NativeViewId that was provided by the renderer.
105 // It will get 0 back if it's a bogus input.
106 IPC_SYNC_MESSAGE_CONTROL1_1(PluginProcessHostMsg_MapNativeViewId,
107 gfx::NativeViewId /* input: native view id */,
108 gfx::PluginWindowHandle /* output: X window id */)
109 #endif
110
100 IPC_END_MESSAGES(PluginProcessHost) 111 IPC_END_MESSAGES(PluginProcessHost)
101 112
102 113
103 //----------------------------------------------------------------------------- 114 //-----------------------------------------------------------------------------
104 // Plugin messages 115 // Plugin messages
105 // These are messages sent from the renderer process to the plugin process. 116 // These are messages sent from the renderer process to the plugin process.
106 IPC_BEGIN_MESSAGES(Plugin) 117 IPC_BEGIN_MESSAGES(Plugin)
107 // Tells the plugin process to create a new plugin instance with the given 118 // Tells the plugin process to create a new plugin instance with the given
108 // id. A corresponding WebPluginDelegateStub is created which hosts the 119 // id. A corresponding WebPluginDelegateStub is created which hosts the
109 // WebPluginDelegateImpl. 120 // WebPluginDelegateImpl.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 223
213 //----------------------------------------------------------------------------- 224 //-----------------------------------------------------------------------------
214 // PluginHost messages 225 // PluginHost messages
215 // These are messages sent from the plugin process to the renderer process. 226 // These are messages sent from the plugin process to the renderer process.
216 // They all map to the corresponding WebPlugin methods. 227 // They all map to the corresponding WebPlugin methods.
217 IPC_BEGIN_MESSAGES(PluginHost) 228 IPC_BEGIN_MESSAGES(PluginHost)
218 // Sends the plugin window information to the renderer. 229 // Sends the plugin window information to the renderer.
219 // The window parameter is a handle to the window if the plugin is a windowed 230 // The window parameter is a handle to the window if the plugin is a windowed
220 // plugin. It is NULL for windowless plugins. 231 // plugin. It is NULL for windowless plugins.
221 IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_SetWindow, 232 IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_SetWindow,
222 gfx::NativeViewId /* window */) 233 gfx::PluginWindowHandle /* window */)
234
235 #if defined(OS_LINUX)
236 // Asks the renderer to create a plugin container (GtkSocket).
237 IPC_SYNC_MESSAGE_ROUTED0_1(PluginHostMsg_CreatePluginContainer,
238 gfx::PluginWindowHandle /* container */)
239 // Asks the renderer to destroy a plugin container (GtkSocket).
240 IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_DestroyPluginContainer,
241 gfx::PluginWindowHandle /* container */)
242 #endif
223 243
224 #if defined(OS_WIN) 244 #if defined(OS_WIN)
225 // The modal_loop_pump_messages_event parameter is an event handle which is 245 // The modal_loop_pump_messages_event parameter is an event handle which is
226 // passed in for windowless plugins and is used to indicate if messages 246 // passed in for windowless plugins and is used to indicate if messages
227 // are to be pumped in sync calls to the plugin process. Currently used 247 // are to be pumped in sync calls to the plugin process. Currently used
228 // in HandleEvent calls. 248 // in HandleEvent calls.
229 IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_SetWindowlessPumpEvent, 249 IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_SetWindowlessPumpEvent,
230 HANDLE /* modal_loop_pump_messages_event */) 250 HANDLE /* modal_loop_pump_messages_event */)
231 #endif 251 #endif
232 252
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, 367 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate,
348 std::string /* script */, 368 std::string /* script */,
349 bool /* popups_allowed */, 369 bool /* popups_allowed */,
350 NPVariant_Param /* result_param */, 370 NPVariant_Param /* result_param */,
351 bool /* result */) 371 bool /* result */)
352 372
353 IPC_SYNC_MESSAGE_ROUTED1_0(NPObjectMsg_SetException, 373 IPC_SYNC_MESSAGE_ROUTED1_0(NPObjectMsg_SetException,
354 std::string /* message */) 374 std::string /* message */)
355 375
356 IPC_END_MESSAGES(NPObject) 376 IPC_END_MESSAGES(NPObject)
OLDNEW
« 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