| 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 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateRect_ACK) | 879 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateRect_ACK) |
| 880 | 880 |
| 881 // Tells the render view that a SwapBuffers was completed. Typically, | 881 // Tells the render view that a SwapBuffers was completed. Typically, |
| 882 // SwapBuffers requests go from renderer -> GPU process -> browser. Most | 882 // SwapBuffers requests go from renderer -> GPU process -> browser. Most |
| 883 // platforms still use the GfxCxt3D Echo for receiving the SwapBuffers Ack. | 883 // platforms still use the GfxCxt3D Echo for receiving the SwapBuffers Ack. |
| 884 // Using Echo routes the ack from browser -> GPU process -> renderer, while this | 884 // Using Echo routes the ack from browser -> GPU process -> renderer, while this |
| 885 // Ack goes directly from browser -> renderer. This is not used for the threaded | 885 // Ack goes directly from browser -> renderer. This is not used for the threaded |
| 886 // compositor path. | 886 // compositor path. |
| 887 IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK) | 887 IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK) |
| 888 | 888 |
| 889 // Tells the render view that a ViewHostMsg_EmulateDevice message |
| 890 // was processed. This signals the render view that it's safe to emulate, |
| 891 // and host will accept rendered image of any size. |
| 892 IPC_MESSAGE_ROUTED1(ViewMsg_EmulateDevice_ACK, |
| 893 bool /* enabled */) |
| 894 |
| 889 // Tells the render widget that a smooth scroll completed. | 895 // Tells the render widget that a smooth scroll completed. |
| 890 IPC_MESSAGE_ROUTED0(ViewMsg_SmoothScrollCompleted) | 896 IPC_MESSAGE_ROUTED0(ViewMsg_SmoothScrollCompleted) |
| 891 | 897 |
| 892 // Tells the renderer to focus the first (last if reverse is true) focusable | 898 // Tells the renderer to focus the first (last if reverse is true) focusable |
| 893 // node. | 899 // node. |
| 894 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, | 900 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, |
| 895 bool /* reverse */) | 901 bool /* reverse */) |
| 896 | 902 |
| 897 // Executes custom context menu action that was provided from WebKit. | 903 // Executes custom context menu action that was provided from WebKit. |
| 898 IPC_MESSAGE_ROUTED2(ViewMsg_CustomContextMenuAction, | 904 IPC_MESSAGE_ROUTED2(ViewMsg_CustomContextMenuAction, |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1638 IPC_STRUCT_BEGIN(ViewHostMsg_BeginSmoothScroll_Params) | 1644 IPC_STRUCT_BEGIN(ViewHostMsg_BeginSmoothScroll_Params) |
| 1639 IPC_STRUCT_MEMBER(bool, scroll_down) | 1645 IPC_STRUCT_MEMBER(bool, scroll_down) |
| 1640 IPC_STRUCT_MEMBER(int, pixels_to_scroll) | 1646 IPC_STRUCT_MEMBER(int, pixels_to_scroll) |
| 1641 IPC_STRUCT_MEMBER(int, mouse_event_x) | 1647 IPC_STRUCT_MEMBER(int, mouse_event_x) |
| 1642 IPC_STRUCT_MEMBER(int, mouse_event_y) | 1648 IPC_STRUCT_MEMBER(int, mouse_event_y) |
| 1643 IPC_STRUCT_END() | 1649 IPC_STRUCT_END() |
| 1644 | 1650 |
| 1645 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginSmoothScroll, | 1651 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginSmoothScroll, |
| 1646 ViewHostMsg_BeginSmoothScroll_Params /* params */) | 1652 ViewHostMsg_BeginSmoothScroll_Params /* params */) |
| 1647 | 1653 |
| 1654 // Sent to initiate emulating device mode. In this mode, rendered image may be |
| 1655 // not the same size as view itself. In response to this message, the host |
| 1656 // generates a ViewMsg_EmulateDevice_ACK message. |
| 1657 IPC_MESSAGE_ROUTED1(ViewHostMsg_EmulateDevice, |
| 1658 bool /* enabled */) |
| 1659 |
| 1648 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) | 1660 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) |
| 1649 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) | 1661 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) |
| 1650 | 1662 |
| 1651 // Message sent from renderer to the browser when focus changes inside the | 1663 // Message sent from renderer to the browser when focus changes inside the |
| 1652 // webpage. The parameter says whether the newly focused element needs | 1664 // webpage. The parameter says whether the newly focused element needs |
| 1653 // keyboard input (true for textfields, text areas and content editable divs). | 1665 // keyboard input (true for textfields, text areas and content editable divs). |
| 1654 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, | 1666 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, |
| 1655 bool /* is_editable_node */) | 1667 bool /* is_editable_node */) |
| 1656 | 1668 |
| 1657 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, | 1669 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2364 // synchronously (see crbug.com/120597). This IPC message sends the character | 2376 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 2365 // bounds after every composition change to always have correct bound info. | 2377 // bounds after every composition change to always have correct bound info. |
| 2366 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2378 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 2367 ui::Range /* composition range */, | 2379 ui::Range /* composition range */, |
| 2368 std::vector<gfx::Rect> /* character bounds */) | 2380 std::vector<gfx::Rect> /* character bounds */) |
| 2369 #endif | 2381 #endif |
| 2370 | 2382 |
| 2371 // Adding a new message? Stick to the sort order above: first platform | 2383 // Adding a new message? Stick to the sort order above: first platform |
| 2372 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2384 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2373 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2385 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |