| 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 "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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 | 405 |
| 404 // Notifies the embedding frame that a new CompositorFrame is ready to be | 406 // Notifies the embedding frame that a new CompositorFrame is ready to be |
| 405 // presented. When the frame finishes presenting, a matching | 407 // presented. When the frame finishes presenting, a matching |
| 406 // FrameHostMsg_CompositorFrameSwappedACK should be sent back to the | 408 // FrameHostMsg_CompositorFrameSwappedACK should be sent back to the |
| 407 // RenderViewHost that was produced the CompositorFrame. | 409 // RenderViewHost that was produced the CompositorFrame. |
| 408 // | 410 // |
| 409 // This is used in the ubercomp compositing path. | 411 // This is used in the ubercomp compositing path. |
| 410 IPC_MESSAGE_ROUTED1(FrameMsg_CompositorFrameSwapped, | 412 IPC_MESSAGE_ROUTED1(FrameMsg_CompositorFrameSwapped, |
| 411 FrameMsg_CompositorFrameSwapped_Params /* params */) | 413 FrameMsg_CompositorFrameSwapped_Params /* params */) |
| 412 | 414 |
| 415 IPC_MESSAGE_ROUTED4(FrameMsg_SetChildFrameSurface, |
| 416 cc::SurfaceId /* surface_id */, |
| 417 gfx::Size /* frame_size */, |
| 418 float /* scale_factor */, |
| 419 cc::SurfaceSequence /* sequence */) |
| 420 |
| 413 // Notifies the embedding frame that the process rendering the child frame's | 421 // Notifies the embedding frame that the process rendering the child frame's |
| 414 // contents has terminated. | 422 // contents has terminated. |
| 415 IPC_MESSAGE_ROUTED0(FrameMsg_ChildFrameProcessGone) | 423 IPC_MESSAGE_ROUTED0(FrameMsg_ChildFrameProcessGone) |
| 416 | 424 |
| 417 // Sent in response to a FrameHostMsg_ContextMenu to let the renderer know that | 425 // Sent in response to a FrameHostMsg_ContextMenu to let the renderer know that |
| 418 // the menu has been closed. | 426 // the menu has been closed. |
| 419 IPC_MESSAGE_ROUTED1(FrameMsg_ContextMenuClosed, | 427 IPC_MESSAGE_ROUTED1(FrameMsg_ContextMenuClosed, |
| 420 content::CustomContextMenuContext /* custom_context */) | 428 content::CustomContextMenuContext /* custom_context */) |
| 421 | 429 |
| 422 // Executes custom context menu action that was provided from Blink. | 430 // Executes custom context menu action that was provided from Blink. |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 std::string /* mime_type */, | 839 std::string /* mime_type */, |
| 832 IPC::ChannelHandle /* channel_handle */, | 840 IPC::ChannelHandle /* channel_handle */, |
| 833 content::WebPluginInfo /* info */) | 841 content::WebPluginInfo /* info */) |
| 834 | 842 |
| 835 // Acknowledge that we presented an ubercomp frame. | 843 // Acknowledge that we presented an ubercomp frame. |
| 836 // | 844 // |
| 837 // See FrameMsg_CompositorFrameSwapped | 845 // See FrameMsg_CompositorFrameSwapped |
| 838 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, | 846 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, |
| 839 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) | 847 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) |
| 840 | 848 |
| 849 // TODO |
| 850 IPC_MESSAGE_ROUTED1(FrameHostMsg_SatisfySequence, |
| 851 cc::SurfaceSequence /* sequence */) |
| 852 |
| 853 // TODO |
| 854 IPC_MESSAGE_ROUTED2(FrameHostMsg_RequireSequence, |
| 855 cc::SurfaceId /* surface_id */, |
| 856 cc::SurfaceSequence /* sequence */) |
| 857 |
| 841 // Provides the result from handling BeforeUnload. |proceed| matches the return | 858 // Provides the result from handling BeforeUnload. |proceed| matches the return |
| 842 // value of the frame's beforeunload handler: true if the user decided to | 859 // value of the frame's beforeunload handler: true if the user decided to |
| 843 // proceed with leaving the page. | 860 // proceed with leaving the page. |
| 844 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeforeUnload_ACK, | 861 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeforeUnload_ACK, |
| 845 bool /* proceed */, | 862 bool /* proceed */, |
| 846 base::TimeTicks /* before_unload_start_time */, | 863 base::TimeTicks /* before_unload_start_time */, |
| 847 base::TimeTicks /* before_unload_end_time */) | 864 base::TimeTicks /* before_unload_end_time */) |
| 848 | 865 |
| 849 // Indicates that the current frame has swapped out, after a SwapOut message. | 866 // Indicates that the current frame has swapped out, after a SwapOut message. |
| 850 IPC_MESSAGE_ROUTED0(FrameHostMsg_SwapOut_ACK) | 867 IPC_MESSAGE_ROUTED0(FrameHostMsg_SwapOut_ACK) |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 FrameMsg_PostMessage_Params) | 979 FrameMsg_PostMessage_Params) |
| 963 | 980 |
| 964 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 981 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 965 | 982 |
| 966 // Message to show/hide a popup menu using native controls. | 983 // Message to show/hide a popup menu using native controls. |
| 967 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 984 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 968 FrameHostMsg_ShowPopup_Params) | 985 FrameHostMsg_ShowPopup_Params) |
| 969 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 986 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 970 | 987 |
| 971 #endif | 988 #endif |
| OLD | NEW |