OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 page rendering. | 5 // IPC messages for page rendering. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 #if defined(OS_ANDROID) | 589 #if defined(OS_ANDROID) |
590 // Notifies the renderer whether hiding/showing the browser controls is enabled | 590 // Notifies the renderer whether hiding/showing the browser controls is enabled |
591 // and whether or not to animate to the proper state. | 591 // and whether or not to animate to the proper state. |
592 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateBrowserControlsState, | 592 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateBrowserControlsState, |
593 bool /* enable_hiding */, | 593 bool /* enable_hiding */, |
594 bool /* enable_showing */, | 594 bool /* enable_showing */, |
595 bool /* animate */) | 595 bool /* animate */) |
596 | 596 |
597 #endif | 597 #endif |
598 | 598 |
| 599 // Sent by browser to tell renderer compositor that some resources that were |
| 600 // given to the browser in a swap are not being used anymore. |
| 601 // If this message is in response to a swap then is_swap_ack is set. |
| 602 IPC_MESSAGE_ROUTED3(ViewMsg_ReclaimCompositorResources, |
| 603 uint32_t /* compositor_frame_sink_id */, |
| 604 bool /* is_swap_ack */, |
| 605 cc::ReturnedResourceArray /* resources */) |
| 606 |
599 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret) | 607 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret) |
600 | 608 |
601 // Sent by the browser to ask the renderer to redraw. Robust to events that can | 609 // Sent by the browser to ask the renderer to redraw. Robust to events that can |
602 // happen in renderer (abortion of the commit or draw, loss of output surface | 610 // happen in renderer (abortion of the commit or draw, loss of output surface |
603 // etc.). | 611 // etc.). |
604 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw, | 612 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw, |
605 ui::LatencyInfo /* latency_info */) | 613 ui::LatencyInfo /* latency_info */) |
606 | 614 |
607 // Let renderer know begin frame messages won't be sent even if requested. | 615 // Let renderer know begin frame messages won't be sent even if requested. |
608 IPC_MESSAGE_ROUTED1(ViewMsg_SetBeginFramePaused, bool /* paused */) | 616 IPC_MESSAGE_ROUTED1(ViewMsg_SetBeginFramePaused, bool /* paused */) |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 float /* page_scale_factor */) | 797 float /* page_scale_factor */) |
790 | 798 |
791 // Updates the minimum/maximum allowed zoom percent for this tab from the | 799 // Updates the minimum/maximum allowed zoom percent for this tab from the |
792 // default values. If |remember| is true, then the zoom setting is applied to | 800 // default values. If |remember| is true, then the zoom setting is applied to |
793 // other pages in the site and is saved, otherwise it only applies to this | 801 // other pages in the site and is saved, otherwise it only applies to this |
794 // tab. | 802 // tab. |
795 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, | 803 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, |
796 int /* minimum_percent */, | 804 int /* minimum_percent */, |
797 int /* maximum_percent */) | 805 int /* maximum_percent */) |
798 | 806 |
| 807 IPC_MESSAGE_ROUTED3(ViewHostMsg_SwapCompositorFrame, |
| 808 uint32_t /* compositor_frame_sink_id */, |
| 809 cc::LocalSurfaceId /* local_surface_id */, |
| 810 cc::CompositorFrame /* frame */) |
| 811 |
799 IPC_MESSAGE_ROUTED2(ViewHostMsg_FrameSwapMessages, | 812 IPC_MESSAGE_ROUTED2(ViewHostMsg_FrameSwapMessages, |
800 uint32_t /* frame_token */, | 813 uint32_t /* frame_token */, |
801 std::vector<IPC::Message> /* messages */) | 814 std::vector<IPC::Message> /* messages */) |
802 | 815 |
803 // Sent if the BeginFrame did not cause a SwapCompositorFrame (e.g. because no | 816 // Sent if the BeginFrame did not cause a SwapCompositorFrame (e.g. because no |
804 // updates were required or because it was aborted in the renderer). | 817 // updates were required or because it was aborted in the renderer). |
805 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginFrameDidNotSwap, | 818 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginFrameDidNotSwap, |
806 cc::BeginFrameAck /* ack */) | 819 cc::BeginFrameAck /* ack */) |
807 | 820 |
808 // Send back a string to be recorded by UserMetrics. | 821 // Send back a string to be recorded by UserMetrics. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 int /* y */) | 889 int /* y */) |
877 | 890 |
878 #elif defined(OS_MACOSX) | 891 #elif defined(OS_MACOSX) |
879 // Receives content of a web page as plain text. | 892 // Receives content of a web page as plain text. |
880 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 893 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
881 #endif | 894 #endif |
882 | 895 |
883 // Adding a new message? Stick to the sort order above: first platform | 896 // Adding a new message? Stick to the sort order above: first platform |
884 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 897 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
885 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 898 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |