Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/shared_memory.h" | 5 #include "base/shared_memory.h" |
| 6 #include "chrome/common/ipc_message_macros.h" | 6 #include "chrome/common/ipc_message_macros.h" |
| 7 #include "webkit/glue/webcursor.h" | 7 #include "webkit/glue/webcursor.h" |
| 8 | 8 |
| 9 //----------------------------------------------------------------------------- | 9 //----------------------------------------------------------------------------- |
| 10 // PluginProcess messages | 10 // PluginProcess messages |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 GURL /* url */, | 74 GURL /* url */, |
| 75 std::string /* cookies */) | 75 std::string /* cookies */) |
| 76 | 76 |
| 77 // Get the list of proxies to use for |url|, as a semicolon delimited list | 77 // Get the list of proxies to use for |url|, as a semicolon delimited list |
| 78 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". | 78 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". |
| 79 IPC_SYNC_MESSAGE_CONTROL1_2(PluginProcessHostMsg_ResolveProxy, | 79 IPC_SYNC_MESSAGE_CONTROL1_2(PluginProcessHostMsg_ResolveProxy, |
| 80 GURL /* url */, | 80 GURL /* url */, |
| 81 int /* network error */, | 81 int /* network error */, |
| 82 std::string /* proxy list */) | 82 std::string /* proxy list */) |
| 83 | 83 |
| 84 // Creates a child window of the given parent window on the UI thread. | |
| 85 IPC_SYNC_MESSAGE_CONTROL1_1(PluginProcessHostMsg_CreateWindow, | |
| 86 HWND /* parent */, | |
| 87 HWND /* child */) | |
| 88 | |
| 89 // Destroys the given window on the UI thread. | |
| 90 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_DestroyWindow, | |
| 91 HWND /* window */) | |
|
darin (slow to review)
2009/01/16 22:08:39
nit: indentation
| |
| 92 | |
| 84 IPC_END_MESSAGES(PluginProcessHost) | 93 IPC_END_MESSAGES(PluginProcessHost) |
| 85 | 94 |
| 86 | 95 |
| 87 //----------------------------------------------------------------------------- | 96 //----------------------------------------------------------------------------- |
| 88 // Plugin messages | 97 // Plugin messages |
| 89 // These are messages sent from the renderer process to the plugin process. | 98 // These are messages sent from the renderer process to the plugin process. |
| 90 IPC_BEGIN_MESSAGES(Plugin, 5) | 99 IPC_BEGIN_MESSAGES(Plugin, 5) |
| 91 // Tells the plugin process to create a new plugin instance with the given | 100 // Tells the plugin process to create a new plugin instance with the given |
| 92 // id. A corresponding WebPluginDelegateStub is created which hosts the | 101 // id. A corresponding WebPluginDelegateStub is created which hosts the |
| 93 // WebPluginDelegateImpl. | 102 // WebPluginDelegateImpl. |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 124 int /* route_id */, | 133 int /* route_id */, |
| 125 void* /* npobject_ptr */) | 134 void* /* npobject_ptr */) |
| 126 | 135 |
| 127 IPC_SYNC_MESSAGE_ROUTED1_0(PluginMsg_DidFinishLoadWithReason, | 136 IPC_SYNC_MESSAGE_ROUTED1_0(PluginMsg_DidFinishLoadWithReason, |
| 128 int /* reason */) | 137 int /* reason */) |
| 129 | 138 |
| 130 // Updates the plugin location. For windowless plugins, windowless_buffer | 139 // Updates the plugin location. For windowless plugins, windowless_buffer |
| 131 // contains a buffer that the plugin draws into. background_buffer is used | 140 // contains a buffer that the plugin draws into. background_buffer is used |
| 132 // for transparent windowless plugins, and holds the background of the plugin | 141 // for transparent windowless plugins, and holds the background of the plugin |
| 133 // rectangle. | 142 // rectangle. |
| 134 IPC_MESSAGE_ROUTED6(PluginMsg_UpdateGeometry, | 143 IPC_MESSAGE_ROUTED4(PluginMsg_UpdateGeometry, |
| 135 gfx::Rect /* window_rect */, | 144 gfx::Rect /* window_rect */, |
| 136 gfx::Rect /* clip_rect */, | 145 gfx::Rect /* clip_rect */, |
| 137 std::vector<gfx::Rect> /* cutout_rects */, | |
| 138 bool /* visible */, | |
| 139 base::SharedMemoryHandle /* windowless_buffer */, | 146 base::SharedMemoryHandle /* windowless_buffer */, |
| 140 base::SharedMemoryHandle /* background_buffer */) | 147 base::SharedMemoryHandle /* background_buffer */) |
| 141 | 148 |
| 142 IPC_SYNC_MESSAGE_ROUTED0_0(PluginMsg_SetFocus) | 149 IPC_SYNC_MESSAGE_ROUTED0_0(PluginMsg_SetFocus) |
| 143 | 150 |
| 144 IPC_SYNC_MESSAGE_ROUTED1_2(PluginMsg_HandleEvent, | 151 IPC_SYNC_MESSAGE_ROUTED1_2(PluginMsg_HandleEvent, |
| 145 NPEvent /* event */, | 152 NPEvent /* event */, |
| 146 bool /* handled */, | 153 bool /* handled */, |
| 147 WebCursor /* cursor type*/) | 154 WebCursor /* cursor type*/) |
| 148 | 155 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 313 std::string /* script */, | 320 std::string /* script */, |
| 314 bool /* popups_allowed */, | 321 bool /* popups_allowed */, |
| 315 NPVariant_Param /* result_param */, | 322 NPVariant_Param /* result_param */, |
| 316 bool /* result */) | 323 bool /* result */) |
| 317 | 324 |
| 318 IPC_SYNC_MESSAGE_ROUTED1_0(NPObjectMsg_SetException, | 325 IPC_SYNC_MESSAGE_ROUTED1_0(NPObjectMsg_SetException, |
| 319 std::string /* message */) | 326 std::string /* message */) |
| 320 | 327 |
| 321 IPC_END_MESSAGES(NPObject) | 328 IPC_END_MESSAGES(NPObject) |
| 322 | 329 |
| OLD | NEW |