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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
918 | 918 |
919 // Notifies the renderer whether hiding/showing the top controls is enabled | 919 // Notifies the renderer whether hiding/showing the top controls is enabled |
920 // and whether or not to animate to the proper state. | 920 // and whether or not to animate to the proper state. |
921 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, | 921 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, |
922 bool /* enable_hiding */, | 922 bool /* enable_hiding */, |
923 bool /* enable_showing */, | 923 bool /* enable_showing */, |
924 bool /* animate */) | 924 bool /* animate */) |
925 | 925 |
926 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) | 926 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) |
927 | 927 |
928 // Sent by the browser when the renderer should generate a new frame. | |
929 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, | |
930 cc::BeginFrameArgs /* args */) | |
931 | |
932 // Sent by the browser when an IME update that requires acknowledgement has been | 928 // Sent by the browser when an IME update that requires acknowledgement has been |
933 // processed on the browser side. | 929 // processed on the browser side. |
934 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck) | 930 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck) |
935 | 931 |
936 // Extracts the data at the given rect, returning it through the | 932 // Extracts the data at the given rect, returning it through the |
937 // ViewHostMsg_SmartClipDataExtracted IPC. | 933 // ViewHostMsg_SmartClipDataExtracted IPC. |
938 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData, | 934 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData, |
939 gfx::Rect /* rect */) | 935 gfx::Rect /* rect */) |
940 | 936 |
941 #elif defined(OS_MACOSX) | 937 #elif defined(OS_MACOSX) |
(...skipping 14 matching lines...) Expand all Loading... | |
956 // Tell the renderer that plugin IME has completed. | 952 // Tell the renderer that plugin IME has completed. |
957 IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionCompleted, | 953 IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionCompleted, |
958 base::string16 /* text */, | 954 base::string16 /* text */, |
959 int /* plugin_id */) | 955 int /* plugin_id */) |
960 | 956 |
961 // External popup menus. | 957 // External popup menus. |
962 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, | 958 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, |
963 int /* selected index, -1 means no selection */) | 959 int /* selected index, -1 means no selection */) |
964 #endif | 960 #endif |
965 | 961 |
962 #if !defined(OS_MACOSX) | |
brianderson
2014/08/21 00:14:00
Should this be:
#if defined(OS_ANDROID) || defined
simonhong
2014/08/26 08:24:48
Done.
| |
963 // Sent by the browser when the renderer should generate a new frame. | |
964 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, | |
965 cc::BeginFrameArgs /* args */) | |
966 #endif | |
967 | |
966 // Sent by the browser as a reply to ViewHostMsg_SwapCompositorFrame. | 968 // Sent by the browser as a reply to ViewHostMsg_SwapCompositorFrame. |
967 IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck, | 969 IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck, |
968 uint32 /* output_surface_id */, | 970 uint32 /* output_surface_id */, |
969 cc::CompositorFrameAck /* ack */) | 971 cc::CompositorFrameAck /* ack */) |
970 | 972 |
971 // Sent by browser to tell renderer compositor that some resources that were | 973 // Sent by browser to tell renderer compositor that some resources that were |
972 // given to the browser in a swap are not being used anymore. | 974 // given to the browser in a swap are not being used anymore. |
973 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources, | 975 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources, |
974 uint32 /* output_surface_id */, | 976 uint32 /* output_surface_id */, |
975 cc::CompositorFrameAck /* ack */) | 977 cc::CompositorFrameAck /* ack */) |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1588 | 1590 |
1589 // Message sent from the renderer to the browser when a HTML form validation | 1591 // Message sent from the renderer to the browser when a HTML form validation |
1590 // message should be hidden from view. | 1592 // message should be hidden from view. |
1591 IPC_MESSAGE_ROUTED0(ViewHostMsg_HideValidationMessage) | 1593 IPC_MESSAGE_ROUTED0(ViewHostMsg_HideValidationMessage) |
1592 | 1594 |
1593 // Message sent from the renderer to the browser when the suggested co-ordinates | 1595 // Message sent from the renderer to the browser when the suggested co-ordinates |
1594 // of the anchor for a HTML form validation message have changed. | 1596 // of the anchor for a HTML form validation message have changed. |
1595 IPC_MESSAGE_ROUTED1(ViewHostMsg_MoveValidationMessage, | 1597 IPC_MESSAGE_ROUTED1(ViewHostMsg_MoveValidationMessage, |
1596 gfx::Rect /* anchor rectangle in root view coordinate */) | 1598 gfx::Rect /* anchor rectangle in root view coordinate */) |
1597 | 1599 |
1600 #if !defined(OS_MACOSX) | |
1601 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming | |
1602 // display events. If |enabled| is true, the BeginFrame message will continue | |
1603 // to be be delivered until the notification is disabled. | |
1604 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, | |
1605 bool /* enabled */) | |
1606 #endif | |
1607 | |
1598 #if defined(OS_ANDROID) | 1608 #if defined(OS_ANDROID) |
1599 // Response to ViewMsg_FindMatchRects. | 1609 // Response to ViewMsg_FindMatchRects. |
1600 // | 1610 // |
1601 // |version| will contain the current version number of the renderer's find | 1611 // |version| will contain the current version number of the renderer's find |
1602 // match list (incremented whenever they change), which should be passed in the | 1612 // match list (incremented whenever they change), which should be passed in the |
1603 // next call to ViewMsg_FindMatchRects. | 1613 // next call to ViewMsg_FindMatchRects. |
1604 // | 1614 // |
1605 // |rects| will either contain a list of the enclosing rects of all matches | 1615 // |rects| will either contain a list of the enclosing rects of all matches |
1606 // found by the most recent Find operation, or will be empty if |version| is not | 1616 // found by the most recent Find operation, or will be empty if |version| is not |
1607 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence | 1617 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence |
(...skipping 15 matching lines...) Expand all Loading... | |
1623 // Message sent when the renderer changed the background color for the view. | 1633 // Message sent when the renderer changed the background color for the view. |
1624 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor, | 1634 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor, |
1625 uint32 /* bg_color */) | 1635 uint32 /* bg_color */) |
1626 | 1636 |
1627 // This message runs the MediaCodec for decoding audio for webaudio. | 1637 // This message runs the MediaCodec for decoding audio for webaudio. |
1628 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec, | 1638 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec, |
1629 base::SharedMemoryHandle /* encoded_data_handle */, | 1639 base::SharedMemoryHandle /* encoded_data_handle */, |
1630 base::FileDescriptor /* pcm_output */, | 1640 base::FileDescriptor /* pcm_output */, |
1631 uint32_t /* data_size*/) | 1641 uint32_t /* data_size*/) |
1632 | 1642 |
1633 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming | |
1634 // display events. If |enabled| is true, the BeginFrame message will continue | |
1635 // to be be delivered until the notification is disabled. | |
1636 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, | |
1637 bool /* enabled */) | |
1638 | |
1639 // Reply to the ViewMsg_ExtractSmartClipData message. | 1643 // Reply to the ViewMsg_ExtractSmartClipData message. |
1640 IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted, | 1644 IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted, |
1641 base::string16 /* text */, | 1645 base::string16 /* text */, |
1642 base::string16 /* html */, | 1646 base::string16 /* html */, |
1643 gfx::Rect /* rect */) | 1647 gfx::Rect /* rect */) |
1644 | 1648 |
1645 #elif defined(OS_MACOSX) | 1649 #elif defined(OS_MACOSX) |
1646 // Request that the browser load a font into shared memory for us. | 1650 // Request that the browser load a font into shared memory for us. |
1647 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 1651 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
1648 FontDescriptor /* font to load */, | 1652 FontDescriptor /* font to load */, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1684 // Since the browser keeps handles to the allocated transport DIBs, this | 1688 // Since the browser keeps handles to the allocated transport DIBs, this |
1685 // message is sent to tell the browser that it may release them when the | 1689 // message is sent to tell the browser that it may release them when the |
1686 // renderer is finished with them. | 1690 // renderer is finished with them. |
1687 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1691 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
1688 TransportDIB::Id /* DIB id */) | 1692 TransportDIB::Id /* DIB id */) |
1689 #endif | 1693 #endif |
1690 | 1694 |
1691 // Adding a new message? Stick to the sort order above: first platform | 1695 // Adding a new message? Stick to the sort order above: first platform |
1692 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1696 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1693 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1697 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |