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