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