| 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 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 | 885 |
| 886 // Notifies the renderer whether hiding/showing the top controls is enabled | 886 // Notifies the renderer whether hiding/showing the top controls is enabled |
| 887 // and whether or not to animate to the proper state. | 887 // and whether or not to animate to the proper state. |
| 888 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, | 888 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, |
| 889 bool /* enable_hiding */, | 889 bool /* enable_hiding */, |
| 890 bool /* enable_showing */, | 890 bool /* enable_showing */, |
| 891 bool /* animate */) | 891 bool /* animate */) |
| 892 | 892 |
| 893 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) | 893 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) |
| 894 | 894 |
| 895 // Sent by the browser when the renderer should generate a new frame. | |
| 896 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, | |
| 897 cc::BeginFrameArgs /* args */) | |
| 898 | |
| 899 // Sent by the browser when an IME update that requires acknowledgement has been | 895 // Sent by the browser when an IME update that requires acknowledgement has been |
| 900 // processed on the browser side. | 896 // processed on the browser side. |
| 901 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck) | 897 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck) |
| 902 | 898 |
| 903 // Extracts the data at the given rect, returning it through the | 899 // Extracts the data at the given rect, returning it through the |
| 904 // ViewHostMsg_SmartClipDataExtracted IPC. | 900 // ViewHostMsg_SmartClipDataExtracted IPC. |
| 905 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData, | 901 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData, |
| 906 gfx::Rect /* rect */) | 902 gfx::Rect /* rect */) |
| 907 | 903 |
| 908 #elif defined(OS_MACOSX) | 904 #elif defined(OS_MACOSX) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 919 // resizing the view. | 915 // resizing the view. |
| 920 IPC_MESSAGE_ROUTED1(ViewMsg_SetInLiveResize, | 916 IPC_MESSAGE_ROUTED1(ViewMsg_SetInLiveResize, |
| 921 bool /* enable */) | 917 bool /* enable */) |
| 922 | 918 |
| 923 // Tell the renderer that plugin IME has completed. | 919 // Tell the renderer that plugin IME has completed. |
| 924 IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionCompleted, | 920 IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionCompleted, |
| 925 base::string16 /* text */, | 921 base::string16 /* text */, |
| 926 int /* plugin_id */) | 922 int /* plugin_id */) |
| 927 #endif | 923 #endif |
| 928 | 924 |
| 925 #if defined(OS_ANDROID) || defined(OS_MACOSX) || defined(USE_AURA) |
| 926 // Sent by the browser when the renderer should generate a new frame. |
| 927 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, cc::BeginFrameArgs /* args */) |
| 928 #endif |
| 929 |
| 929 // Sent by the browser as a reply to ViewHostMsg_SwapCompositorFrame. | 930 // Sent by the browser as a reply to ViewHostMsg_SwapCompositorFrame. |
| 930 IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck, | 931 IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck, |
| 931 uint32 /* output_surface_id */, | 932 uint32 /* output_surface_id */, |
| 932 cc::CompositorFrameAck /* ack */) | 933 cc::CompositorFrameAck /* ack */) |
| 933 | 934 |
| 934 // Sent by browser to tell renderer compositor that some resources that were | 935 // Sent by browser to tell renderer compositor that some resources that were |
| 935 // given to the browser in a swap are not being used anymore. | 936 // given to the browser in a swap are not being used anymore. |
| 936 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources, | 937 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources, |
| 937 uint32 /* output_surface_id */, | 938 uint32 /* output_surface_id */, |
| 938 cc::CompositorFrameAck /* ack */) | 939 cc::CompositorFrameAck /* ack */) |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1534 | 1535 |
| 1535 // Message sent from the renderer to the browser when a HTML form validation | 1536 // Message sent from the renderer to the browser when a HTML form validation |
| 1536 // message should be hidden from view. | 1537 // message should be hidden from view. |
| 1537 IPC_MESSAGE_ROUTED0(ViewHostMsg_HideValidationMessage) | 1538 IPC_MESSAGE_ROUTED0(ViewHostMsg_HideValidationMessage) |
| 1538 | 1539 |
| 1539 // Message sent from the renderer to the browser when the suggested co-ordinates | 1540 // Message sent from the renderer to the browser when the suggested co-ordinates |
| 1540 // of the anchor for a HTML form validation message have changed. | 1541 // of the anchor for a HTML form validation message have changed. |
| 1541 IPC_MESSAGE_ROUTED1(ViewHostMsg_MoveValidationMessage, | 1542 IPC_MESSAGE_ROUTED1(ViewHostMsg_MoveValidationMessage, |
| 1542 gfx::Rect /* anchor rectangle in root view coordinate */) | 1543 gfx::Rect /* anchor rectangle in root view coordinate */) |
| 1543 | 1544 |
| 1545 #if defined(OS_ANDROID) || defined(OS_MACOSX) || defined(USE_AURA) |
| 1546 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming |
| 1547 // display events. If |enabled| is true, the BeginFrame message will continue |
| 1548 // to be be delivered until the notification is disabled. |
| 1549 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, bool /* enabled */) |
| 1550 #endif |
| 1551 |
| 1544 #if defined(OS_ANDROID) | 1552 #if defined(OS_ANDROID) |
| 1545 // Response to ViewMsg_FindMatchRects. | 1553 // Response to ViewMsg_FindMatchRects. |
| 1546 // | 1554 // |
| 1547 // |version| will contain the current version number of the renderer's find | 1555 // |version| will contain the current version number of the renderer's find |
| 1548 // match list (incremented whenever they change), which should be passed in the | 1556 // match list (incremented whenever they change), which should be passed in the |
| 1549 // next call to ViewMsg_FindMatchRects. | 1557 // next call to ViewMsg_FindMatchRects. |
| 1550 // | 1558 // |
| 1551 // |rects| will either contain a list of the enclosing rects of all matches | 1559 // |rects| will either contain a list of the enclosing rects of all matches |
| 1552 // found by the most recent Find operation, or will be empty if |version| is not | 1560 // found by the most recent Find operation, or will be empty if |version| is not |
| 1553 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence | 1561 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1569 // Message sent when the renderer changed the background color for the view. | 1577 // Message sent when the renderer changed the background color for the view. |
| 1570 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor, | 1578 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor, |
| 1571 uint32 /* bg_color */) | 1579 uint32 /* bg_color */) |
| 1572 | 1580 |
| 1573 // This message runs the MediaCodec for decoding audio for webaudio. | 1581 // This message runs the MediaCodec for decoding audio for webaudio. |
| 1574 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec, | 1582 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec, |
| 1575 base::SharedMemoryHandle /* encoded_data_handle */, | 1583 base::SharedMemoryHandle /* encoded_data_handle */, |
| 1576 base::FileDescriptor /* pcm_output */, | 1584 base::FileDescriptor /* pcm_output */, |
| 1577 uint32_t /* data_size*/) | 1585 uint32_t /* data_size*/) |
| 1578 | 1586 |
| 1579 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming | |
| 1580 // display events. If |enabled| is true, the BeginFrame message will continue | |
| 1581 // to be be delivered until the notification is disabled. | |
| 1582 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, | |
| 1583 bool /* enabled */) | |
| 1584 | |
| 1585 // Reply to the ViewMsg_ExtractSmartClipData message. | 1587 // Reply to the ViewMsg_ExtractSmartClipData message. |
| 1586 IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted, | 1588 IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted, |
| 1587 base::string16 /* text */, | 1589 base::string16 /* text */, |
| 1588 base::string16 /* html */, | 1590 base::string16 /* html */, |
| 1589 gfx::Rect /* rect */) | 1591 gfx::Rect /* rect */) |
| 1590 | 1592 |
| 1591 #elif defined(OS_MACOSX) | 1593 #elif defined(OS_MACOSX) |
| 1592 // Request that the browser load a font into shared memory for us. | 1594 // Request that the browser load a font into shared memory for us. |
| 1593 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 1595 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
| 1594 FontDescriptor /* font to load */, | 1596 FontDescriptor /* font to load */, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1633 // Since the browser keeps handles to the allocated transport DIBs, this | 1635 // Since the browser keeps handles to the allocated transport DIBs, this |
| 1634 // message is sent to tell the browser that it may release them when the | 1636 // message is sent to tell the browser that it may release them when the |
| 1635 // renderer is finished with them. | 1637 // renderer is finished with them. |
| 1636 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1638 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
| 1637 TransportDIB::Id /* DIB id */) | 1639 TransportDIB::Id /* DIB id */) |
| 1638 #endif | 1640 #endif |
| 1639 | 1641 |
| 1640 // Adding a new message? Stick to the sort order above: first platform | 1642 // Adding a new message? Stick to the sort order above: first platform |
| 1641 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1643 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1642 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1644 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |