| 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 IPC_STRUCT_MEMBER(bool, right_aligned) | 328 IPC_STRUCT_MEMBER(bool, right_aligned) |
| 329 | 329 |
| 330 // Whether this is a multi-select popup. | 330 // Whether this is a multi-select popup. |
| 331 IPC_STRUCT_MEMBER(bool, allow_multiple_selection) | 331 IPC_STRUCT_MEMBER(bool, allow_multiple_selection) |
| 332 IPC_STRUCT_END() | 332 IPC_STRUCT_END() |
| 333 #endif | 333 #endif |
| 334 | 334 |
| 335 // ----------------------------------------------------------------------------- | 335 // ----------------------------------------------------------------------------- |
| 336 // Messages sent from the browser to the renderer. | 336 // Messages sent from the browser to the renderer. |
| 337 | 337 |
| 338 // When HW accelerated buffers are swapped in an out-of-process child frame | |
| 339 // renderer, the message is forwarded to the embedding frame to notify it of | |
| 340 // a new texture available for compositing. When the buffer has finished | |
| 341 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to | |
| 342 // gpu host that produced this buffer. | |
| 343 // | |
| 344 // This is used in the non-ubercomp HW accelerated compositing path. | |
| 345 IPC_MESSAGE_ROUTED1(FrameMsg_BuffersSwapped, | |
| 346 FrameMsg_BuffersSwapped_Params /* params */) | |
| 347 | |
| 348 // Notifies the embedding frame that a new CompositorFrame is ready to be | 338 // Notifies the embedding frame that a new CompositorFrame is ready to be |
| 349 // presented. When the frame finishes presenting, a matching | 339 // presented. When the frame finishes presenting, a matching |
| 350 // FrameHostMsg_CompositorFrameSwappedACK should be sent back to the | 340 // FrameHostMsg_CompositorFrameSwappedACK should be sent back to the |
| 351 // RenderViewHost that was produced the CompositorFrame. | 341 // RenderViewHost that was produced the CompositorFrame. |
| 352 // | 342 // |
| 353 // This is used in the ubercomp compositing path. | 343 // This is used in the ubercomp compositing path. |
| 354 IPC_MESSAGE_ROUTED1(FrameMsg_CompositorFrameSwapped, | 344 IPC_MESSAGE_ROUTED1(FrameMsg_CompositorFrameSwapped, |
| 355 FrameMsg_CompositorFrameSwapped_Params /* params */) | 345 FrameMsg_CompositorFrameSwapped_Params /* params */) |
| 356 | 346 |
| 357 // Notifies the embedding frame that the process rendering the child frame's | 347 // Notifies the embedding frame that the process rendering the child frame's |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 // necessary, and will return a handle to the channel on success. | 631 // necessary, and will return a handle to the channel on success. |
| 642 // On error an empty string is returned. | 632 // On error an empty string is returned. |
| 643 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, | 633 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, |
| 644 int /* render_frame_id */, | 634 int /* render_frame_id */, |
| 645 GURL /* url */, | 635 GURL /* url */, |
| 646 GURL /* page_url */, | 636 GURL /* page_url */, |
| 647 std::string /* mime_type */, | 637 std::string /* mime_type */, |
| 648 IPC::ChannelHandle /* channel_handle */, | 638 IPC::ChannelHandle /* channel_handle */, |
| 649 content::WebPluginInfo /* info */) | 639 content::WebPluginInfo /* info */) |
| 650 | 640 |
| 651 // Acknowledge that we presented a HW buffer and provide a sync point | |
| 652 // to specify the location in the command stream when the compositor | |
| 653 // is no longer using it. | |
| 654 // | |
| 655 // See FrameMsg_BuffersSwapped. | |
| 656 IPC_MESSAGE_ROUTED1(FrameHostMsg_BuffersSwappedACK, | |
| 657 FrameHostMsg_BuffersSwappedACK_Params /* params */) | |
| 658 | |
| 659 // Acknowledge that we presented an ubercomp frame. | 641 // Acknowledge that we presented an ubercomp frame. |
| 660 // | 642 // |
| 661 // See FrameMsg_CompositorFrameSwapped | 643 // See FrameMsg_CompositorFrameSwapped |
| 662 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, | 644 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, |
| 663 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) | 645 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) |
| 664 | 646 |
| 665 // Provides the result from handling BeforeUnload. |proceed| matches the return | 647 // Provides the result from handling BeforeUnload. |proceed| matches the return |
| 666 // value of the frame's beforeunload handler: true if the user decided to | 648 // value of the frame's beforeunload handler: true if the user decided to |
| 667 // proceed with leaving the page. | 649 // proceed with leaving the page. |
| 668 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeforeUnload_ACK, | 650 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeforeUnload_ACK, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 755 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
| 774 | 756 |
| 775 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 757 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 776 | 758 |
| 777 // Message to show/hide a popup menu using native controls. | 759 // Message to show/hide a popup menu using native controls. |
| 778 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 760 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 779 FrameHostMsg_ShowPopup_Params) | 761 FrameHostMsg_ShowPopup_Params) |
| 780 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 762 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 781 | 763 |
| 782 #endif | 764 #endif |
| OLD | NEW |