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

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

Issue 2774373002: Use MojoCompositorFrameSink in RendererCompositorFrameSink (Closed)
Patch Set: Rebased, dedup IPC Created 3 years, 8 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 (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
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
607 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret) 599 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret)
608 600
609 // Sent by the browser to ask the renderer to redraw. Robust to events that can 601 // Sent by the browser to ask the renderer to redraw. Robust to events that can
610 // happen in renderer (abortion of the commit or draw, loss of output surface 602 // happen in renderer (abortion of the commit or draw, loss of output surface
611 // etc.). 603 // etc.).
612 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw, 604 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw,
613 ui::LatencyInfo /* latency_info */) 605 ui::LatencyInfo /* latency_info */)
614 606
615 // Let renderer know begin frame messages won't be sent even if requested. 607 // Let renderer know begin frame messages won't be sent even if requested.
616 IPC_MESSAGE_ROUTED1(ViewMsg_SetBeginFramePaused, bool /* paused */) 608 IPC_MESSAGE_ROUTED1(ViewMsg_SetBeginFramePaused, bool /* paused */)
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 float /* page_scale_factor */) 789 float /* page_scale_factor */)
798 790
799 // Updates the minimum/maximum allowed zoom percent for this tab from the 791 // Updates the minimum/maximum allowed zoom percent for this tab from the
800 // default values. If |remember| is true, then the zoom setting is applied to 792 // default values. If |remember| is true, then the zoom setting is applied to
801 // other pages in the site and is saved, otherwise it only applies to this 793 // other pages in the site and is saved, otherwise it only applies to this
802 // tab. 794 // tab.
803 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, 795 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits,
804 int /* minimum_percent */, 796 int /* minimum_percent */,
805 int /* maximum_percent */) 797 int /* maximum_percent */)
806 798
807 IPC_MESSAGE_ROUTED3(ViewHostMsg_SwapCompositorFrame,
808 uint32_t /* compositor_frame_sink_id */,
809 cc::LocalSurfaceId /* local_surface_id */,
810 cc::CompositorFrame /* frame */)
811
812 IPC_MESSAGE_ROUTED2(ViewHostMsg_FrameSwapMessages, 799 IPC_MESSAGE_ROUTED2(ViewHostMsg_FrameSwapMessages,
813 uint32_t /* frame_token */, 800 uint32_t /* frame_token */,
814 std::vector<IPC::Message> /* messages */) 801 std::vector<IPC::Message> /* messages */)
815 802
816 // Sent if the BeginFrame did not cause a SwapCompositorFrame (e.g. because no 803 // Sent if the BeginFrame did not cause a SwapCompositorFrame (e.g. because no
817 // updates were required or because it was aborted in the renderer). 804 // updates were required or because it was aborted in the renderer).
818 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginFrameDidNotSwap, 805 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginFrameDidNotSwap,
819 cc::BeginFrameAck /* ack */) 806 cc::BeginFrameAck /* ack */)
820 807
821 // Send back a string to be recorded by UserMetrics. 808 // Send back a string to be recorded by UserMetrics.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 int /* y */) 876 int /* y */)
890 877
891 #elif defined(OS_MACOSX) 878 #elif defined(OS_MACOSX)
892 // Receives content of a web page as plain text. 879 // Receives content of a web page as plain text.
893 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) 880 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string)
894 #endif 881 #endif
895 882
896 // Adding a new message? Stick to the sort order above: first platform 883 // Adding a new message? Stick to the sort order above: first platform
897 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 884 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
898 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 885 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/common/swapped_out_messages.cc ('k') | content/public/app/mojo/content_browser_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698