Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: content/common/frame_messages.h

Issue 616133002: Make RenderFrame(Host) own a RenderWidget(Host). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 IPC_STRUCT_TRAITS_MEMBER(extra_headers) 188 IPC_STRUCT_TRAITS_MEMBER(extra_headers)
189 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data) 189 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data)
190 IPC_STRUCT_TRAITS_END() 190 IPC_STRUCT_TRAITS_END()
191 191
192 IPC_STRUCT_TRAITS_BEGIN(content::CommitNavigationParams) 192 IPC_STRUCT_TRAITS_BEGIN(content::CommitNavigationParams)
193 IPC_STRUCT_TRAITS_MEMBER(page_state) 193 IPC_STRUCT_TRAITS_MEMBER(page_state)
194 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) 194 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent)
195 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) 195 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start)
196 IPC_STRUCT_TRAITS_END() 196 IPC_STRUCT_TRAITS_END()
197 197
198 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams)
199 // Gives the routing ID for the RenderWidget that will be attached to the
200 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this
201 // is MSG_ROUTING_NONE and the other parameters are not read.
202 IPC_STRUCT_MEMBER(int, routing_id)
203
204 // Identifier for the output surface for the new RenderWidget.
205 IPC_STRUCT_MEMBER(int, surface_id)
206
207 // Tells the new RenderWidget whether it is initially hidden.
208 IPC_STRUCT_MEMBER(bool, hidden)
209 IPC_STRUCT_END()
210
198 IPC_STRUCT_BEGIN(FrameMsg_Navigate_Params) 211 IPC_STRUCT_BEGIN(FrameMsg_Navigate_Params)
199 // TODO(clamy): investigate which parameters are also needed in PlzNavigate 212 // TODO(clamy): investigate which parameters are also needed in PlzNavigate
200 // and move them to the appropriate NavigationParams struct. 213 // and move them to the appropriate NavigationParams struct.
201 214
202 // These structs contain parameters shared by other navigation IPCs. 215 // These structs contain parameters shared by other navigation IPCs.
203 IPC_STRUCT_MEMBER(content::CommonNavigationParams, common_params) 216 IPC_STRUCT_MEMBER(content::CommonNavigationParams, common_params)
204 IPC_STRUCT_MEMBER(content::RequestNavigationParams, request_params) 217 IPC_STRUCT_MEMBER(content::RequestNavigationParams, request_params)
205 IPC_STRUCT_MEMBER(content::CommitNavigationParams, commit_params) 218 IPC_STRUCT_MEMBER(content::CommitNavigationParams, commit_params)
206 219
207 // The page_id for this navigation, or -1 if it is a new navigation. Back, 220 // The page_id for this navigation, or -1 if it is a new navigation. Back,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 IPC_MESSAGE_ROUTED2(FrameMsg_CustomContextMenuAction, 357 IPC_MESSAGE_ROUTED2(FrameMsg_CustomContextMenuAction,
345 content::CustomContextMenuContext /* custom_context */, 358 content::CustomContextMenuContext /* custom_context */,
346 unsigned /* action */) 359 unsigned /* action */)
347 360
348 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null. 361 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null.
349 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener) 362 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener)
350 363
351 // Instructs the renderer to create a new RenderFrame object with |routing_id|. 364 // Instructs the renderer to create a new RenderFrame object with |routing_id|.
352 // The new frame should be created as a child of the object identified by 365 // The new frame should be created as a child of the object identified by
353 // |parent_routing_id| or as top level if that is MSG_ROUTING_NONE. 366 // |parent_routing_id| or as top level if that is MSG_ROUTING_NONE.
354 IPC_MESSAGE_CONTROL2(FrameMsg_NewFrame, 367 IPC_MESSAGE_CONTROL3(FrameMsg_NewFrame,
355 int /* routing_id */, 368 int /* routing_id */,
356 int /* parent_routing_id */) 369 int /* parent_routing_id */,
370 FrameMsg_NewFrame_WidgetParams /* widget_params */)
357 371
358 // Instructs the renderer to create a new RenderFrameProxy object with 372 // Instructs the renderer to create a new RenderFrameProxy object with
359 // |routing_id|. The new proxy should be created as a child of the object 373 // |routing_id|. The new proxy should be created as a child of the object
360 // identified by |parent_routing_id| or as top level if that is 374 // identified by |parent_routing_id| or as top level if that is
361 // MSG_ROUTING_NONE. 375 // MSG_ROUTING_NONE.
362 IPC_MESSAGE_CONTROL3(FrameMsg_NewFrameProxy, 376 IPC_MESSAGE_CONTROL3(FrameMsg_NewFrameProxy,
363 int /* routing_id */, 377 int /* routing_id */,
364 int /* parent_routing_id */, 378 int /* parent_routing_id */,
365 int /* render_view_routing_id */) 379 int /* render_view_routing_id */)
366 380
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) 762 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint)
749 763
750 #if defined(OS_MACOSX) || defined(OS_ANDROID) 764 #if defined(OS_MACOSX) || defined(OS_ANDROID)
751 765
752 // Message to show/hide a popup menu using native controls. 766 // Message to show/hide a popup menu using native controls.
753 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 767 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
754 FrameHostMsg_ShowPopup_Params) 768 FrameHostMsg_ShowPopup_Params)
755 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 769 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
756 770
757 #endif 771 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698