| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/gfx/native_widget_types.h" |
| 6 #include "base/shared_memory.h" | 6 #include "base/shared_memory.h" |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
| 9 #include "webkit/glue/webcursor.h" | 9 #include "webkit/glue/webcursor.h" |
| 10 | 10 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 #if defined(OS_LINUX) | 116 #if defined(OS_LINUX) |
| 117 // On Linux, the mapping between NativeViewId and X window ids | 117 // On Linux, the mapping between NativeViewId and X window ids |
| 118 // is known only to the browser. This message lets the plugin process | 118 // is known only to the browser. This message lets the plugin process |
| 119 // ask about a NativeViewId that was provided by the renderer. | 119 // ask about a NativeViewId that was provided by the renderer. |
| 120 // It will get 0 back if it's a bogus input. | 120 // It will get 0 back if it's a bogus input. |
| 121 IPC_SYNC_MESSAGE_CONTROL1_1(PluginProcessHostMsg_MapNativeViewId, | 121 IPC_SYNC_MESSAGE_CONTROL1_1(PluginProcessHostMsg_MapNativeViewId, |
| 122 gfx::NativeViewId /* input: native view id */, | 122 gfx::NativeViewId /* input: native view id */, |
| 123 gfx::PluginWindowHandle /* output: X window id */) | 123 gfx::PluginWindowHandle /* output: X window id */) |
| 124 #endif | 124 #endif |
| 125 | 125 |
| 126 #if defined(OS_MACOSX) |
| 127 // On Mac OS X, we need the browser to keep track of plugin windows so |
| 128 // that it can add and remove them from stacking groups, hide and show the |
| 129 // menu bar, etc. We pass the window rect for convenience so that the |
| 130 // browser can easily tell if the window is fullscreen. |
| 131 |
| 132 // Notifies the browser that the plugin has selected a window (i.e., brought |
| 133 // it to the front and wants it to have keyboard focus). |
| 134 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginSelectWindow, |
| 135 uint32 /* window ID */, |
| 136 gfx::Rect /* window rect */) |
| 137 |
| 138 // Notifies the browser that the plugin has shown a window. |
| 139 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginShowWindow, |
| 140 uint32 /* window ID */, |
| 141 gfx::Rect /* window rect */) |
| 142 |
| 143 // Notifies the browser that the plugin has hidden a window. |
| 144 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginHideWindow, |
| 145 uint32 /* window ID */, |
| 146 gfx::Rect /* window rect */) |
| 147 |
| 148 // Notifies the browser that the plugin has disposed of a window. |
| 149 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginDisposeWindow, |
| 150 uint32 /* window ID */, |
| 151 gfx::Rect /* window rect */) |
| 152 #endif |
| 153 |
| 126 IPC_END_MESSAGES(PluginProcessHost) | 154 IPC_END_MESSAGES(PluginProcessHost) |
| 127 | 155 |
| 128 | 156 |
| 129 //----------------------------------------------------------------------------- | 157 //----------------------------------------------------------------------------- |
| 130 // Plugin messages | 158 // Plugin messages |
| 131 // These are messages sent from the renderer process to the plugin process. | 159 // These are messages sent from the renderer process to the plugin process. |
| 132 IPC_BEGIN_MESSAGES(Plugin) | 160 IPC_BEGIN_MESSAGES(Plugin) |
| 133 // Tells the plugin process to create a new plugin instance with the given | 161 // Tells the plugin process to create a new plugin instance with the given |
| 134 // id. A corresponding WebPluginDelegateStub is created which hosts the | 162 // id. A corresponding WebPluginDelegateStub is created which hosts the |
| 135 // WebPluginDelegateImpl. | 163 // WebPluginDelegateImpl. |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, | 405 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, |
| 378 std::string /* script */, | 406 std::string /* script */, |
| 379 bool /* popups_allowed */, | 407 bool /* popups_allowed */, |
| 380 NPVariant_Param /* result_param */, | 408 NPVariant_Param /* result_param */, |
| 381 bool /* result */) | 409 bool /* result */) |
| 382 | 410 |
| 383 IPC_SYNC_MESSAGE_ROUTED1_0(NPObjectMsg_SetException, | 411 IPC_SYNC_MESSAGE_ROUTED1_0(NPObjectMsg_SetException, |
| 384 std::string /* message */) | 412 std::string /* message */) |
| 385 | 413 |
| 386 IPC_END_MESSAGES(NPObject) | 414 IPC_END_MESSAGES(NPObject) |
| OLD | NEW |