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 // IPC messages for interacting with frames. | 5 // IPC messages for interacting with frames. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "content/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 290 |
291 // Tells the renderer to perform the specified navigation, interrupting any | 291 // Tells the renderer to perform the specified navigation, interrupting any |
292 // existing navigation. | 292 // existing navigation. |
293 IPC_MESSAGE_ROUTED1(FrameMsg_Navigate, FrameMsg_Navigate_Params) | 293 IPC_MESSAGE_ROUTED1(FrameMsg_Navigate, FrameMsg_Navigate_Params) |
294 | 294 |
295 // Instructs the frame to swap out for a cross-site transition, including | 295 // Instructs the frame to swap out for a cross-site transition, including |
296 // running the unload event handler. Expects a SwapOut_ACK message when | 296 // running the unload event handler. Expects a SwapOut_ACK message when |
297 // finished. | 297 // finished. |
298 IPC_MESSAGE_ROUTED0(FrameMsg_SwapOut) | 298 IPC_MESSAGE_ROUTED0(FrameMsg_SwapOut) |
299 | 299 |
| 300 // Request for the renderer to insert CSS into the frame. |
| 301 IPC_MESSAGE_ROUTED1(FrameMsg_CSSInsertRequest, |
| 302 std::string /* css */) |
| 303 |
300 // ----------------------------------------------------------------------------- | 304 // ----------------------------------------------------------------------------- |
301 // Messages sent from the renderer to the browser. | 305 // Messages sent from the renderer to the browser. |
302 | 306 |
303 // Sent by the renderer when a child frame is created in the renderer. | 307 // Sent by the renderer when a child frame is created in the renderer. |
304 // | 308 // |
305 // Each of these messages will have a corresponding FrameHostMsg_Detach message | 309 // Each of these messages will have a corresponding FrameHostMsg_Detach message |
306 // sent when the frame is detached from the DOM. | 310 // sent when the frame is detached from the DOM. |
307 IPC_SYNC_MESSAGE_CONTROL2_1(FrameHostMsg_CreateChildFrame, | 311 IPC_SYNC_MESSAGE_CONTROL2_1(FrameHostMsg_CreateChildFrame, |
308 int32 /* parent_routing_id */, | 312 int32 /* parent_routing_id */, |
309 std::string /* frame_name */, | 313 std::string /* frame_name */, |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 // content area, and a context menu should be shown for it. The params | 442 // content area, and a context menu should be shown for it. The params |
439 // object contains information about the node(s) that were selected when the | 443 // object contains information about the node(s) that were selected when the |
440 // user right clicked. | 444 // user right clicked. |
441 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams) | 445 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams) |
442 | 446 |
443 // Initial drawing parameters for a child frame that has been swapped out to | 447 // Initial drawing parameters for a child frame that has been swapped out to |
444 // another process. | 448 // another process. |
445 IPC_MESSAGE_ROUTED2(FrameHostMsg_InitializeChildFrame, | 449 IPC_MESSAGE_ROUTED2(FrameHostMsg_InitializeChildFrame, |
446 gfx::Rect /* frame_rect */, | 450 gfx::Rect /* frame_rect */, |
447 float /* scale_factor */) | 451 float /* scale_factor */) |
OLD | NEW |