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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 // Extracts the data at the given rect, returning it through the | 785 // Extracts the data at the given rect, returning it through the |
786 // ViewHostMsg_SmartClipDataExtracted IPC. | 786 // ViewHostMsg_SmartClipDataExtracted IPC. |
787 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData, | 787 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData, |
788 gfx::Rect /* rect */) | 788 gfx::Rect /* rect */) |
789 #endif | 789 #endif |
790 | 790 |
791 // Sent by browser to tell renderer compositor that some resources that were | 791 // Sent by browser to tell renderer compositor that some resources that were |
792 // given to the browser in a swap are not being used anymore. | 792 // given to the browser in a swap are not being used anymore. |
793 // If this message is in response to a swap then is_swap_ack is set. | 793 // If this message is in response to a swap then is_swap_ack is set. |
794 IPC_MESSAGE_ROUTED3(ViewMsg_ReclaimCompositorResources, | 794 IPC_MESSAGE_ROUTED3(ViewMsg_ReclaimCompositorResources, |
795 uint32_t /* output_surface_id */, | 795 uint32_t /* compositor_frame_sink_id */, |
796 bool /* is_swap_ack */, | 796 bool /* is_swap_ack */, |
797 cc::ReturnedResourceArray /* resources */) | 797 cc::ReturnedResourceArray /* resources */) |
798 | 798 |
799 // Sent by browser to give renderer compositor a new namespace ID for any | 799 // Sent by browser to give renderer compositor a new namespace ID for any |
800 // SurfaceSequences it has to create. | 800 // SurfaceSequences it has to create. |
801 IPC_MESSAGE_ROUTED1(ViewMsg_SetSurfaceClientId, | 801 IPC_MESSAGE_ROUTED1(ViewMsg_SetSurfaceClientId, |
802 uint32_t /* surface_id_namespace */) | 802 uint32_t /* surface_id_namespace */) |
803 | 803 |
804 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret) | 804 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret) |
805 | 805 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 // Updates the minimum/maximum allowed zoom percent for this tab from the | 1056 // Updates the minimum/maximum allowed zoom percent for this tab from the |
1057 // default values. If |remember| is true, then the zoom setting is applied to | 1057 // default values. If |remember| is true, then the zoom setting is applied to |
1058 // other pages in the site and is saved, otherwise it only applies to this | 1058 // other pages in the site and is saved, otherwise it only applies to this |
1059 // tab. | 1059 // tab. |
1060 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, | 1060 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, |
1061 int /* minimum_percent */, | 1061 int /* minimum_percent */, |
1062 int /* maximum_percent */) | 1062 int /* maximum_percent */) |
1063 | 1063 |
1064 IPC_MESSAGE_ROUTED3( | 1064 IPC_MESSAGE_ROUTED3( |
1065 ViewHostMsg_SwapCompositorFrame, | 1065 ViewHostMsg_SwapCompositorFrame, |
1066 uint32_t /* output_surface_id */, | 1066 uint32_t /* compositor_frame_sink_id */, |
1067 cc::CompositorFrame /* frame */, | 1067 cc::CompositorFrame /* frame */, |
1068 std::vector<IPC::Message> /* messages_to_deliver_with_frame */) | 1068 std::vector<IPC::Message> /* messages_to_deliver_with_frame */) |
1069 | 1069 |
1070 // Send back a string to be recorded by UserMetrics. | 1070 // Send back a string to be recorded by UserMetrics. |
1071 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, | 1071 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, |
1072 std::string /* action */) | 1072 std::string /* action */) |
1073 | 1073 |
1074 // Notifies the browser of an event occurring in the media pipeline. | 1074 // Notifies the browser of an event occurring in the media pipeline. |
1075 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvents, | 1075 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvents, |
1076 std::vector<media::MediaLogEvent> /* events */) | 1076 std::vector<media::MediaLogEvent> /* events */) |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1164 int /* y */) | 1164 int /* y */) |
1165 | 1165 |
1166 #elif defined(OS_MACOSX) | 1166 #elif defined(OS_MACOSX) |
1167 // Receives content of a web page as plain text. | 1167 // Receives content of a web page as plain text. |
1168 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 1168 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
1169 #endif | 1169 #endif |
1170 | 1170 |
1171 // Adding a new message? Stick to the sort order above: first platform | 1171 // Adding a new message? Stick to the sort order above: first platform |
1172 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1172 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1173 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1173 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |