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

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

Issue 1094113003: Allow out-of-process iframes to render to compositing surfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: RWHVChildFrame provide surface ID namespace to renderer process Created 5 years, 7 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 "cc/surfaces/surface_id.h"
9 #include "cc/surfaces/surface_sequence.h"
8 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
9 #include "content/common/content_param_traits.h" 11 #include "content/common/content_param_traits.h"
10 #include "content/common/frame_message_enums.h" 12 #include "content/common/frame_message_enums.h"
11 #include "content/common/frame_param.h" 13 #include "content/common/frame_param.h"
12 #include "content/common/frame_replication_state.h" 14 #include "content/common/frame_replication_state.h"
13 #include "content/common/navigation_gesture.h" 15 #include "content/common/navigation_gesture.h"
14 #include "content/common/navigation_params.h" 16 #include "content/common/navigation_params.h"
15 #include "content/common/resource_request_body.h" 17 #include "content/common/resource_request_body.h"
16 #include "content/public/common/color_suggestion.h" 18 #include "content/public/common/color_suggestion.h"
17 #include "content/public/common/common_param_traits.h" 19 #include "content/public/common/common_param_traits.h"
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 402
401 // Notifies the embedding frame that a new CompositorFrame is ready to be 403 // Notifies the embedding frame that a new CompositorFrame is ready to be
402 // presented. When the frame finishes presenting, a matching 404 // presented. When the frame finishes presenting, a matching
403 // FrameHostMsg_CompositorFrameSwappedACK should be sent back to the 405 // FrameHostMsg_CompositorFrameSwappedACK should be sent back to the
404 // RenderViewHost that was produced the CompositorFrame. 406 // RenderViewHost that was produced the CompositorFrame.
405 // 407 //
406 // This is used in the ubercomp compositing path. 408 // This is used in the ubercomp compositing path.
407 IPC_MESSAGE_ROUTED1(FrameMsg_CompositorFrameSwapped, 409 IPC_MESSAGE_ROUTED1(FrameMsg_CompositorFrameSwapped,
408 FrameMsg_CompositorFrameSwapped_Params /* params */) 410 FrameMsg_CompositorFrameSwapped_Params /* params */)
409 411
412 IPC_MESSAGE_ROUTED4(FrameMsg_SetChildFrameSurface,
413 cc::SurfaceId /* surface_id */,
414 gfx::Size /* frame_size */,
415 float /* scale_factor */,
416 cc::SurfaceSequence /* sequence */)
417
410 // Notifies the embedding frame that the process rendering the child frame's 418 // Notifies the embedding frame that the process rendering the child frame's
411 // contents has terminated. 419 // contents has terminated.
412 IPC_MESSAGE_ROUTED0(FrameMsg_ChildFrameProcessGone) 420 IPC_MESSAGE_ROUTED0(FrameMsg_ChildFrameProcessGone)
413 421
414 // Sent in response to a FrameHostMsg_ContextMenu to let the renderer know that 422 // Sent in response to a FrameHostMsg_ContextMenu to let the renderer know that
415 // the menu has been closed. 423 // the menu has been closed.
416 IPC_MESSAGE_ROUTED1(FrameMsg_ContextMenuClosed, 424 IPC_MESSAGE_ROUTED1(FrameMsg_ContextMenuClosed,
417 content::CustomContextMenuContext /* custom_context */) 425 content::CustomContextMenuContext /* custom_context */)
418 426
419 // Executes custom context menu action that was provided from Blink. 427 // Executes custom context menu action that was provided from Blink.
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 std::string /* mime_type */, 836 std::string /* mime_type */,
829 IPC::ChannelHandle /* channel_handle */, 837 IPC::ChannelHandle /* channel_handle */,
830 content::WebPluginInfo /* info */) 838 content::WebPluginInfo /* info */)
831 839
832 // Acknowledge that we presented an ubercomp frame. 840 // Acknowledge that we presented an ubercomp frame.
833 // 841 //
834 // See FrameMsg_CompositorFrameSwapped 842 // See FrameMsg_CompositorFrameSwapped
835 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, 843 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK,
836 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) 844 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */)
837 845
846 // TODO
847 IPC_MESSAGE_ROUTED1(FrameHostMsg_SatisfySequence,
848 cc::SurfaceSequence /* sequence */)
849
850 // TODO
851 IPC_MESSAGE_ROUTED2(FrameHostMsg_RequireSequence,
852 cc::SurfaceId /* surface_id */,
853 cc::SurfaceSequence /* sequence */)
854
838 // Provides the result from handling BeforeUnload. |proceed| matches the return 855 // Provides the result from handling BeforeUnload. |proceed| matches the return
839 // value of the frame's beforeunload handler: true if the user decided to 856 // value of the frame's beforeunload handler: true if the user decided to
840 // proceed with leaving the page. 857 // proceed with leaving the page.
841 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeforeUnload_ACK, 858 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeforeUnload_ACK,
842 bool /* proceed */, 859 bool /* proceed */,
843 base::TimeTicks /* before_unload_start_time */, 860 base::TimeTicks /* before_unload_start_time */,
844 base::TimeTicks /* before_unload_end_time */) 861 base::TimeTicks /* before_unload_end_time */)
845 862
846 // Indicates that the current frame has swapped out, after a SwapOut message. 863 // Indicates that the current frame has swapped out, after a SwapOut message.
847 IPC_MESSAGE_ROUTED0(FrameHostMsg_SwapOut_ACK) 864 IPC_MESSAGE_ROUTED0(FrameHostMsg_SwapOut_ACK)
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 FrameMsg_PostMessage_Params) 976 FrameMsg_PostMessage_Params)
960 977
961 #if defined(OS_MACOSX) || defined(OS_ANDROID) 978 #if defined(OS_MACOSX) || defined(OS_ANDROID)
962 979
963 // Message to show/hide a popup menu using native controls. 980 // Message to show/hide a popup menu using native controls.
964 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 981 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
965 FrameHostMsg_ShowPopup_Params) 982 FrameHostMsg_ShowPopup_Params)
966 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 983 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
967 984
968 #endif 985 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698