OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // Multiply-included message file, hence no include guard. | 5 // Multiply-included message file, hence no include guard. |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "content/child/plugin_param_traits.h" | 10 #include "content/child/plugin_param_traits.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 IPC_MESSAGE_ROUTED1(PluginMsg_SetContentAreaFocus, | 105 IPC_MESSAGE_ROUTED1(PluginMsg_SetContentAreaFocus, |
106 bool /* has_focus */) | 106 bool /* has_focus */) |
107 | 107 |
108 IPC_MESSAGE_CONTROL1(PluginMsg_SignalModalDialogEvent, | 108 IPC_MESSAGE_CONTROL1(PluginMsg_SignalModalDialogEvent, |
109 int /* render_view_id */) | 109 int /* render_view_id */) |
110 | 110 |
111 IPC_MESSAGE_CONTROL1(PluginMsg_ResetModalDialogEvent, | 111 IPC_MESSAGE_CONTROL1(PluginMsg_ResetModalDialogEvent, |
112 int /* render_view_id */) | 112 int /* render_view_id */) |
113 | 113 |
| 114 #if defined(OS_WIN) |
| 115 IPC_MESSAGE_ROUTED4(PluginMsg_ImeCompositionUpdated, |
| 116 base::string16 /* text */, |
| 117 std::vector<int> /* clauses */, |
| 118 std::vector<int>, /* target */ |
| 119 int /* cursor_position */) |
| 120 |
| 121 IPC_MESSAGE_ROUTED1(PluginMsg_ImeCompositionCompleted, |
| 122 base::string16 /* text */) |
| 123 #endif |
| 124 |
114 #if defined(OS_MACOSX) | 125 #if defined(OS_MACOSX) |
115 IPC_MESSAGE_ROUTED1(PluginMsg_SetWindowFocus, | 126 IPC_MESSAGE_ROUTED1(PluginMsg_SetWindowFocus, |
116 bool /* has_focus */) | 127 bool /* has_focus */) |
117 | 128 |
118 IPC_MESSAGE_ROUTED0(PluginMsg_ContainerHidden) | 129 IPC_MESSAGE_ROUTED0(PluginMsg_ContainerHidden) |
119 | 130 |
120 IPC_MESSAGE_ROUTED3(PluginMsg_ContainerShown, | 131 IPC_MESSAGE_ROUTED3(PluginMsg_ContainerShown, |
121 gfx::Rect /* window_frame */, | 132 gfx::Rect /* window_frame */, |
122 gfx::Rect /* view_frame */, | 133 gfx::Rect /* view_frame */, |
123 bool /* has_focus */) | 134 bool /* has_focus */) |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 IPC_MESSAGE_ROUTED0(PluginHostMsg_CancelDocumentLoad) | 175 IPC_MESSAGE_ROUTED0(PluginHostMsg_CancelDocumentLoad) |
165 | 176 |
166 IPC_MESSAGE_ROUTED0(PluginHostMsg_DidStartLoading) | 177 IPC_MESSAGE_ROUTED0(PluginHostMsg_DidStartLoading) |
167 IPC_MESSAGE_ROUTED0(PluginHostMsg_DidStopLoading) | 178 IPC_MESSAGE_ROUTED0(PluginHostMsg_DidStopLoading) |
168 | 179 |
169 IPC_SYNC_MESSAGE_CONTROL1_0(PluginHostMsg_SetException, | 180 IPC_SYNC_MESSAGE_CONTROL1_0(PluginHostMsg_SetException, |
170 std::string /* message */) | 181 std::string /* message */) |
171 | 182 |
172 IPC_MESSAGE_CONTROL0(PluginHostMsg_PluginShuttingDown) | 183 IPC_MESSAGE_CONTROL0(PluginHostMsg_PluginShuttingDown) |
173 | 184 |
| 185 #if defined(OS_WIN) |
| 186 // The modal_loop_pump_messages_event parameter is an event handle which is |
| 187 // passed in for windowless plugins and is used to indicate if messages |
| 188 // are to be pumped in sync calls to the plugin process. Currently used |
| 189 // in HandleEvent calls. |
| 190 IPC_SYNC_MESSAGE_ROUTED2_0(PluginHostMsg_SetWindowlessData, |
| 191 HANDLE /* modal_loop_pump_messages_event */, |
| 192 gfx::NativeViewId /* dummy_activation_window*/) |
| 193 |
| 194 // Send the IME status retrieved from a windowless plugin. A windowless plugin |
| 195 // uses the IME attached to a browser process as a renderer does. A plugin |
| 196 // sends this message to control the IME status of a browser process. I would |
| 197 // note that a plugin sends this message to a renderer process that hosts this |
| 198 // plugin (not directly to a browser process) so the renderer process can |
| 199 // update its IME status. |
| 200 IPC_MESSAGE_ROUTED2(PluginHostMsg_NotifyIMEStatus, |
| 201 int /* input_type */, |
| 202 gfx::Rect /* caret_rect */) |
| 203 #endif |
| 204 |
174 #if defined(OS_MACOSX) | 205 #if defined(OS_MACOSX) |
175 IPC_MESSAGE_ROUTED1(PluginHostMsg_FocusChanged, | 206 IPC_MESSAGE_ROUTED1(PluginHostMsg_FocusChanged, |
176 bool /* focused */) | 207 bool /* focused */) |
177 | 208 |
178 IPC_MESSAGE_ROUTED0(PluginHostMsg_StartIme) | 209 IPC_MESSAGE_ROUTED0(PluginHostMsg_StartIme) |
179 | 210 |
180 //---------------------------------------------------------------------- | 211 //---------------------------------------------------------------------- |
181 // Core Animation plugin implementation rendering via compositor. | 212 // Core Animation plugin implementation rendering via compositor. |
182 | 213 |
183 // Notifies the renderer process that this plugin will be using the | 214 // Notifies the renderer process that this plugin will be using the |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct, | 277 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct, |
247 std::vector<content::NPVariant_Param> /* args */, | 278 std::vector<content::NPVariant_Param> /* args */, |
248 content::NPVariant_Param /* result_param */, | 279 content::NPVariant_Param /* result_param */, |
249 bool /* result */) | 280 bool /* result */) |
250 | 281 |
251 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, | 282 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, |
252 std::string /* script */, | 283 std::string /* script */, |
253 bool /* popups_allowed */, | 284 bool /* popups_allowed */, |
254 content::NPVariant_Param /* result_param */, | 285 content::NPVariant_Param /* result_param */, |
255 bool /* result */) | 286 bool /* result */) |
OLD | NEW |