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

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

Issue 619843002: cc: Make separate interface for BeginFrame ipc from OutputSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 898
899 // Notifies the renderer whether hiding/showing the top controls is enabled 899 // Notifies the renderer whether hiding/showing the top controls is enabled
900 // and whether or not to animate to the proper state. 900 // and whether or not to animate to the proper state.
901 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, 901 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState,
902 bool /* enable_hiding */, 902 bool /* enable_hiding */,
903 bool /* enable_showing */, 903 bool /* enable_showing */,
904 bool /* animate */) 904 bool /* animate */)
905 905
906 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) 906 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded)
907 907
908 // Sent by the browser when the renderer should generate a new frame.
909 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame,
910 cc::BeginFrameArgs /* args */)
911
912 // Sent by the browser when an IME update that requires acknowledgement has been 908 // Sent by the browser when an IME update that requires acknowledgement has been
913 // processed on the browser side. 909 // processed on the browser side.
914 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck) 910 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck)
915 911
916 // Extracts the data at the given rect, returning it through the 912 // Extracts the data at the given rect, returning it through the
917 // ViewHostMsg_SmartClipDataExtracted IPC. 913 // ViewHostMsg_SmartClipDataExtracted IPC.
918 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData, 914 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData,
919 gfx::Rect /* rect */) 915 gfx::Rect /* rect */)
920 916
921 #elif defined(OS_MACOSX) 917 #elif defined(OS_MACOSX)
(...skipping 29 matching lines...) Expand all
951 cc::CompositorFrameAck /* ack */) 947 cc::CompositorFrameAck /* ack */)
952 948
953 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret) 949 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret)
954 950
955 // Sent by the browser to ask the renderer to redraw. 951 // Sent by the browser to ask the renderer to redraw.
956 // If |request_id| is not zero, it is added to the forced frame's latency info 952 // If |request_id| is not zero, it is added to the forced frame's latency info
957 // as ui::WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT. 953 // as ui::WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT.
958 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw, 954 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw,
959 int /* request_id */) 955 int /* request_id */)
960 956
957 // Sent by the browser when the renderer should generate a new frame.
958 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame,
959 cc::BeginFrameArgs /* args */)
960
961 // ----------------------------------------------------------------------------- 961 // -----------------------------------------------------------------------------
962 // Messages sent from the renderer to the browser. 962 // Messages sent from the renderer to the browser.
963 963
964 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
965 // display events. If |enabled| is true, the BeginFrame message will continue
966 // to be be delivered until the notification is disabled.
967 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames,
968 bool /* enabled */)
969
964 // Sent by the renderer when it is creating a new window. The browser creates 970 // Sent by the renderer when it is creating a new window. The browser creates
965 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is 971 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
966 // MSG_ROUTING_NONE, the view couldn't be created. 972 // MSG_ROUTING_NONE, the view couldn't be created.
967 IPC_SYNC_MESSAGE_CONTROL1_4(ViewHostMsg_CreateWindow, 973 IPC_SYNC_MESSAGE_CONTROL1_4(ViewHostMsg_CreateWindow,
968 ViewHostMsg_CreateWindow_Params, 974 ViewHostMsg_CreateWindow_Params,
969 int /* route_id */, 975 int /* route_id */,
970 int /* main_frame_route_id */, 976 int /* main_frame_route_id */,
971 int32 /* surface_id */, 977 int32 /* surface_id */,
972 int64 /* cloned_session_storage_namespace_id */) 978 int64 /* cloned_session_storage_namespace_id */)
973 979
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 // Message sent when the renderer changed the background color for the view. 1589 // Message sent when the renderer changed the background color for the view.
1584 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor, 1590 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor,
1585 uint32 /* bg_color */) 1591 uint32 /* bg_color */)
1586 1592
1587 // This message runs the MediaCodec for decoding audio for webaudio. 1593 // This message runs the MediaCodec for decoding audio for webaudio.
1588 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec, 1594 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec,
1589 base::SharedMemoryHandle /* encoded_data_handle */, 1595 base::SharedMemoryHandle /* encoded_data_handle */,
1590 base::FileDescriptor /* pcm_output */, 1596 base::FileDescriptor /* pcm_output */,
1591 uint32_t /* data_size*/) 1597 uint32_t /* data_size*/)
1592 1598
1593 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
1594 // display events. If |enabled| is true, the BeginFrame message will continue
1595 // to be be delivered until the notification is disabled.
1596 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame,
1597 bool /* enabled */)
1598
1599 // Reply to the ViewMsg_ExtractSmartClipData message. 1599 // Reply to the ViewMsg_ExtractSmartClipData message.
1600 IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted, 1600 IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted,
1601 base::string16 /* text */, 1601 base::string16 /* text */,
1602 base::string16 /* html */, 1602 base::string16 /* html */,
1603 gfx::Rect /* rect */) 1603 gfx::Rect /* rect */)
1604 1604
1605 #elif defined(OS_MACOSX) 1605 #elif defined(OS_MACOSX)
1606 // Request that the browser load a font into shared memory for us. 1606 // Request that the browser load a font into shared memory for us.
1607 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, 1607 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont,
1608 FontDescriptor /* font to load */, 1608 FontDescriptor /* font to load */,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1647 // Since the browser keeps handles to the allocated transport DIBs, this 1647 // Since the browser keeps handles to the allocated transport DIBs, this
1648 // message is sent to tell the browser that it may release them when the 1648 // message is sent to tell the browser that it may release them when the
1649 // renderer is finished with them. 1649 // renderer is finished with them.
1650 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, 1650 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB,
1651 TransportDIB::Id /* DIB id */) 1651 TransportDIB::Id /* DIB id */)
1652 #endif 1652 #endif
1653 1653
1654 // Adding a new message? Stick to the sort order above: first platform 1654 // Adding a new message? Stick to the sort order above: first platform
1655 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1655 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1656 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1656 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698