| 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 "app/gfx/native_widget_types.h" | 5 #include "app/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 29 matching lines...) Expand all Loading... |
| 40 // process that it's safe to shutdown. | 40 // process that it's safe to shutdown. |
| 41 IPC_MESSAGE_CONTROL0(PluginProcessMsg_Shutdown) | 41 IPC_MESSAGE_CONTROL0(PluginProcessMsg_Shutdown) |
| 42 | 42 |
| 43 #if defined(IPC_MESSAGE_LOG_ENABLED) | 43 #if defined(IPC_MESSAGE_LOG_ENABLED) |
| 44 // Tell the child process to begin or end IPC message logging. | 44 // Tell the child process to begin or end IPC message logging. |
| 45 // Like above, this is used by all ChildProcesses. | 45 // Like above, this is used by all ChildProcesses. |
| 46 IPC_MESSAGE_CONTROL1(PluginProcessMsg_SetIPCLoggingEnabled, | 46 IPC_MESSAGE_CONTROL1(PluginProcessMsg_SetIPCLoggingEnabled, |
| 47 bool /* on or off */) | 47 bool /* on or off */) |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 #if defined(OS_MACOSX) |
| 51 // Notifies a plugin process that keyboard focus has changed. If another |
| 52 // plugin instance has received focus, the process and instance IDs are |
| 53 // passed as parameters; if focus has been taken away from a plugin, 0 is |
| 54 // passed for both parameters. |
| 55 IPC_MESSAGE_CONTROL1(PluginProcessMsg_PluginFocusNotify, |
| 56 uint32 /* instance ID */) |
| 57 #endif |
| 58 |
| 50 IPC_END_MESSAGES(PluginProcess) | 59 IPC_END_MESSAGES(PluginProcess) |
| 51 | 60 |
| 52 | 61 |
| 53 //----------------------------------------------------------------------------- | 62 //----------------------------------------------------------------------------- |
| 54 // PluginProcessHost messages | 63 // PluginProcessHost messages |
| 55 // These are messages sent from the plugin process to the browser process. | 64 // These are messages sent from the plugin process to the browser process. |
| 56 IPC_BEGIN_MESSAGES(PluginProcessHost) | 65 IPC_BEGIN_MESSAGES(PluginProcessHost) |
| 57 // Response to a PluginProcessMsg_CreateChannel message. | 66 // Response to a PluginProcessMsg_CreateChannel message. |
| 58 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_ChannelCreated, | 67 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_ChannelCreated, |
| 59 IPC::ChannelHandle /* channel_handle */) | 68 IPC::ChannelHandle /* channel_handle */) |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 153 |
| 145 // Notifies the browser that the plugin has hidden a window. | 154 // Notifies the browser that the plugin has hidden a window. |
| 146 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginHideWindow, | 155 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginHideWindow, |
| 147 uint32 /* window ID */, | 156 uint32 /* window ID */, |
| 148 gfx::Rect /* window rect */) | 157 gfx::Rect /* window rect */) |
| 149 | 158 |
| 150 // Notifies the browser that the plugin has disposed of a window. | 159 // Notifies the browser that the plugin has disposed of a window. |
| 151 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginDisposeWindow, | 160 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginDisposeWindow, |
| 152 uint32 /* window ID */, | 161 uint32 /* window ID */, |
| 153 gfx::Rect /* window rect */) | 162 gfx::Rect /* window rect */) |
| 163 |
| 164 // Notifies the browser that a plugin instance has received keyboard focus |
| 165 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginReceivedFocus, |
| 166 uint32 /* process ID */, |
| 167 uint32 /* instance ID */) |
| 154 #endif | 168 #endif |
| 155 | 169 |
| 156 IPC_END_MESSAGES(PluginProcessHost) | 170 IPC_END_MESSAGES(PluginProcessHost) |
| 157 | 171 |
| 158 | 172 |
| 159 //----------------------------------------------------------------------------- | 173 //----------------------------------------------------------------------------- |
| 160 // Plugin messages | 174 // Plugin messages |
| 161 // These are messages sent from the renderer process to the plugin process. | 175 // These are messages sent from the renderer process to the plugin process. |
| 162 IPC_BEGIN_MESSAGES(Plugin) | 176 IPC_BEGIN_MESSAGES(Plugin) |
| 163 // Tells the plugin process to create a new plugin instance with the given | 177 // Tells the plugin process to create a new plugin instance with the given |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 NPVariant_Param /* result_param */, | 421 NPVariant_Param /* result_param */, |
| 408 bool /* result */) | 422 bool /* result */) |
| 409 | 423 |
| 410 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, | 424 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, |
| 411 std::string /* script */, | 425 std::string /* script */, |
| 412 bool /* popups_allowed */, | 426 bool /* popups_allowed */, |
| 413 NPVariant_Param /* result_param */, | 427 NPVariant_Param /* result_param */, |
| 414 bool /* result */) | 428 bool /* result */) |
| 415 | 429 |
| 416 IPC_END_MESSAGES(NPObject) | 430 IPC_END_MESSAGES(NPObject) |
| OLD | NEW |