| 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 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 // Message sent when the renderer changed the background color for the view. | 1586 // Message sent when the renderer changed the background color for the view. |
| 1581 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor, | 1587 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor, |
| 1582 uint32 /* bg_color */) | 1588 uint32 /* bg_color */) |
| 1583 | 1589 |
| 1584 // This message runs the MediaCodec for decoding audio for webaudio. | 1590 // This message runs the MediaCodec for decoding audio for webaudio. |
| 1585 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec, | 1591 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec, |
| 1586 base::SharedMemoryHandle /* encoded_data_handle */, | 1592 base::SharedMemoryHandle /* encoded_data_handle */, |
| 1587 base::FileDescriptor /* pcm_output */, | 1593 base::FileDescriptor /* pcm_output */, |
| 1588 uint32_t /* data_size*/) | 1594 uint32_t /* data_size*/) |
| 1589 | 1595 |
| 1590 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming | |
| 1591 // display events. If |enabled| is true, the BeginFrame message will continue | |
| 1592 // to be be delivered until the notification is disabled. | |
| 1593 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, | |
| 1594 bool /* enabled */) | |
| 1595 | |
| 1596 // Reply to the ViewMsg_ExtractSmartClipData message. | 1596 // Reply to the ViewMsg_ExtractSmartClipData message. |
| 1597 IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted, | 1597 IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted, |
| 1598 base::string16 /* text */, | 1598 base::string16 /* text */, |
| 1599 base::string16 /* html */, | 1599 base::string16 /* html */, |
| 1600 gfx::Rect /* rect */) | 1600 gfx::Rect /* rect */) |
| 1601 | 1601 |
| 1602 #elif defined(OS_MACOSX) | 1602 #elif defined(OS_MACOSX) |
| 1603 // Request that the browser load a font into shared memory for us. | 1603 // Request that the browser load a font into shared memory for us. |
| 1604 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 1604 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
| 1605 FontDescriptor /* font to load */, | 1605 FontDescriptor /* font to load */, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1644 // Since the browser keeps handles to the allocated transport DIBs, this | 1644 // Since the browser keeps handles to the allocated transport DIBs, this |
| 1645 // message is sent to tell the browser that it may release them when the | 1645 // message is sent to tell the browser that it may release them when the |
| 1646 // renderer is finished with them. | 1646 // renderer is finished with them. |
| 1647 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1647 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
| 1648 TransportDIB::Id /* DIB id */) | 1648 TransportDIB::Id /* DIB id */) |
| 1649 #endif | 1649 #endif |
| 1650 | 1650 |
| 1651 // Adding a new message? Stick to the sort order above: first platform | 1651 // Adding a new message? Stick to the sort order above: first platform |
| 1652 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1652 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1653 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1653 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |